- Poetry
- Pre-commit
- Python 3.13.2+
This project uses poetry for dependency management. Linting and type checking are accomplished using pre-commit which is installed by poetry.
- Install poetry.
- In the project root run
poetry install --with devto install dependencies. - Run
poetry run pre-commit installto install pre-commit hooks. - Optionally use
Tasks: Run Taskfrom the command palette to runRun all Pre-commit checksorpoetry run pre-commit run --all-filesfrom the terminal to manually run pre-commit hooks on files locally in your environment as you make changes.
The linters may make changes to files when you try to commit, for example to sort imports. Files that are changed or fail tests will be unstaged. After reviewing these changes or making corrections, you can re-stage the changes and recommit or rerun the checks. After the pre-commit hook run succeeds, your commit can proceed.
See the .vscode/settings.json.example file for starter settings