File tree Expand file tree Collapse file tree 2 files changed +39
-11
lines changed Expand file tree Collapse file tree 2 files changed +39
-11
lines changed Original file line number Diff line number Diff line change
1
+ name : Ruff Checks
2
+
3
+ on :
4
+ push :
5
+ branches : [main]
6
+ pull_request :
7
+ branches : [main]
8
+
9
+ jobs :
10
+ lint-and-test :
11
+ runs-on : ubuntu-latest
12
+
13
+ steps :
14
+ - name : Checkout code
15
+ uses : actions/checkout@v4
16
+
17
+ - name : Install UV
18
+ uses : astral-sh/setup-uv@v6
19
+
20
+ - name : Set up Python
21
+ run : uv python install
22
+
23
+ - name : Install dependencies
24
+ run : uv sync --locked --dev
25
+
26
+ - name : Run Ruff
27
+ run : uv run ruff check .
Original file line number Diff line number Diff line change @@ -12,27 +12,28 @@ dependencies = [
12
12
" sphinx-needs>=5.1.0" ,
13
13
" sphinx-rtd-theme>=3.0.2" ,
14
14
]
15
+ dev-dependencies = [" ruff>=0.0.275" ]
15
16
16
17
[tool .uv .workspace ]
17
18
members = [" builder" ]
18
19
19
20
[tool .uv .sources ]
20
21
builder = { workspace = true }
22
+
21
23
[tool .ruff ]
22
24
# line-length = 88
23
-
24
- select = [
25
- " E" ,
26
- " F" ,
27
- " W" ,
28
- " C" ,
29
- " I" ,
30
- " Q" ,
31
- " B" ,
25
+ lint.select = [
26
+ # "E",
27
+ # "F",
28
+ # "W",
29
+ # "C",
30
+ # "I",
31
+ # "Q",
32
+ # "B",
32
33
]
33
34
# Remove or reduce ignores to catch more issues
34
- ignore = []
35
- extend-ignore = []
35
+ # ignore = []
36
+ # extend-ignore = []
36
37
37
38
[tool .ruff .lint .flake8-comprehensions ]
38
39
allow-dict-calls-with-keyword-arguments = true
You can’t perform that action at this time.
0 commit comments