-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.cfg
More file actions
16 lines (16 loc) · 960 Bytes
/
Copy pathsetup.cfg
File metadata and controls
16 lines (16 loc) · 960 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# flake8 has no pyproject.toml support, so its configuration lives here.
# Values match pykale/setup.cfg so the two repos agree.
[flake8]
max-line-length = 120
# Tutorial domain folders hold migrated example code (byte-identical to upstream) and sphinx-gallery
# narrative scripts, where module-level prints/plots are the idiom -- not library code to lint, the
# same way pykale excludes examples/.
exclude = build,_build,_gallery,_pages,.venv,others,protein,cancer,cardiac,materials
ignore = E203, E501, W503
# scripts/ are command-line tools; print() is their intended output, not a stray debug statement,
# so the flake8-print check (T201) does not apply to them.
per-file-ignores =
scripts/*.py:T201
# E203 - whitespace before ':'. Opposite convention enforced by black
# E501 - line too long. Long-line code is reformatted by black; long docstring lines are OK
# W503 - line break before binary operator. W503 is incompatible with PEP 8, don't use it