Skip to content

Commit 40da547

Browse files
committed
use interrogate to assess docstring coverage
1 parent 4cab835 commit 40da547

File tree

5 files changed

+87
-0
lines changed

5 files changed

+87
-0
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,7 @@ repos:
2929
rev: 3.9.2
3030
hooks:
3131
- id: flake8
32+
- repo: https://github.com/econchick/interrogate
33+
rev: 1.5.0
34+
hooks:
35+
- id: interrogate

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
![GitHub Repo stars](https://img.shields.io/github/stars/pymc-labs/causalpy?style=social)
77
![Read the Docs](https://img.shields.io/readthedocs/causalpy)
88
![PyPI - Downloads](https://img.shields.io/pypi/dm/causalpy)
9+
![Interrogate](img/interrogate_badge.svg)
910

1011
A Python package focussing on causal inference in quasi-experimental settings. The package allows for sophisticated Bayesian model fitting methods to be used in addition to traditional OLS.
1112

img/interrogate_badge.svg

Lines changed: 58 additions & 0 deletions
Loading

pyproject.toml

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,26 @@ markers = [
1414
"integration: mark as an integration test.",
1515
"slow: mark test as slow.",
1616
]
17+
18+
[tool.interrogate]
19+
ignore-init-method = true
20+
ignore-init-module = false
21+
ignore-magic = false
22+
ignore-semiprivate = false
23+
ignore-private = false
24+
ignore-property-decorators = false
25+
ignore-module = false
26+
ignore-nested-functions = false
27+
ignore-nested-classes = true
28+
ignore-setters = false
29+
fail-under = 80
30+
exclude = ["setup.py", "docs", "build"]
31+
ignore-regex = ["^get$", "^mock_.*", ".*BaseClass.*"]
32+
# possible values: 0 (minimal output), 1 (-v), 2 (-vv)
33+
verbose = 1
34+
quiet = false
35+
whitelist-regex = []
36+
color = true
37+
omit-covered-files = false
38+
generate-badge = "img"
39+
badge-format = "svg"

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
pathlib
22
pre-commit
33
twine
4+
interrogate

0 commit comments

Comments
 (0)