-
Notifications
You must be signed in to change notification settings - Fork 4
/
pyproject.toml
60 lines (55 loc) · 1.49 KB
/
pyproject.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
[tool.ruff]
line-length = 100
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"C", # flake8-comprehensions
"B", # flake8-bugbear
"ASYNC", # flake8-async
"C4", # flake8-comprehensions
"G", # flake8-logging-format
"S", # bandit
"PL" # pylint
]
ignore = [
"E501", # line too long, handled by black
"C901", # function is too complex
"PLR2004", # magic value used in comparison
"PLR1711", # useless `return` statement at end of function
"PLC1901", # compare-to-empty-string
"PLR0911", # too many return statements
"PLR0912", # too many branches
"PLR0915", # too many statements
"B009", # do not call getattr with a constant attribute value
"B904", # raise without from inside except
"S311", # standard pseudo-random generators are not suitable for cryptographic purposes
]
[tool.ruff.lint.pylint]
max-args = 10
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401", "F403"]
"netbox_cmdb/netbox_cmdb/tests/**.py" = ["E402", "S", "PL"]
[tool.black]
line-length = 100
exclude = '''
(
/(
\.eggs
| \.git
| \.tox
| \.venv
| venv
| env
| \.env
| migrations
| develop
)/
)
'''
[tool.isort]
profile = "black"
multi_line_output = 3
skip_gitignore = true
skip = ".bzr,.direnv,.eggs,.git,.hg,.mypy_cache,.nox,.pants.d,.svn,.tox,.venv,_build,buck-out,build,dist,node_modules,venv,migrations,urls.py"