ci: pin ruff to the latest passing release (#408)
* ci: pin ruff to the passing baseline * ci: use the latest passing ruff release * ci: share the ruff pin through a lint dependency group * ci: note follow-up to update lint and unpin ruff
This commit is contained in:
3
.github/workflows/wheels.yml
vendored
3
.github/workflows/wheels.yml
vendored
@@ -111,7 +111,8 @@ jobs:
|
|||||||
|
|
||||||
- name: Lint and format with ruff
|
- name: Lint and format with ruff
|
||||||
run: |
|
run: |
|
||||||
pip install ruff
|
pip install --upgrade pip
|
||||||
|
pip install --group lint
|
||||||
ruff check .
|
ruff check .
|
||||||
ruff format --check .
|
ruff format --check .
|
||||||
|
|
||||||
|
|||||||
@@ -22,15 +22,20 @@ dependencies = [
|
|||||||
|
|
||||||
[dependency-groups]
|
[dependency-groups]
|
||||||
dev = [
|
dev = [
|
||||||
"ruff",
|
|
||||||
"tox",
|
"tox",
|
||||||
"pkgconfig",
|
"pkgconfig",
|
||||||
"cython>=3.0",
|
"cython>=3.0",
|
||||||
"setuptools",
|
"setuptools",
|
||||||
|
{include-group = "lint"},
|
||||||
{include-group = "test"},
|
{include-group = "test"},
|
||||||
{include-group = "docs"},
|
{include-group = "docs"},
|
||||||
]
|
]
|
||||||
|
|
||||||
|
lint = [
|
||||||
|
# TODO: Update lint and formatting for newer Ruff releases, then remove the pin.
|
||||||
|
"ruff==0.15.22",
|
||||||
|
]
|
||||||
|
|
||||||
test = [
|
test = [
|
||||||
"pytest",
|
"pytest",
|
||||||
"anyio",
|
"anyio",
|
||||||
|
|||||||
Reference in New Issue
Block a user