Guide to installing project's dependencies.
In order not to clutter the global python installation with packages required by this project, it is useful to set up a virtual environment:
- go to a directory outside of the repository
python3 -m venv ./zielbruks-env
(or pick any other name for the environemnt)
this command will create a directoryzielbruks-env
where all the packages will be installed- each time you open a console to work on this project, run
source ./zielbruks-env/bin/activate
(assuming you're using bash or zsh and the paths are correct)
This repository contains requirements.txt
file listing pip packages required to run the project. Install them:
- In a virtual env
- activate the virtual env
pip install -r requirements.txt
- Globally
pip install --user -r requirements.txt
./manage.py test
Linter used is pylint
.
To run it, specify module(s) to check, e.g. pylint scheduler zielbruks
.
Pylint is configured in pylintrc
which can be used to adjust enforced rules.
Python allows specyfing argument and returns types (see PEP 484).
This project uses mypy to check type correctness.
Invocation: mypy scheduler zielbruks