Replace deprecated type hints and add more pylint rules

This commit is contained in:
sebthom
2022-02-09 07:14:39 +01:00
parent 66f57a0822
commit 08e2705b02
4 changed files with 47 additions and 31 deletions

View File

@@ -70,9 +70,9 @@ dev = [
app = "python -m kleinanzeigen_bot"
compile = "python -O -m PyInstaller pyinstaller.spec --clean"
format = "autopep8 --recursive --in-place kleinanzeigen_bot tests"
lint = "pylint kleinanzeigen_bot"
lint = "pylint -v kleinanzeigen_bot tests"
scan = "bandit -c pyproject.toml -r kleinanzeigen_bot"
test = "python -m pytest -v"
test = "python -m pytest --capture=tee-sys -v"
#####################
@@ -109,6 +109,19 @@ extension-pkg-whitelist = "win32api"
ignore = "version.py"
jobs = 4
persistent = "no"
load-plugins = [
"pylint.extensions.bad_builtin",
"pylint.extensions.comparetozero",
"pylint.extensions.check_elif",
"pylint.extensions.code_style",
"pylint.extensions.comparison_placement",
"pylint.extensions.empty_comment",
"pylint.extensions.for_any_all",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.redefined_variable_type",
"pylint.extensions.set_membership",
"pylint.extensions.typing",
]
[tool.pylint.basic]
good-names = ["i", "j", "k", "v", "by", "ex", "fd", "_"]
@@ -124,6 +137,7 @@ logging-modules = "logging"
# https://pylint.pycqa.org/en/latest/technical_reference/features.html#messages-control-options
disable= [
"broad-except",
"consider-using-assignment-expr",
"missing-docstring",
"multiple-imports",
"multiple-statements",