Skip to content
This repository was archived by the owner on Feb 20, 2026. It is now read-only.

Commit d145702

Browse files
committed
Move mypy options into a config file
1 parent 0e43575 commit d145702

2 files changed

Lines changed: 16 additions & 1 deletion

File tree

ci.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ set -x
22
set -e
33

44
which black && black --check .
5-
MYPYPATH=stubs mypy --ignore-missing-imports --strict cli_ui
5+
mypy cli_ui
66
pyflakes cli_ui/__init__.py cli_ui/tests/test_cli_ui.py
77
pytest --cov . --cov-report term
88
sphinx-build -W docs docs/_build/html

mypy.ini

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
[mypy]
2+
mypy_path = stubs
3+
disallow_untyped_decorators = false
4+
warn_unused_configs = true
5+
disallow_subclassing_any = true
6+
disallow_untyped_calls = true
7+
disallow_untyped_defs = true
8+
disallow_incomplete_defs = true
9+
check_untyped_defs = true
10+
no_implicit_optional = true
11+
warn_redundant_casts = true
12+
warn_unused_ignores = true
13+
warn_return_any = true
14+
ignore_missing_imports = true
15+
pretty = true

0 commit comments

Comments
 (0)