Skip to content

Commit acb5935

Browse files
committed
test a ruff action
1 parent aa3d561 commit acb5935

File tree

2 files changed

+24
-0
lines changed

2 files changed

+24
-0
lines changed

.github/workflows/ruff.yml

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
name: Ruff Linting
2+
3+
on:
4+
pull_request:
5+
types: [synchronize, opened, reopened]
6+
branches:
7+
- main
8+
9+
concurrency: # Cancel previous workflows on the same pull request
10+
group: ${{ github.workflow }}-${{ github.ref }}
11+
cancel-in-progress: true
12+
13+
jobs:
14+
ruff-linting:
15+
name: Ruff Linting
16+
strategy:
17+
fail-fast: false
18+
steps:
19+
- uses: astral-sh/ruff-action@v3

pyproject.toml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -50,6 +50,11 @@ exclude = ["spikeinterface.*.tests"]
5050
[tool.black]
5151
line-length = 120
5252

53+
[tool.ruff]
54+
line-length = 120
55+
[tool.ruff.lint]
56+
select = ['F401']
57+
5358
[project.urls]
5459
homepage = "https://github.com/SpikeInterface/spikeinterface"
5560
repository = "https://github.com/SpikeInterface/spikeinterface"

0 commit comments

Comments
 (0)