Skip to content

Commit

Permalink
Update coveragerc.
Browse files Browse the repository at this point in the history
  • Loading branch information
antarcticrainforest committed Aug 28, 2024
1 parent eeeb59d commit e43912a
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 8 deletions.
39 changes: 39 additions & 0 deletions .coveragerc
Original file line number Diff line number Diff line change
@@ -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
1 change: 0 additions & 1 deletion .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 0 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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 = """
Expand Down

0 comments on commit e43912a

Please sign in to comment.