| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 8e27721 commit bd50df6
10 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -21,6 +21,10 @@ repos: | |||
| 21 | 21 | hooks: | |
| 22 | 22 | - id: isort | |
| 23 | 23 | - repo: https://github.com/pre-commit/mirrors-mypy | |
| 24 | - rev: v0.812 | ||
| 24 | + rev: v0.910 | ||
| 25 | 25 | hooks: | |
| 26 | 26 | - id: mypy | |
| 27 | + additional_dependencies: | ||
| 28 | + # todo: sync with pip deps via renovate regex manager | ||
| 29 | + - types-PyYAML==5.4.3 | ||
| 30 | + - types-requests==2.25.1 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -3,6 +3,28 @@ profile = "black" | |||
| 3 | 3 | multi_line_output = 3 | |
| 4 | 4 | order_by_type = false | |
| 5 | 5 | ||
| 6 | + [tool.mypy] | ||
| 7 | + disallow_incomplete_defs = true | ||
| 8 | + disallow_untyped_defs = true | ||
| 9 | + | ||
| 10 | + [[tool.mypy.overrides]] # Overrides for currently untyped modules | ||
| 11 | + module = [ | ||
| 12 | + "docs.*", | ||
| 13 | + "docs.ext.*", | ||
| 14 | + "gitlab.v4.objects.*", | ||
| 15 | + "setup", | ||
| 16 | + "tests.functional.*", | ||
| 17 | + "tests.functional.api.*", | ||
| 18 | + "tests.unit.*" | ||
| 19 | + ] | ||
| 20 | + ignore_errors = true | ||
| 21 | + | ||
| 22 | + [[tool.mypy.overrides]] # Overrides to negate above patterns | ||
| 23 | + module = [ | ||
| 24 | + "gitlab.v4.objects.projects" | ||
| 25 | + ] | ||
| 26 | + ignore_errors = false | ||
| 27 | + | ||
| 6 | 28 | [tool.semantic_release] | |
| 7 | 29 | version_variable = "gitlab/__version__.py:__version__" | |
| 8 | 30 | commit_subject = "chore: release v{version}" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -41,7 +41,7 @@ basepython = python3 | |||
| 41 | 41 | envdir={toxworkdir}/lint | |
| 42 | 42 | deps = -r{toxinidir}/requirements-lint.txt | |
| 43 | 43 | commands = | |
| 44 | - mypy {posargs} | ||
| 44 | + mypy {posargs} . | ||
| 45 | 45 | ||
| 46 | 46 | [testenv:twine-check] | |
| 47 | 47 | basepython = python3 | |
| Back | FazBrowse Home | New Git URL |
0 commit comments