Contributions are highly welcomed and appreciated!
NetTowel uses poetry for packaging and dependency management.
NetTowel uses pytest
testing tool
Run tests with the following command:
make pytest
Make sure to test new code and not break existing tests.
NetTowel uses type annotations and mypy
is used as a static type checker.
Run the following to type check NetTowel:
make mypy
Please add type annotations for all new code.
NetTowel uses black
for code formatting.
Run the following to check the formatting:
make black
Before pushing a commit all tests should be run. Run the following command:
make pytest
The version can be updated with the following command: Steps: patch, minor, major, prepatch, preminor, premajor, prerelease.
make bump ARGS=patch
To install a branch with pip
and be able to specify the extras use the following command:
pip install git+https://github.com/InfrastructureAsCode-ch/nettowel.git@<branch_name>#egg=nettowel[<extras>]
Example:
pip install git+https://github.com/InfrastructureAsCode-ch/nettowel.git@develop#egg=nettowel[full]