Create a virtual environment and activate it
python -m venv .venv
source .venv/bin/activate
Verify the environment is activated and install dependencies
which python
pip install -r requirements.txt
Verify installation by running tests
pytest
To deactivate the environment, just run deactivate
in the terminal. You should activate the environment when working
on the project and deactivate when finished.
Activate git hooks
git config core.hooksPath .githooks
Run solutions
bin/solve # Run all solutions
bin/solve 1 # Run the first solution
bin/solve 1 2 3 # Run the first 3 solutions
Lint code, check types, and run tests
bin/check