Skip to content

Commit

Permalink
feat: require pylint v3 and add a slew of optional plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
jenstroeger committed Dec 11, 2023
1 parent bb6a0d1 commit 9263c12
Showing 1 changed file with 29 additions and 2 deletions.
31 changes: 29 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ dev = [
"flit >=3.2.0,<4.0.0",
"mypy >=0.921,<1.8",
"pip-audit >=2.4.4,<3.0.0",
"pylint >=2.9.3,<3.0.3",
"pylint >=3.0.0,<3.1.0",
"cyclonedx-bom >=3.11.0,<4.0.0",
]
docs = [
Expand Down Expand Up @@ -170,8 +170,35 @@ ignore_missing_imports = true


# https://pylint.pycqa.org/en/latest/user_guide/configuration/index.html
[tool.pylint.MASTER]
[tool.pylint.main]
fail-under = 10.0
suggestion-mode = true
load-plugins = [
"pylint.extensions.bad_builtin",
"pylint.extensions.broad_try_clause",
"pylint.extensions.check_elif",
"pylint.extensions.code_style",
"pylint.extensions.comparison_placement",
"pylint.extensions.confusing_elif",
"pylint.extensions.consider_refactoring_into_while_condition",
"pylint.extensions.consider_ternary_expression",
"pylint.extensions.dict_init_mutate",
# "pylint.extensions.docparams",
# "pylint.extensions.docstyle",
"pylint.extensions.dunder",
"pylint.extensions.empty_comment",
"pylint.extensions.for_any_all",
"pylint.extensions.magic_value",
# "pylint.extensions.mccabe",
"pylint.extensions.no_self_use",
"pylint.extensions.overlapping_exceptions",
"pylint.extensions.private_import",
"pylint.extensions.redefined_loop_name",
"pylint.extensions.redefined_variable_type",
"pylint.extensions.set_membership",
"pylint.extensions.typing",
"pylint.extensions.while_used",
]
disable = [
"fixme",
"line-too-long", # Replaced by Flake8 Bugbear B950 check.
Expand Down

0 comments on commit 9263c12

Please sign in to comment.