mirror of
https://github.com/lucaspalomodevelop/netbox-acls.git
synced 2026-03-13 07:29:40 +00:00
56 lines
1.3 KiB
Plaintext
56 lines
1.3 KiB
Plaintext
[MASTER]
|
|
load-plugins=pylint_django
|
|
django-settings-module=/opt/netbox/netbox/netbox/netbox.settings
|
|
|
|
[tool.black]
|
|
line-length = 100
|
|
|
|
[tool.pylint]
|
|
|
|
[tool.pylint.format]
|
|
max-line-length = 100
|
|
|
|
[tool.pylint.master]
|
|
# pylint defaults + fh for with open .. as (f|fh)
|
|
good-names = "i,j,k,ex,Run,_,f,fh"
|
|
no-docstring-rgx = "__.*__"
|
|
|
|
[tool.pylint.messages_control]
|
|
# missing module docstring will be picked up by pydocstyle
|
|
# could not do infile b/c older version of pylint didn't have it
|
|
# and ansible-test sanity uses older version in earlier ansible
|
|
# pointless-string-statement allows for attribute docstring in dataclasses
|
|
disable = [
|
|
"duplicate-code",
|
|
"fixme",
|
|
"missing-module-docstring",
|
|
"pointless-string-statement",
|
|
"too-few-public-methods",
|
|
"unsubscriptable-object",
|
|
]
|
|
enable = [
|
|
"expression-not-assigned",
|
|
"global-variable-not-assigned",
|
|
"possibly-unused-variable",
|
|
"reimported",
|
|
"unused-argument",
|
|
"unused-import",
|
|
"unused-variable",
|
|
"unused-wildcard-import",
|
|
"useless-else-on-loop",
|
|
"useless-import-alias",
|
|
"useless-object-inheritance",
|
|
"useless-parent-delegation",
|
|
"useless-return",
|
|
"useless-suppression", # Identify unneeded pylint disable statements
|
|
]
|
|
|
|
[tool.isort]
|
|
force_grid_wrap = 0
|
|
include_trailing_comma = true
|
|
line_length = 79
|
|
multi_line_output = 1
|
|
overwrite_in_place = true
|
|
use_parentheses = true
|
|
verbose = true
|