From 0a0b42348e13979c31066fb73907c77b74fdc3ae Mon Sep 17 00:00:00 2001 From: Hynek Schlawack Date: Wed, 10 Apr 2024 10:59:44 -0700 Subject: [PATCH] update linting --- .pre-commit-config.yaml | 12 ++++++++++++ pyproject.toml | 7 +++++++ 2 files changed, 19 insertions(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index cf44287..3366c9a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -36,6 +36,18 @@ repos: - id: flake8 additional_dependencies: [flake8-bugbear] + - repo: https://github.com/econchick/interrogate + rev: 1.7.0 + hooks: + - id: interrogate + args: [tests] + + - repo: https://github.com/codespell-project/codespell + rev: v2.2.6 + hooks: + - id: codespell + args: [-L, alog] + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.6.0 hooks: diff --git a/pyproject.toml b/pyproject.toml index 4665237..73b2be3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -74,3 +74,10 @@ line-length = 79 [tool.isort] profile = "attrs" + + +[tool.interrogate] +omit-covered-files = true +verbose = 2 +fail-under = 100 +whitelist-regex = ["test_.*"]