Debian Codegraph @

python_packaging/scripts/run_flake8

raw
1 #!/usr/bin/env bash
2 set -x
3
4 # Note: E501 specifies a line length limit of 80 characters, but GROMACS allows more.
5 # Ref: http://manual.gromacs.org/current/dev-manual/formatting.html
6 # Note: --max-complexity can be used to check McCabe complexity. Compliance
7 # could be a future goal, but is not yet a GROMACS priority.
8 # W503 is ignored in observation of current PEP-8 conventions, but must be
9 # explicitly disabled in at least some versions.
10 # http://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
11 # https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator
12
13 # Check gmxapi package sources.
14 python -m flake8 --ignore W503 --max-line-length 119 ${HOME}/gmxapi/src/gmxapi
15
16 # Check gmxapi unit tests.
17 python -m flake8 --ignore W503 --max-line-length 119 ${HOME}/gmxapi/src/test
18
19 # Check gmxapi acceptance tests.
20 python -m flake8 --ignore W503 --max-line-length 119 ${HOME}/gmxapi/test