From f9a46848b23b571826f3592ad94031ca60e9e837 Mon Sep 17 00:00:00 2001 From: Corey Oordt Date: Wed, 22 Dec 2021 12:02:54 -0600 Subject: [PATCH] Updated project configurations - pre-commit to ignore certain files - ignore some documentation errors --- .pre-commit-config.yaml | 4 +++- pyproject.toml | 4 ++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9e54b49..5da5536 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -35,7 +35,7 @@ repos: rev: 6.1.1 hooks: - id: pydocstyle - exclude: test.* + exclude: test.*|custom_.*|\d\d\d\d_.* additional_dependencies: [toml] - repo: https://github.com/terrencepreilly/darglint rev: v1.8.1 @@ -45,6 +45,8 @@ repos: - -v 2 - "--message-template={path}:{line} in `{obj}`:\n {msg_id}: {msg}" - --strictness=short + exclude: test.*|custom_.*|\d\d\d\d_.* + - repo: https://github.com/econchick/interrogate rev: 1.5.0 # or master if you're bold hooks: diff --git a/pyproject.toml b/pyproject.toml index 126de67..1cb253a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -32,7 +32,7 @@ ignore-module = false ignore-nested-functions = true ignore-nested-classes = true ignore-setters = false -fail-under = 95 +fail-under = 60 exclude = ["setup.py", "docs", "build", "test"] ignore-regex = ["^get$", "^mock_.*", ".*BaseClass.*"] verbose = 0 @@ -55,7 +55,7 @@ color_output = true [tool.pydocstyle] convention = "google" -add-ignore = ["D107", "D200", "D212"] +add-ignore = ["D104", "D105", "D106", "D107", "D200", "D212"] match = "(?!test_).*\\.py" [tool.black]