Contributing#
Creating a virtual environment#
Using virtualenvwrapper#
Using venv#
Installation#
Pyright, our static type checker, is distributed through npm:
Git hooks#
For Unix-like platforms, we provide up git hooks to help with development.
After cloning, execute.
Git hooks automatically run these commands when you commit:
pytest tests -m "not slow"
when theWOKE_HOOKS_RUN_ALL_TESTS
environment variable is not set (pytest tests
is run otherwise)pyright
on Python files being committedblack
on Python files being committedisort
on Python files being committedmkdocs build --strict
to make sure the documentation does not contain errors
Any unstaged changes and untracked files are stashed before running the git pre-commit hook. After the commit is made, the stashed changes are popped from the stash. If this leads to a merge conflict, the stashed changes are left at the top of the stash.