Conventions¶
Use Flake8¶
Now we try to check if our code matches the PEP 8 coding conventions.
Consequently we install the checking tool flake8 and check it.
pip install flake8
cd some_directory
flake8
# take a look at the output
In case flake8 does not complain, just do nothing. In case it does follow the liniting instructions make your code more conventional.
If you want to automate a flake8 check you can modify your tox.ini
file according to the
template tox.ini.
Add .gitignore¶
Last but not least, let us add a .gitignore file to the directory root.
For an example take at that simple example.