mirror of
https://github.com/PyCQA/flake8.git
synced 2026-03-29 10:36:53 +00:00
26 lines
581 B
INI
26 lines
581 B
INI
[run]
|
|
branch = True
|
|
source =
|
|
flake8
|
|
tests
|
|
omit =
|
|
# Don't complain if non-runnable code isn't run
|
|
*/__main__.py
|
|
|
|
[report]
|
|
show_missing = True
|
|
skip_covered = True
|
|
exclude_lines =
|
|
# Have to re-enable the standard pragma
|
|
\#\s*pragma: no cover
|
|
|
|
# Don't complain if tests don't hit defensive assertion code:
|
|
^\s*raise AssertionError\b
|
|
^\s*raise NotImplementedError\b
|
|
^\s*return NotImplemented\b
|
|
^\s*raise$
|
|
|
|
# Don't complain if non-runnable code isn't run:
|
|
^if __name__ == ['"]__main__['"]:$
|
|
^\s*if False:
|
|
^\s*if TYPE_CHECKING:
|