- tox
- Creates virtual environments for CI or local pytest runs.
- Note that the CI does not current execute calls to the production API by default.
- Run
tox list
or seetox.ini
for more info
- Creates virtual environments for CI or local pytest runs.
- pre-commit
- Creates virtual environments for formatting and linting tools
- Run
pre-commit run --all-files
or see.pre-commit-config.yaml
for more info.
- black
- Whitespace formatter
- ruff
- Linting rules from a wide variety of selectable rule sets
- See
pyproject.toml
for the rules used. - See all rules (but not necessarily used in the project) availible in rust here.
- mypy
- Static type safety
- I recommending using the mypy daemon instead of periodically running
pre-commit
(ormypy
directly.).- If you are using VSCode, I recommend the
matangover.mypy
extension, which implements this nicely.
- If you are using VSCode, I recommend the
- The
AI_HORDE_DEV_URL
environment variable overridesAI_HORDE_URL
. This is useful for testing changes locally. - pytest files which end in
_api_calls.py
run last, and never run during the CI. It is currently incumbent on individual developers to confirm that these tests run successfully locally. In the future, part of the CI will be to spawn an AI-Horde and worker instances and test it there.