mirror of
https://github.com/kovidgoyal/kitty
synced 2026-07-17 14:04:52 +02:00
More typing work
Also use a mypy based linter when editing
This commit is contained in:
24
setup.cfg
24
setup.cfg
@@ -13,8 +13,15 @@ blank_line_before_nested_class_or_def = True
|
||||
combine_as_imports = True
|
||||
multi_line_output = 5
|
||||
|
||||
[mypy]
|
||||
files = kitty,kittens,glfw,*.py
|
||||
[pylama]
|
||||
linters=mypy,pycodestyle,pyflakes
|
||||
|
||||
[pylama:pycodestyle]
|
||||
max_line_length = 120
|
||||
exclude==template.py,linux-package
|
||||
|
||||
[pylama:mypy]
|
||||
files = kitty,kittens,glfw,*.py,docs/conf.py
|
||||
no_implicit_optional = True
|
||||
sqlite_cache = True
|
||||
cache_fine_grained = True
|
||||
@@ -22,4 +29,17 @@ warn_redundant_casts = True
|
||||
warn_unused_ignores = True
|
||||
warn_return_any = True
|
||||
warn_unreachable = True
|
||||
warn_no_return = False
|
||||
check_untyped_defs = True
|
||||
|
||||
[mypy]
|
||||
files = kitty,kittens,glfw,*.py,docs/conf.py
|
||||
no_implicit_optional = True
|
||||
sqlite_cache = True
|
||||
cache_fine_grained = True
|
||||
warn_redundant_casts = True
|
||||
warn_unused_ignores = True
|
||||
warn_return_any = True
|
||||
warn_unreachable = True
|
||||
warn_no_return = False
|
||||
# check_untyped_defs = True
|
||||
|
||||
Reference in New Issue
Block a user