mirror of
https://github.com/Second-Hand-Friends/kleinanzeigen-bot.git
synced 2026-03-12 10:31:50 +01:00
Replace deprecated type hints and add more pylint rules
This commit is contained in:
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user