summaryrefslogtreecommitdiff
path: root/pyproject.toml
diff options
context:
space:
mode:
authorNejc Habjan <hab.nejc@gmail.com>2021-08-01 12:04:03 +0200
committerJohn Villalovos <john@sodarock.com>2021-08-22 22:25:14 -0700
commitbd50df6b963af39b70ea2db50fb2f30b55ddc196 (patch)
treeef64050d6324809d7792ec8b1a47db9c7c85e2cb /pyproject.toml
parent8e27721554af417623bfe13a2b76710a61fca44d (diff)
downloadgitlab-bd50df6b963af39b70ea2db50fb2f30b55ddc196.tar.gz
chore: fix mypy pre-commit hook
Diffstat (limited to 'pyproject.toml')
-rw-r--r--pyproject.toml22
1 files changed, 22 insertions, 0 deletions
diff --git a/pyproject.toml b/pyproject.toml
index 448a4e3..0cd4c1b 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -3,6 +3,28 @@ profile = "black"
multi_line_output = 3
order_by_type = false
+[tool.mypy]
+disallow_incomplete_defs = true
+disallow_untyped_defs = true
+
+[[tool.mypy.overrides]] # Overrides for currently untyped modules
+module = [
+ "docs.*",
+ "docs.ext.*",
+ "gitlab.v4.objects.*",
+ "setup",
+ "tests.functional.*",
+ "tests.functional.api.*",
+ "tests.unit.*"
+]
+ignore_errors = true
+
+[[tool.mypy.overrides]] # Overrides to negate above patterns
+module = [
+ "gitlab.v4.objects.projects"
+]
+ignore_errors = false
+
[tool.semantic_release]
version_variable = "gitlab/__version__.py:__version__"
commit_subject = "chore: release v{version}"