This is a beta sandbox of reusable steps for the Valohai ecosystem.
Linting/formatting happens via pre-commit. Install it with pip install pre-commit and:
- run
pre-commit installto install Git hooks if you like, or - run
pre-commit runmanually to run everything on staged files, or pre-commit run --all-filesto run everything on all files.
The linters run by pre-commit are ruff, black, and prettier;
you can (should) set up your IDE to run them automatically too.
You can run tests with py.test:
py.test -v .