Skip to content

Commit

Permalink
Remove duplicate coverage settings
Browse files Browse the repository at this point in the history
  • Loading branch information
Cryp Toon committed Jun 10, 2024
1 parent cad57f0 commit c5aaa2a
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 97 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/unittests.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ jobs:
- name: Test with coverage
env:
BCL_CONFIG_FILE: ${{ github.workspace }}/tests/config.ini.unittest
run: coverage run --omit="*/tools*" --source=bitcoinlib -m unittest -v
run: coverage run --source=bitcoinlib -m unittest -v

- name: Coveralls Parallel
uses: coverallsapp/github-action@v2
Expand Down
67 changes: 0 additions & 67 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,70 +6,3 @@ build-backend = "setuptools.build_meta"
branch = true
relative_files = true
debug = true
omit = [
"*bitcoinlib/tools/*",
"*tools/*",
"*dashd.py",
"*bitcoind.py",
"*dogecoind.py",
"*bcoin.py",
"*litecoind.py",
"*authproxy.py",
"*cryptoid.py",
"*chainso.py",
"*litecoreio.py",
"*insightdash.py",
"*litecoinblockexplorer.py",
"*bitflyer.py",
]

[tool.coverage.report]
# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about missing debug-only code:
"def __repr__",
"if self\\.debug",

# Don't complain if tests don't hit defensive assertion code:
"raise AssertionError",
"raise NotImplementedError",

# Don't complain if non-runnable code isn't run:
"if 0:",
"if __name__ == .__main__.:",

# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",

# Bitcoinlib
"pragma: no cover",
"def __repr__",
"if self.debug:",
"if settings.DEBUG",
"raise AssertionError",
"raise NotImplementedError",
"if 0:",
"if __name__ == .__main__.:",
"if not PY3",
]
omit = [
"*bitcoinlib/tools/*",
"*tools/*",
"*dashd.py",
"*bitcoind.py",
"*dogecoind.py",
"*bcoin.py",
"*litecoind.py",
"*authproxy.py",
"*cryptoid.py",
"*chainso.py",
"*litecoreio.py",
"*insightdash.py",
"*litecoinblockexplorer.py",
"*bitflyer.py",
]

ignore_errors = true

[tool.coverage.html]
directory = "coverage_html_report"
29 changes: 0 additions & 29 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -57,32 +57,3 @@ dev =
console_scripts =
cli-wallet = bitcoinlib.tools.clw:main
clw = bitcoinlib.tools.clw:main

[coverage:run]
relative_files = True
omit =
*bitcoinlib/tools/*
*/tools/*
*dashd.py
*bitcoind.py
*dogecoind.py
*bcoin.py
*litecoind.py
*authproxy.py
*cryptoid.py
*chainso.py
*litecoreio.py
*insightdash.py
*litecoinblockexplorer.py
*bitflyer.py
[coverage:report]
exclude_lines =
pragma: no cover
def __repr__
if self.debug:
if settings.DEBUG
raise AssertionError
raise NotImplementedError
if 0:
if __name__ == .__main__.:
if not PY3

0 comments on commit c5aaa2a

Please sign in to comment.