mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-06-18 03:43:03 +03:00
Update flake/coverage conf
This commit is contained in:
parent
ff84575827
commit
43d3fd6fbc
34
setup.cfg
34
setup.cfg
|
@ -7,33 +7,13 @@ license_file = LICENSE
|
||||||
|
|
||||||
|
|
||||||
[flake8]
|
[flake8]
|
||||||
max-line-length = 120
|
max_line_length = 120
|
||||||
exclude = docs/*,demo/*
|
exclude = migrations
|
||||||
ignore = F403
|
|
||||||
|
|
||||||
|
|
||||||
[coverage:run]
|
[coverage:run]
|
||||||
omit=*site-packages*,*distutils*,*migrations*
|
branch = true
|
||||||
|
source = rest_auth
|
||||||
[coverage:report]
|
omit =
|
||||||
# Regexes for lines to exclude from consideration
|
*migrations*
|
||||||
exclude_lines =
|
tests
|
||||||
# Have to re-enable the standard pragma
|
|
||||||
pragma: no cover
|
|
||||||
|
|
||||||
# Don't complain about missing debug-only code:
|
|
||||||
def __repr__
|
|
||||||
if self\.debug
|
|
||||||
|
|
||||||
# Don't complain if tests don't hit defensive assertion code:
|
|
||||||
raise AssertionError
|
|
||||||
raise NotImplementedError
|
|
||||||
|
|
||||||
# Don't complain if non-runnable code isn't run:
|
|
||||||
if 0:
|
|
||||||
if __name__ == .__main__.:
|
|
||||||
|
|
||||||
ignore_errors = True
|
|
||||||
|
|
||||||
[coverage:html]
|
|
||||||
directory = coverage_html
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user