Skip to content

Latest commit

 

History

History
59 lines (43 loc) · 821 Bytes

File metadata and controls

59 lines (43 loc) · 821 Bytes

Development & Testing

  • Install dev tools:
pip install -e ".[dev,notebooks]"
  • Initialize pre-commit:
pre-commit install
  • Run tests:
tox
  • Run only notebooks tests:
pytest -v -m notebook
  • Run linting, typing, and formatting:
tox -e lint
tox -e type
tox -e black
  • Benchmark performance (locally, not in CI):
pytest --benchmark-only
import os
import pytest
import pytest_benchmark

@pytest.mark.skipif(os.getenv("CI") == "true", reason="Skip performance tests in CI")
@pytest.mark.benchmark
def test_tql_runtime(benchmark, planet_inputs):
    def run_ql():
        ql = TessQuickLook(**planet_inputs)
        fig = ql.plot_tql()
    benchmark(run_ql)
  • Re-install tox:
tox -r