Skip to content

Commit c3b6423

Browse files
authored
Merge branch 'main' into mock-sample
2 parents 990104d + 632c457 commit c3b6423

File tree

3 files changed

+24
-5
lines changed

3 files changed

+24
-5
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ repos:
2525
exclude: &exclude_pattern 'iv_weak_instruments.ipynb'
2626
args: ["--maxkb=1500"]
2727
- repo: https://github.com/astral-sh/ruff-pre-commit
28-
rev: v0.11.12
28+
rev: v0.12.0
2929
hooks:
3030
# Run the linter
3131
- id: ruff

codecov.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
coverage:
2+
ignore:
3+
- "*/conftest.py"
4+
- "*/tests/conftest.py"
25
status:
36
project:
47
default:

pyproject.toml

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -72,10 +72,6 @@ docs = [
7272
lint = ["interrogate", "pre-commit", "ruff"]
7373
test = ["pytest", "pytest-cov", "codespell", "nbformat", "nbconvert"]
7474

75-
[metadata]
76-
description-file = 'README.md'
77-
license_files = 'LICENSE'
78-
7975
[project.urls]
8076
Homepage = "https://github.com/pymc-labs/CausalPy"
8177
"Bug Reports" = "https://github.com/pymc-labs/CausalPy/issues"
@@ -129,3 +125,23 @@ extend-select = [
129125
[tool.codespell]
130126
ignore-words = "./docs/source/.codespell/codespell-whitelist.txt"
131127
skip = "*.ipynb,*.csv,pyproject.toml,docs/source/.codespell/codespell-whitelist.txt"
128+
129+
[tool.coverage.run]
130+
omit = [
131+
"*/conftest.py",
132+
"*/tests/conftest.py",
133+
]
134+
135+
[tool.coverage.report]
136+
exclude_lines = [
137+
"pragma: no cover",
138+
"def __repr__",
139+
"if self.debug:",
140+
"if settings.DEBUG",
141+
"raise AssertionError",
142+
"raise NotImplementedError",
143+
"if 0:",
144+
"if __name__ == .__main__.:",
145+
"class .*\\bProtocol\\):",
146+
"@(abc\\.)?abstractmethod",
147+
]

0 commit comments

Comments
 (0)