Skip to content

Commit 1a24a30

Browse files
authored
Merge pull request #6 from ocefpaf/add_interrogate
2 parents 626cd51 + 3a52ff5 commit 1a24a30

File tree

4 files changed

+27
-1
lines changed

4 files changed

+27
-1
lines changed

.pre-commit-config.yaml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,12 @@
11
repos:
2+
3+
- repo: https://github.com/econchick/interrogate
4+
rev: 1.2.0
5+
hooks:
6+
- id: interrogate
7+
exclude: ^(docs|setup.py|tests)
8+
args: [--config=pyproject.toml]
9+
210
- repo: https://github.com/pre-commit/pre-commit-hooks
311
rev: v3.1.0
412
hooks:
@@ -25,7 +33,7 @@ repos:
2533
hooks:
2634
- id: isort
2735
additional_dependencies: [toml]
28-
args: [--project=mymodule, --multi-line=3, --lines-after-imports=2, --lines-between-types=1, --trailing-comma, --force-grid-wrap=0, --use-parentheses, --line-width=88]
36+
args: [--project=ioos_pkg_skeleton, --multi-line=3, --lines-after-imports=2, --lines-between-types=1, --trailing-comma, --force-grid-wrap=0, --use-parentheses, --line-width=88]
2937

3038
- repo: https://github.com/asottile/seed-isort-config
3139
rev: v2.1.1

ioos_pkg_skeleton/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
"""
2+
ioos_pkg_skeleton is not a reak package, just a set of best practices examples.
3+
"""
4+
15
from ioos_pkg_skeleton.ioos_pkg_skeleton import meaning_of_life, meaning_of_life_url
26

37

pyproject.toml

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
11
[build-system]
22
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.interrogate]
6+
ignore-init-method = true
7+
ignore-init-module = false
8+
ignore-magic = false
9+
ignore-semiprivate = false
10+
ignore-private = false
11+
ignore-module = false
12+
fail-under = 95
13+
exclude = ["setup.py", "docs", "tests"]
14+
verbose = 1
15+
quiet = false
16+
color = true

requirements-dev.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ flake8-builtins
66
flake8-comprehensions
77
flake8-mutable
88
flake8-print
9+
interrogate
910
isort
1011
nbsphinx
1112
pre-commit

0 commit comments

Comments
 (0)