-
Notifications
You must be signed in to change notification settings - Fork 14
/
ruff.toml
50 lines (46 loc) · 1.4 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
48
49
50
exclude = [
".git",
"__pycache__",
"__target__",
"dist",
]
lint.select = [
"F", # pycodestyle
"E", # Pyflakes
"W", # Warnings
"U", # pyupgrade
"I", # isort
"N", # pep8-naming
"PL", # Pylint
"B", # flake8-bugbear
"RUF", # Ruff-specific codes
"PERF", # Performance-related issues
"SIM", # flake8-simplify
"LOG", # flake8-logging
"G", # flake8-logging-format
#"C901", # maccabe
"S", # flake8-bandit
"TID", # flake8-tidy-imports
"TCH", # flake8-type-checking
"INT", # flake8-gettext
"FLY002", # flynt
#"FURB", # refurb
"ISC", # flake8-implicit-str-concat
"ICN", # flake8-import-conventions
]
lint.ignore = [
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR2004", # Magic value used in comparison, consider replacing `X` with a constant variable
"N801", # Class name `FTP_OP` should use CapWords convention
"N802", # Function name `X` should be lowercase
"N806", # Variable name `X` should be lowercase
"N812", # Lowercase `x` imported as non-lowercase `X`
"N814", # Camelcase `X` imported as constant `Y`
"N817", # CamelCase `X` imported as acronym `Y`
"N999", # Invalid module name: 'MethodicConfigurator'
"ISC001", # to let formatter run
]
line-length = 127
indent-width = 4
target-version = "py38"