From 892b9fdbf0348e90150ec78b62329640086ca983 Mon Sep 17 00:00:00 2001 From: Karl Higley Date: Mon, 7 Mar 2022 11:00:07 -0500 Subject: [PATCH] Set up automated docstring coverage checks --- .github/workflows/cpu-ci.yml | 3 +++ .pre-commit-config.yaml | 5 +++++ requirements-dev.txt | 1 + 3 files changed, 9 insertions(+) diff --git a/.github/workflows/cpu-ci.yml b/.github/workflows/cpu-ci.yml index 44b57bb5e..d198db5c4 100644 --- a/.github/workflows/cpu-ci.yml +++ b/.github/workflows/cpu-ci.yml @@ -42,6 +42,9 @@ jobs: - name: Lint with isort run: | isort -c . + - name: Lint with interrogate + run: | + interrogate -viImMpPsSCn -f 39.9 merlin - name: Lint with codespell run: | codespell diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9b6424579..b0d143a15 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,6 +17,11 @@ repos: rev: pylint-2.7.4 hooks: - id: pylint + - repo: https://github.com/econchick/interrogate + rev: 1.5.0 + hooks: + - id: interrogate + args: [-viImMpPsSCn, -f, "39.9", merlin] - repo: https://github.com/codespell-project/codespell rev: v2.1.0 hooks: diff --git a/requirements-dev.txt b/requirements-dev.txt index 1badd633e..71665ea98 100644 --- a/requirements-dev.txt +++ b/requirements-dev.txt @@ -6,6 +6,7 @@ flake8==3.9.2 isort==5.9.3 pylint==2.7.4 bandit==1.7.0 +interrogate==1.5.0 pytest>=5 pytest-cov>=2 pytest-xdist