mirror of
https://github.com/pre-commit/pre-commit.git
synced 2026-04-15 01:51:46 +04:00
Better project structure
This commit is contained in:
parent
f31f092f9b
commit
1746a97e24
52 changed files with 221 additions and 189 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