mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 02:31:45 +01:00
Improving type hints
This commit is contained in:
@@ -103,6 +103,20 @@ aggressive = 3
|
||||
[tool.bandit]
|
||||
|
||||
|
||||
#####################
|
||||
# mypy
|
||||
# https://github.com/python/mypy
|
||||
#####################
|
||||
[tool.mypy]
|
||||
python_version = "3.10"
|
||||
strict = true
|
||||
disallow_untyped_defs = true
|
||||
disallow_incomplete_defs = true
|
||||
ignore_missing_imports = true
|
||||
show_error_codes = true
|
||||
warn_unused_ignores = true
|
||||
|
||||
|
||||
#####################
|
||||
# pylint
|
||||
# https://pypi.org/project/pylint/
|
||||
@@ -128,7 +142,7 @@ load-plugins = [
|
||||
]
|
||||
|
||||
[tool.pylint.basic]
|
||||
good-names = ["i", "j", "k", "v", "by", "ex", "fd", "_"]
|
||||
good-names = ["i", "j", "k", "v", "by", "ex", "fd", "_", "T"]
|
||||
|
||||
[tool.pylint.format]
|
||||
# https://pylint.pycqa.org/en/latest/technical_reference/features.html#format-checker
|
||||
|
||||
Reference in New Issue
Block a user