Creating a virtual environment#
Pyright, our static type checker, is distributed through npm:
For Unix-like platforms, we provide git hooks to help with development.
After cloning, execute:
Git hooks automatically run these commands when you commit:
- gitmoji-fuzzy-hook git prepare-commit-msg hook to help you choose a gitmoji
pytest tests -m "not slow"when the
WAKE_HOOKS_RUN_ALL_TESTSenvironment variable is not set (
pytest testsis run otherwise)
blackon Python files being committed
isorton Python files being committed
pyrighton Python files being committed
mkdocs build --strictto 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.