104e71dcf6
On CI: - black and isort in check mode must pass. - flake8 only prints errors WIP: make it also failed. On pre-commit: - black and isort will format staged files, if installed on path. - flake8 prints its output if necessary.
40 lines
784 B
INI
40 lines
784 B
INI
[coverage:run]
|
|
source =
|
|
bda
|
|
cof
|
|
gestioncof
|
|
kfet
|
|
shared
|
|
utils
|
|
omit =
|
|
*migrations*
|
|
*test*.py
|
|
branch = true
|
|
|
|
[coverage:report]
|
|
precision = 2
|
|
show_missing = true
|
|
|
|
[flake8]
|
|
exclude = migrations
|
|
max-line-length = 88
|
|
ignore =
|
|
# whitespace before ':' (not PEP8-compliant for slicing)
|
|
E203,
|
|
# lambda expression
|
|
E731,
|
|
# line break before binary operator (not PEP8-compliant)
|
|
W503
|
|
|
|
[isort]
|
|
# For black compat: https://github.com/ambv/black#how-black-wraps-lines
|
|
combine_as_imports = true
|
|
default_section = THIRDPARTY
|
|
force_grid_wrap = 0
|
|
include_trailing_comma = true
|
|
known_django = django
|
|
known_first_party = bda,cof,gestioncof,kfet,shared,utils
|
|
line_length = 88
|
|
multi_line_output = 3
|
|
not_skip = __init__.py
|
|
sections = FUTURE,STDLIB,THIRDPARTY,FIRSTPARTY,LOCALFOLDER
|