diff --git a/.coveragerc b/.coveragerc new file mode 100644 index 0000000..411b95f --- /dev/null +++ b/.coveragerc @@ -0,0 +1,39 @@ +# .coveragerc to control coverage.py +[run] +branch = False +omit = .converage* + */tests/* + */__main__.py +concurrency = multiprocessing +[report] +fail_under = 97 +# 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 + def _post_url(self) + + # Don't complain if tests don't hit defensive assertion code: + raise AssertionError + raise NotImplementedError + except KeyboardInterrupt: + except ImportError: + except RuntimeError + raise SystemExit + + # Don't complain about the Completer class + class Completer + + # Don't complain if non-runnable code isn't run: + if 0: + if perf_file *: + p_col = * + f_col = * + q_col = * + if __name__ == .__main__.: + +ignore_errors = False diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 1eff85a..a1d9f72 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -76,7 +76,6 @@ jobs: uses: codecov/codecov-action@v3 with: token: ${{ secrets.CODECOV_TOKEN }} - file: ./report.xml verbose: true dependabot: name: Merge PR by dependabot diff --git a/pyproject.toml b/pyproject.toml index e90dbb4..724a9bf 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -133,13 +133,6 @@ select = "E9, F63, F7, F82" [tool.flake8.per-file-ignores] "tests/*.py" = "E501, F401" -[tool.coverage.run] -omit = ["tests/*", "*/__init__.py"] -concurrency = ["multiprocessing"] - -[tool.coverage.report] -exclude_lines = ["pragma: no cover"] - [tool.tox] legacy_tox_ini = """