Skip to content

Commit 76a0e15

Browse files
authored
Merge pull request optuna#5861 from himkt/mypy-pyproject
RFC: move mypy related entries in setup.cfg to pyproject.toml
2 parents 54469cf + cde8bcc commit 76a0e15

File tree

2 files changed

+16
-17
lines changed

2 files changed

+16
-17
lines changed

pyproject.toml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,3 +166,19 @@ markers = [
166166
"skip_coverage: marks tests are skipped when calculating the coverage",
167167
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
168168
]
169+
170+
[tool.mypy]
171+
# Options configure mypy's strict mode.
172+
warn_unused_configs = true
173+
disallow_untyped_calls = true
174+
disallow_untyped_defs = true
175+
disallow_incomplete_defs = true
176+
check_untyped_defs = true
177+
no_implicit_optional = true
178+
warn_redundant_casts = true
179+
strict_equality = true
180+
extra_checks = true
181+
no_implicit_reexport = true
182+
183+
ignore_missing_imports = true
184+
exclude = [".venv", "venv", "build", "docs", "tutorial", "optuna/storages/_rdb/alembic"]

setup.cfg

Lines changed: 0 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,3 @@ ignore =
77
max-line-length = 99
88
statistics = True
99
exclude = .venv,venv,build,tutorial,.asv,docs/visualization_examples,docs/visualization_matplotlib_examples
10-
11-
# This section is for mypy.
12-
[mypy]
13-
# Options configure mypy's strict mode.
14-
warn_unused_configs = True
15-
disallow_untyped_calls = True
16-
disallow_untyped_defs = True
17-
disallow_incomplete_defs = True
18-
check_untyped_defs = True
19-
no_implicit_optional = True
20-
warn_redundant_casts = True
21-
strict_equality = True
22-
extra_checks = True
23-
no_implicit_reexport = True
24-
25-
ignore_missing_imports = True
26-
exclude = .venv|venv|build|docs|tutorial|optuna/storages/_rdb/alembic

0 commit comments

Comments
 (0)