Skip to content

Commit

Permalink
Merge pull request #6 from ocefpaf/add_interrogate
Browse files Browse the repository at this point in the history
  • Loading branch information
ocefpaf authored Jun 9, 2020
2 parents 626cd51 + 3a52ff5 commit 1a24a30
Show file tree
Hide file tree
Showing 4 changed files with 27 additions and 1 deletion.
10 changes: 9 additions & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
repos:

- repo: https://github.com/econchick/interrogate
rev: 1.2.0
hooks:
- id: interrogate
exclude: ^(docs|setup.py|tests)
args: [--config=pyproject.toml]

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.1.0
hooks:
Expand All @@ -25,7 +33,7 @@ repos:
hooks:
- id: isort
additional_dependencies: [toml]
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]
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]

- repo: https://github.com/asottile/seed-isort-config
rev: v2.1.1
Expand Down
4 changes: 4 additions & 0 deletions ioos_pkg_skeleton/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
"""
ioos_pkg_skeleton is not a reak package, just a set of best practices examples.
"""

from ioos_pkg_skeleton.ioos_pkg_skeleton import meaning_of_life, meaning_of_life_url


Expand Down
13 changes: 13 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,16 @@
[build-system]
requires = ["setuptools>=42", "wheel", "setuptools_scm[toml]>=3.4"]
build-backend = "setuptools.build_meta"

[tool.interrogate]
ignore-init-method = true
ignore-init-module = false
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-module = false
fail-under = 95
exclude = ["setup.py", "docs", "tests"]
verbose = 1
quiet = false
color = true
1 change: 1 addition & 0 deletions requirements-dev.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ flake8-builtins
flake8-comprehensions
flake8-mutable
flake8-print
interrogate
isort
nbsphinx
pre-commit
Expand Down

0 comments on commit 1a24a30

Please sign in to comment.