-
Notifications
You must be signed in to change notification settings - Fork 0
/
ruff.toml
88 lines (80 loc) · 1.32 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
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
exclude = [
".tox",
".git",
"docs",
"venv",
".venv",
"*.pyc",
".git",
"__pycache__",
]
# Same as Black.
line-length = 88
indent-width = 4
# Assume Python 3.12
target-version = "py39"
[lint]
ignore = [
# "C", # mccabe
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D107", # Missing docstring in __init__
"F405", # 'module' may be undefined, or defined from star imports
"N802", # function name should be lowercase
"E501", # line too long
]
select = [
# flake8-comprehensions
"C4",
# mccgabe
"C9",
# pydocstyle
# "D",
# pep8-naming
"N",
# pycodestyle
"E",
"W",
# Pyflakes
"F",
# pyupgrade
"UP",
# flake8-bugbear
"B",
# flake8-simplify
"SIM",
# isort
"I",
# Ruff-specific rules
"RUF",
# Other plugins (specify)
# "PLR",
"PIE",
]
#select = ["ALL"]
[lint.mccabe]
max-complexity = 10
[lint.per-file-ignores]
"**/tests/*" = [
"D100",
"D101",
"D102",
"D103",
"E501"
]
"**/*.ipynb" = [
"D100",
"D101",
"D102",
"D103",
"E501"
]
"**/notebooks/*" = [
"D100",
"D101",
"D102",
"D103",
"E501"
]