-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
88 lines (84 loc) · 2.25 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
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
[tool.ruff]
exclude = [
"nicos_mlz/",
"nicos_sinq/",
"test/",
"nicos_demo/",
"nicostools/",
"doc/",
"data/",
"tools/",
"bin/",
]
# Configure globally applicable rules
select = ["E", "F", "W"]
# Per-file ignores
[tool.ruff.per-file-ignores]
"__init__.py" = [
"F401", # Module imported but unused
"F403" # 'from module import *' used; unable to detect undefined names
]
"*/__init__.py" = [
"F401", # Module imported but unused
"F403" # 'from module import *' used; unable to detect undefined names
]
"*/guiconfig.py" = [
"F821" # Undefined name
]
"**/setups/**/*.py" = [
"F821" # Undefined name
]
"**/testscripts/**/*.py" = [
"F821" # Undefined name
]
"nicos/**/*.py" = [
"F821", # Undefined name
"F401", # Module imported but unused
"E402", # Module level import not at top of file
"F403", # 'from module import *' used; unable to detect undefined names
"E501", # Line too long
"E741", # Ambiguous variable name
"E731", # Do not assign a lambda expression, use a def
"F841", # Local variable is assigned to but never used
"F405" # Name may be undefined, or defined from star imports
]
[tool.ruff-format]
exclude = [
"nicos_mlz/",
"nicos_sinq/",
"test/",
"nicos_demo/",
"nicostools/",
"doc/",
"data/",
"tools/",
]
[tool.ruff-format.per-file-ignores]
"__init__.py" = [
"F401", # Module imported but unused
"F403" # 'from module import *' used; unable to detect undefined names
]
"*/__init__.py" = [
"F401", # Module imported but unused
"F403" # 'from module import *' used; unable to detect undefined names
]
"*/guiconfig.py" = [
"F821" # Undefined name
]
"**/setups/**/*.py" = [
"F821" # Undefined name
]
"**/testscripts/**/*.py" = [
"F821" # Undefined name
]
"nicos/**/*.py" = [
"F821", # Undefined name
"F401", # Module imported but unused
"E402", # Module level import not at top of file
"F403", # 'from module import *' used; unable to detect undefined names
"E501", # Line too long
"E741", # Ambiguous variable name
"E731", # Do not assign a lambda expression, use a def
"F841", # Local variable is assigned to but never used
"F405" # Name may be undefined, or defined from star imports
]