mirror of
https://github.com/Hopiu/django-notifications.git
synced 2026-03-17 05:40:25 +00:00
1.2 KiB
1.2 KiB
Creating the development environment
-
Install Pyenv
-
Install PipX
-
Install Poetry with PipX
-
install Tox with PipX
-
Install necessary python versions
pyenv install --skip-existing 3.8 3.9 3.10 3.11 3.12 -
Set python versions as local
pyenv local 3.12 3.11 3.10 3.9 3.8 -
Ensure poetry config
poetry config virtualenvs.create truepoetry config virtualenvs.prefer-active-python true -
Install the lib and dependencies with poetry
poetry install --all-extras -
Initialize pre-commit
poetry run pre-commit install
Running tests
To run the tests you can use any of the commands bellow:
make testsTo run all tests over all environment combinationsmake test-latestTo run all tests over the latest enviroment possible
Running code quality tools
To options to run the linters are:
make isortmake blackmake pylintmake banditmake mypy
To run all linters over all files: make lint