- 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-onlyimport 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