Skip to content

Commit

Permalink
move mypy config to pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
jakkdl committed Jul 13, 2023
1 parent 4cd3164 commit 6f187fb
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 25 deletions.
25 changes: 0 additions & 25 deletions mypy.ini

This file was deleted.

25 changes: 25 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,31 @@ combine_as_imports = true
profile = "black"
skip_gitignore = true

[tool.mypy]
python_version = "3.8"

# Be flexible about dependencies that don't have stubs yet (like pytest)
ignore_missing_imports = true

# Be strict about use of Mypy
warn_unused_ignores = true
warn_unused_configs = true
warn_redundant_casts = true
warn_return_any = true

# Avoid subtle backsliding
#disallow_any_decorated = true
#disallow_incomplete_defs = true
#disallow_subclassing_any = true

# Enable gradually / for new modules
check_untyped_defs = false
disallow_untyped_calls = false
disallow_untyped_defs = false

# DO NOT use `ignore_errors`; it doesn't apply
# downstream and users have to deal with them.

[tool.pytest.ini_options]
addopts = ["--strict-markers", "--strict-config"]
faulthandler_timeout = 60
Expand Down

0 comments on commit 6f187fb

Please sign in to comment.