mirror of
https://github.com/Tivix/django-rest-auth.git
synced 2025-02-18 10:50:34 +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]
|
||||
max-line-length = 120
|
||||
exclude = docs/*,demo/*
|
||||
ignore = F403
|
||||
max_line_length = 120
|
||||
exclude = migrations
|
||||
|
||||
|
||||
[coverage:run]
|
||||
omit=*site-packages*,*distutils*,*migrations*
|
||||
|
||||
[coverage:report]
|
||||
# Regexes for lines to exclude from consideration
|
||||
exclude_lines =
|
||||
# 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
|
||||
branch = true
|
||||
source = rest_auth
|
||||
omit =
|
||||
*migrations*
|
||||
tests
|
||||
|
|
Loading…
Reference in New Issue
Block a user