mirror of
https://github.com/pre-commit/pre-commit-hooks.git
synced 2026-04-06 12:06:53 +00:00
Update project setup.
This commit is contained in:
parent
13b4ca54cf
commit
b80ca9e84a
23 changed files with 186 additions and 112 deletions
36
.coveragerc
36
.coveragerc
|
|
@ -1,19 +1,29 @@
|
|||
[run]
|
||||
branch = True
|
||||
timid = True
|
||||
source =
|
||||
.
|
||||
omit =
|
||||
.tox/*
|
||||
/usr/*
|
||||
*/tmp*
|
||||
setup.py
|
||||
|
||||
[report]
|
||||
exclude_lines =
|
||||
# Don't complain about defensive assertions
|
||||
raise NotImplementedError
|
||||
raise AssertionError
|
||||
# Have to re-enable the standard pragma
|
||||
\#\s*pragma: no cover
|
||||
|
||||
# Don't complain about non-runnable code
|
||||
if __name__ == .__main__.:
|
||||
# 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$
|
||||
|
||||
omit =
|
||||
/usr/*
|
||||
py_env/*
|
||||
*/__init__.py
|
||||
# Don't complain if non-runnable code isn't run:
|
||||
^if __name__ == ['"]__main__['"]:$
|
||||
|
||||
# Ignore test coverage
|
||||
tests/*
|
||||
[html]
|
||||
directory = coverage-html
|
||||
|
||||
# Don't complain about our pre-commit file
|
||||
pre-commit.py
|
||||
# vim:ft=dosini
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue