File: run_flake8

package info (click to toggle)
gromacs 2026~rc-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 274,216 kB
  • sloc: xml: 3,831,143; cpp: 686,111; ansic: 75,300; python: 21,171; sh: 3,553; perl: 2,246; yacc: 644; fortran: 397; lisp: 265; makefile: 174; lex: 125; awk: 68; csh: 39
file content (20 lines) | stat: -rwxr-xr-x 936 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
#!/usr/bin/env bash
set -x

# Note: E501 specifies a line length limit of 80 characters, but GROMACS allows more.
#  Ref: http://manual.gromacs.org/current/dev-manual/formatting.html
# Note: --max-complexity can be used to check McCabe complexity. Compliance
#       could be a future goal, but is not yet a GROMACS priority.
# W503 is ignored in observation of current PEP-8 conventions, but must be
# explicitly disabled in at least some versions.
# http://pycodestyle.pycqa.org/en/latest/intro.html#error-codes
# https://www.python.org/dev/peps/pep-0008/#should-a-line-break-before-or-after-a-binary-operator

# Check gmxapi package sources.
python -m flake8 --ignore W503 --max-line-length 119 ${HOME}/gmxapi/src/gmxapi

# Check gmxapi unit tests.
python -m flake8 --ignore W503 --max-line-length 119 ${HOME}/gmxapi/src/test

# Check gmxapi acceptance tests.
python -m flake8 --ignore W503 --max-line-length 119 ${HOME}/gmxapi/test