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 = [
1212 " sphinx-needs>=5.1.0" ,
1313 " sphinx-rtd-theme>=3.0.2" ,
1414]
15+ dev-dependencies = [" ruff>=0.0.275" ]
1516
1617[tool .uv .workspace ]
1718members = [" builder" ]
1819
1920[tool .uv .sources ]
2021builder = { workspace = true }
22+
2123[tool .ruff ]
2224# 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",
3233]
3334# Remove or reduce ignores to catch more issues
34- ignore = []
35- extend-ignore = []
35+ # ignore = []
36+ # extend-ignore = []
3637
3738[tool .ruff .lint .flake8-comprehensions ]
3839allow-dict-calls-with-keyword-arguments = true
You can’t perform that action at this time.
0 commit comments