A template for creating python packages @ we are.
Explain what the package is for.
Explain something about how to use it.
# give a demo of the usage
...The Makefile is used to create easy-to-use commands. Instead of adding complex commands (with a lot of parameters
etc.) to this README, add a simpler version to this README file making use of the Makefile.
When working in python code, it is recommended to work with a virtual environment. This can be instantiated by your IDE such as pycharm, but can also be done manually.
make virtualenvCreating the virtual environment should be done only once. Activating it should be done when working on the code and the virtual environment being inactive.
make activateTo download all the necessities to work on this package, use the requirements.txt file. One can download all the
resources with the following command.
make installWhen adding extra requirements, perform the following command to put them in the requirements file.
make requirementsThe eye want's something too. Therefore we use a linter, flake8, to make sure all the code written follows the PEP-guidelines. This avoids the code to become ๐-code.
You can run the linter using the following command.
make lintFor testing purposes we make use of pytest. The tests are to be found in
tests/-folders. All code should be thoroughly tested.
To create a test for a file watemplate/dir/filename.py, create a file tests/dir/test_filename.py. For every class or
method, write a definition that tests the code thoroughly.
To perform the tests one can perform the following commands.
make tests