Skip to content

Commit 8c5007c

Browse files
committed
Tune down strictness, add dev deps, ci: add ruff checks in ci
1 parent afadf76 commit 8c5007c

File tree

2 files changed

+39
-11
lines changed

2 files changed

+39
-11
lines changed

.github/workflows/ruff-lint.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
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 .

pyproject.toml

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff 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]
1718
members = ["builder"]
1819

1920
[tool.uv.sources]
2021
builder = { 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]
3839
allow-dict-calls-with-keyword-arguments = true

0 commit comments

Comments
 (0)