This codebase requires Python 3.13 and uses Poetry to manage dependencies.
We use pytest for testing, which can be run with:
poetry run pytestWe use mypy to do strict type checking of Python scripts, which can be run
with:
poetry run mypyThe primary linter for this codebase is ruff, which can be run with:
# lint everything possible
poetry run ruff check
# automatically apply fixes for linting errors
poetry run ruff check --fixWe use ruff to format Python files, which can be run with:
# format all supported files as needed
poetry run ruff check
# check if any files need formatting
poetry run ruff check --checkWe use prettier to format other files, which can be run with:
# check everything possible for formatting issues
npx prettier --check .
# automatically format everything possible
npx prettier --write .
# format a subset of files
npx prettier path/to/my/fileNote
You need to have Node installed to run prettier