Visual styling helpers for Matplotlib/Seaborn.
- Python >=3.12, use the
.venvvirtual environment:source .venv/bin/activate - Install:
pip install -e ".[dev]"
- Test:
pytest(runs fromtests/, verbose+stdout by default) - Single test:
pytest tests/test_utils.py::TestAutoTicks::test_sets_ticks_on_simple_plot - Lint:
ruff check src/ tests/ - Format:
ruff format src/ tests/ - Type check:
mypy src/ - Pre-commit:
pre-commit run --all-files
Always run these before git commit and git push:
pre-commit run --all-files— must pass with no errorspytest— all tests must pass
Do not commit or push if either fails. Fix issues first.
- Ruff for linting and formatting (line length 100, Google-style docstrings)
- Mypy for type checking (strict-ish, see pyproject.toml)
src/layout withmplplotspackage- Tests in
tests/using pytest (no docstrings required in tests) - Type annotations on all public functions