We use poetry to manage the dependencies.
To install them you would need to run install
command:
poetry install
To activate your virtualenv
run poetry shell
.
Run make checks
to run everything we have!
We use pytest
and flake8
for quality control.
To run all tests:
make test
To run linting:
make lint
Keep in mind: default virtual environment folder excluded by flake8 style checking is .venv
.
If you want to customize this parameter, you should do this in pyproject.toml
.
We use mypy
to run type checks on our code.
To use it:
make mypy
What the point of this method?
- We use protected
main
/master
branch, so the only way to push your code is via pull request - We use issue branches: to implement a new feature or to fix a bug create a new branch
- Then create a pull request to
main
/master
branch - We use
git tag
s to make releases, so we can track what has changed since the latest release
In this method, the latest version of the app is always in the main
/master
branch.