You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 26, 2026. It is now read-only.
Requirements files specify the dependencies of the project for other packages.
34
+
How the requirements are distributed across directories and files varries.
35
+
For this project we have 3 files where the requirements are stored:
36
+
*[requirements.dev.txt](requirements.dev.txt) has the dependencies anything that is necessary for the developer but not the user of the package (e.g. testing & linting)
37
+
*[docs/requirements.txt](docs/requirements.txt) has the dependencies for building the documentation.
38
+
*[setup.py](setup.py) has the **examplepackage** dependencies as part of the `install_requires` parameter of the `setup` function. More info in the dedicated section below.
39
+
40
+
The command `pip installs -r requirements.txt` install requirements from the specified file.
41
+
42
+
Alternatives to using requirements.txt files are conda enviroment yaml files (if you choose to use a conda env that is):
Quotting the the [flake8 documentation](https://flake8.pycqa.org/en/latest/manpage.html) directly:
47
+
*flake8 is a command-line utility for enforcing style consistency across Python projects. By default it includes lint checks provided by the PyFlakes project, PEP-0008 inspired style checks provided by the PyCodeStyle project, and McCabe complexity checking provided by the McCabe project. It will also run third-party extensions if they are found and installed.*
48
+
49
+
In summary, flake8 checks if the code is uggly according to [PEP8](https://www.python.org/dev/peps/pep-0008/).
50
+
flake8 is part of the requirements.dev.txt file and can be installed with pip.
51
+
To run a flake8 check you simply execute the command:
52
+
`flake8 examplepackage`*or any other dir that contains python files*
53
+
54
+
You can configure flake8 by adding a section for flake8 in the setup.cfg[setup.cfg] file. For example you can choose to instruct flake8 to ignore certain errors or change the default line length.
0 commit comments