forked from spdx/spec-parser
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathruff.toml
48 lines (43 loc) · 1.52 KB
/
ruff.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
fix = false
indent-width = 4
line-length = 140
output-format = "full"
# output-format = "grouped"
preview = false
required-version = ">=0.4"
show-fixes = true
[format]
docstring-code-format = false
indent-style = "space"
line-ending = "native"
quote-style = "double"
skip-magic-trailing-comma = false
[lint]
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
fixable = ["ALL"]
ignore = [ "C408", "C901", "COM812", "G004", "ISC001", "RET505", "S101", ]
ignore-init-module-imports = true
select = [
"A", "AIR", "ARG", "ASYNC", "B", "C", "BLE", "C4", "COM", "DJ", "DTZ",
"EM", "ERA", "E", "W", "EXE", "F", "FA", "FBT", "FIX", "FLY", "G", "I",
"ICN", "INP", "INT", "ISC", "LOG", "N", "NPY", "PD", "PERF", "PGH", "PIE",
"PL", "PT", "PTH", "PYI", "Q", "R", "RET", "RSE", "RUF", "S", "SIM",
"SLF", "SLOT", "T10", "T20", "TCH", "TD", "TID", "TRIO", "TRY", "UP", "YTT",
]
unfixable = []
[lint.per-file-ignores]
# Ignore F401 (unused import) in the module definition file
"spec_parser/__init__.py" = ["F401"]
# Ignore E741 (Ambiguous variable name) in file using `(l,r)` pairs
"spec_parser/mdparsing.py" = ["E741"]
"spec_parser/plantuml.py" = ["E741"]
# temporary ignores -- will be removed once code is added
"spec_parser/jsondump.py" = ["ARG001"] # unused function argument, for cfg
"spec_parser/rdf.py" = ["ARG001", # unused function argument, for cfg
"F401", # unused import, for SKOS
"N806", # uppercase variable, for OMG_ANN
"PLR0915", # too many statements, for gen_rdf_ontology
]
[lint.pylint]
max-branches = 35
max-statements = 55