Conribute
Contributions are very welcome.
Dev requirements
- minor python3 versions present in .python-version
- pyenv > v2.3.9 ( optional but recommended )
- virtualenv (will be installed by
make venvif not available)
Start hacking
Install python versions used for tests ( recommended )
pyenv install
/!\ Install multiple versions in a single command only available in pyenv > 2.3.9
Create the project virtualenv
$ make venv
This target does the following:
- installs
virtualenvif not found - creates a venv in
.venvfordev-requirements.txt - installs
dev-requirements.txt - creates a
.python-venvsymlink to.venv/bin/activate
Run tests
Tests are driven by tox / make
Run with make
Example:
$ make test
Run with tox or free commands
Example:
$ source .python-venv
$ tox
$ poetry run pytest tests/
Formater
black and isort run in check mode by default
check mode could be removed by running the env as :
$ source .python-venv
$ tox -e black --
$ tox -e isort --
Update tox.ini / pyproject.toml
- Update
tox.ini.j2to updatetox.ini - Update
pyproject.ini.j2to updatepyproject.ini - Update
.python-versionto add a new python version (order is important)