-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathruff.toml
More file actions
66 lines (60 loc) · 1.68 KB
/
ruff.toml
File metadata and controls
66 lines (60 loc) · 1.68 KB
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
61
62
63
64
65
66
line-length = 108
[format]
line-ending = "lf"
docstring-code-format = true
[lint]
preview = true
select = [
"B", # flake8-bugbear
"C901", # mcabe
"E", # pycodestyle errors
"ERA", # eradicate (commented-out-code)
"F", # pyflakes
"FLY", # flynt
"G", # flake8-logging-format
"I", # isort
"ICN", # flake8-import-conventions
"INT", # flake8-gettext
"ISC", # flake8-implicit-str-concat
"LOG", # flake8-logging
"N", # pep8-naming
"PERF", # Perflint
"PL", # pylint
"Q", # quotes
"RUF", # ruff-specific rules
"SIM", # flake8-simplify
"TC", # flake8-type-checking
"TID251", # banned-api
"TID253", # banned-module-level-imports
"UP", # pyupgrade
"W", # pycodestyle warnings
]
[lint.per-file-ignores]
"tests/test_general.py" = [
"N813", # camelcase-imported-as-lowercase
]
"tests/test_log.py" = [
"N813", # camelcase-imported-as-lowercase
]
"tests/test_decorators.py" = [
"N813", # camelcase-imported-as-lowercase
"PLR0913", # too-many-arguments
"PLR0917", # too-many-positional-arguments
]
"src/readylog/readylog.py" = [
"PLR0913", # too-many-arguments
"PLR0914", # too-many-local-variables
"PLR0917", # too-many-positional-arguments
"PLC2701", # import-private-name
]
"src/readylog/decorators.py" = [
"C901", # too-complex
]
extend-safe-fixes = [
"TC001", # typing-only-first-party-import
"TC002", # typing-only-third-party-import
"TC003", # typing-only-standard-library-import
"TC004", # runtime-import-in-type-checking-block
]
[lint.mccabe]
max-complexity = 5