| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 0b2f6bc commit 64e8c31
4 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -30,7 +30,7 @@ repos: | |||
| 30 | 30 | - requests-toolbelt==0.9.1 | |
| 31 | 31 | files: 'gitlab/' | |
| 32 | 32 | - repo: https://github.com/pre-commit/mirrors-mypy | |
| 33 | - rev: v0.961 | ||
| 33 | + rev: v0.981 | ||
| 34 | 34 | hooks: | |
| 35 | 35 | - id: mypy | |
| 36 | 36 | args: [] | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -6,24 +6,7 @@ order_by_type = false | |||
| 6 | 6 | [tool.mypy] | |
| 7 | 7 | files = "." | |
| 8 | 8 | exclude = "build/.*" | |
| 9 | - | ||
| 10 | - # 'strict = true' is equivalent to the following: | ||
| 11 | - check_untyped_defs = true | ||
| 12 | - disallow_any_generics = true | ||
| 13 | - disallow_incomplete_defs = true | ||
| 14 | - disallow_subclassing_any = true | ||
| 15 | - disallow_untyped_decorators = true | ||
| 16 | - disallow_untyped_defs = true | ||
| 17 | - no_implicit_optional = true | ||
| 18 | - no_implicit_reexport = true | ||
| 19 | - strict_equality = true | ||
| 20 | - warn_redundant_casts = true | ||
| 21 | - warn_return_any = true | ||
| 22 | - warn_unused_configs = true | ||
| 23 | - warn_unused_ignores = true | ||
| 24 | - | ||
| 25 | - # The following need to have changes made to be able to enable them: | ||
| 26 | - # disallow_untyped_calls = true | ||
| 9 | + strict = true | ||
| 27 | 10 | ||
| 28 | 11 | [[tool.mypy.overrides]] # Overrides for currently untyped modules | |
| 29 | 12 | module = [ | |
@@ -33,10 +16,13 @@ module = [ | |||
| 33 | 16 | "tests.functional.api.*", | |
| 34 | 17 | "tests.meta.*", | |
| 35 | 18 | "tests.unit.*", | |
| 36 | - "tests.smoke.*" | ||
| 37 | 19 | ] | |
| 38 | 20 | ignore_errors = true | |
| 39 | 21 | ||
| 22 | + [[tool.mypy.overrides]] | ||
| 23 | + module = "tests.smoke.*" | ||
| 24 | + disable_error_code = ["no-untyped-def"] | ||
| 25 | + | ||
| 40 | 26 | [tool.semantic_release] | |
| 41 | 27 | branch = "main" | |
| 42 | 28 | version_variable = "gitlab/_version.py:__version__" | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -8,4 +8,4 @@ pylint==2.15.3 | |||
| 8 | 8 | pytest==7.1.3 | |
| 9 | 9 | types-PyYAML==6.0.12 | |
| 10 | 10 | types-requests==2.28.11.2 | |
| 11 | - types-setuptools==64.0.1 | ||
| 11 | + types-setuptools==65.5.0.1 | ||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -18,9 +18,9 @@ | |||
| 18 | 18 | ||
| 19 | 19 | ||
| 20 | 20 | @pytest.fixture(scope="function") | |
| 21 | - def build(): | ||
| 22 | - sandbox.run_setup("setup.py", ["--quiet", "clean", "--all"]) | ||
| 23 | - return sandbox.run_setup("setup.py", ["--quiet", "sdist", "bdist_wheel"]) | ||
| 21 | + def build() -> None: | ||
| 22 | + sandbox.run_setup("setup.py", ["--quiet", "clean", "--all"]) # type: ignore[no-untyped-call] | ||
| 23 | + sandbox.run_setup("setup.py", ["--quiet", "sdist", "bdist_wheel"]) # type: ignore[no-untyped-call] | ||
| 24 | 24 | ||
| 25 | 25 | ||
| 26 | 26 | def test_sdist_includes_tests(build): | |
| Back | FazBrowse Home | New Git URL |
0 commit comments