Skip to content

Commit 5731120

Browse files
committed
Use dev dep group for ruff install, avoid broken ruff
1 parent 56f3668 commit 5731120

3 files changed

Lines changed: 20 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16+
- uses: astral-sh/setup-uv@v5
1617
- name: "Main Script"
1718
run: |
18-
pipx install ruff
19-
ruff check
19+
uv run --only-group lint ruff check
2020
2121
typos:
2222
name: Typos

.gitlab-ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,8 +121,8 @@ Documentation:
121121
Ruff:
122122
stage: test
123123
script:
124-
- pipx install ruff
125-
- ruff check
124+
- pipx install uv
125+
- uv run --only-group lint ruff check
126126
tags:
127127
- docker-runner
128128
except:

pyproject.toml

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -40,12 +40,27 @@ dependencies = [
4040
"sympy>=0.7.2",
4141
]
4242

43-
[project.optional-dependencies]
43+
[dependency-groups]
44+
dev = [
45+
{include-group = "doc"},
46+
{include-group = "test"},
47+
{include-group = "lint"},
48+
]
49+
lint = [
50+
"pylint",
51+
# https://github.com/astral-sh/ruff/issues/16943
52+
"ruff!=0.11.1,!=0.11.2",
53+
]
4454
doc = [
4555
"furo",
4656
"sphinx-copybutton",
4757
"sphinx>=4",
4858
]
59+
test = [
60+
"pytest",
61+
]
62+
63+
[project.optional-dependencies]
4964
fmmlib = [
5065
"pyfmmlib>=2023.1",
5166
]
@@ -55,11 +70,6 @@ symengine = [
5570
pyvkfft = [
5671
"pyvkfft>=2024.1",
5772
]
58-
test = [
59-
"pylint",
60-
"pytest",
61-
"ruff",
62-
]
6373

6474
[project.urls]
6575
Documentation = "https://documen.tician.de/sumpy"

0 commit comments

Comments
 (0)