Skip to content

Commit 0102a73

Browse files
committed
save
1 parent 4a95341 commit 0102a73

1 file changed

Lines changed: 14 additions & 2 deletions

File tree

pyproject.toml

Lines changed: 14 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -147,6 +147,9 @@ output-format = "grouped"
147147
unsafe-fixes = true
148148

149149
exclude = [
150+
# TODO(eddiebergman): Tests should be re-enabled after the refactor
151+
"tests",
152+
#
150153
".bzr",
151154
".direnv",
152155
".eggs",
@@ -270,7 +273,6 @@ ignore = [
270273
"S101", # Use of assert detected.
271274
"W292", # No newline at end of file
272275
"PLC1901", # "" can be simplified to be falsey
273-
"TC003", # Move stdlib import into TYPE_CHECKING
274276
"COM812", # Trailing comma missing (handled by linter, ruff recommend disabling if using formatter)
275277
"N803", # Argument should be lowercase (but we accept things like `X`)
276278
"PLC0415", # Allow imports inside functions / non-top-level scope
@@ -306,7 +308,7 @@ convention = "numpy"
306308

307309
[tool.mypy]
308310
python_version = "3.10"
309-
packages = ["openml", "tests"]
311+
packages = ["openml"]
310312

311313
show_error_codes = true
312314

@@ -323,3 +325,13 @@ no_implicit_optional = true
323325
check_untyped_defs = true
324326

325327
warn_return_any = true
328+
329+
[[tool.mypy.overrides]]
330+
module = ["tests.*", "openml.extensions.sklearn.*"]
331+
332+
# TODO(eddiebergman): This should be re-enabled after tests get refactored
333+
ignore_errors = true
334+
#disallow_untyped_defs = false # Sometimes we just want to ignore verbose types
335+
#disallow_untyped_decorators = false # Test decorators are not properly typed
336+
#disallow_incomplete_defs = false # Sometimes we just want to ignore verbose types
337+
#disable_error_code = ["var-annotated"]

0 commit comments

Comments
 (0)