Skip to content

Commit 879c836

Browse files
authored
build: Update mypy configuration (#1505)
Minor fixes in wrong mypy settings.
1 parent be3728b commit 879c836

File tree

2 files changed

+6
-25
lines changed

2 files changed

+6
-25
lines changed

.pre-commit-config.yaml

-10
Original file line numberDiff line numberDiff line change
@@ -112,15 +112,5 @@ repos:
112112
build/.* |
113113
ci/.* |
114114
docs/.* |
115-
tests/conftest.py |
116-
tests/cartesian_tests/.* |
117-
tests/next_tests/unit_tests/.* |
118-
tests/next_tests/integration_tests/multi_feature_tests/.* |
119-
tests/next_tests/integration_tests/feature_tests/ffront_tests/.* |
120-
tests/next_tests/integration_tests/feature_tests/iterator_tests/.* |
121-
tests/next_tests/integration_tests/feature_tests/otf_tests/.* |
122-
tests/next_tests/integration_tests/feature_tests/math_builtin_test_data.py |
123-
tests/next_tests/past_common_fixtures.py |
124-
tests/next_tests/toy_connectivity.py |
125115
tests/.*
126116
)$

pyproject.toml

+6-15
Original file line numberDiff line numberDiff line change
@@ -122,25 +122,16 @@ source_pkgs = ['gt4py']
122122
disallow_incomplete_defs = true
123123
exclude = [
124124
'^setup\.py$',
125-
'^build/.*py$',
126-
'^ci/*.py$',
127-
'^tests/cartesian_tests/*.py$',
128-
'^tests/storage_tests/*.py$',
129-
'^tests/eve_tests/*.py$',
130-
'^tests/next_tests/unit_tests/*.py$',
131-
'^tests/next_tests/integration_tests/multi_feature_tests/*.py$',
132-
'^tests/next_tests/integration_tests/feature_tests/ffront_tests/*.py$',
133-
'^tests/next_tests/integration_tests/feature_tests/iterator_tests/*.py$',
134-
'^tests/next_tests/integration_tests/feature_tests/otf_tests/*.py$',
135-
'^tests/next_tests/integration_tests/feature_tests/math_builtin_test_data.py$',
136-
'^tests/next_tests/past_common_fixtures.py$',
137-
'^tests/next_tests/toy_connectivity.py$'
125+
'build/.*$',
126+
'ci/*.$',
127+
'docs/.*$',
128+
'tests/.*$'
138129
]
139130
ignore_missing_imports = true
131+
implicit_optional = false
132+
implicit_reexport = false
140133
install_types = true
141134
namespace_packages = false
142-
no_implicit_optional = true
143-
no_implicit_reexport = true
144135
# pretty = true
145136
show_column_numbers = true
146137
show_error_codes = true

0 commit comments

Comments
 (0)