| 1 |
# .coveragerc to control coverage.py |
| 2 |
# following the example at http://nedbatchelder.com/code/coverage/config.html |
| 3 |
[run] |
| 4 |
concurrency = multiprocessing |
| 5 |
parallel = True |
| 6 |
sigterm = True |
| 7 |
relative_files = True |
| 8 |
branch = True |
| 9 |
source_pkgs = brian2 |
| 10 |
omit = |
| 11 |
*/brian2/tests/* |
| 12 |
*/brian2/sphinxext/* |
| 13 |
*/brian2/hears.py |
| 14 |
*/*.py_ |
| 15 |
*/*.pyx |
| 16 |
|
| 17 |
[report] |
| 18 |
# Regexes for lines to exclude from consideration |
| 19 |
exclude_lines = |
| 20 |
# Have to re-enable the standard pragma |
| 21 |
pragma: no cover |
| 22 |
|
| 23 |
# Don't complain if tests don't hit defensive assertion code: |
| 24 |
raise AssertionError |
| 25 |
raise NotImplementedError |
| 26 |
|
| 27 |
# Don't complain if non-runnable code isn't run: |
| 28 |
if 0: |
| 29 |
if __name__ == .__main__.: |
| 30 |
if __name__==.__main__.: |
| 31 |
|
| 32 |
ignore_errors = True |