File: run_flake8

package info (click to toggle)
gromacs 2025.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 287,236 kB
  • sloc: xml: 3,718,478; cpp: 654,820; ansic: 75,282; python: 20,471; sh: 3,471; perl: 2,218; yacc: 644; fortran: 397; lisp: 265; makefile: 171; 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