Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions .github/workflows/ruff.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: Ruff Linting

on:
pull_request:
types: [synchronize, opened, reopened]
branches:
- main

concurrency: # Cancel previous workflows on the same pull request
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true

jobs:
run:
name: Ruff Linting
runs-on: ubuntu-latest
strategy:
fail-fast: false
steps:
- uses: actions/checkout@v4
- uses: astral-sh/ruff-action@v3
with:
args: check
5 changes: 5 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ exclude = ["spikeinterface.*.tests"]
[tool.black]
line-length = 120

[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = ['F401']

[project.urls]
homepage = "https://github.com/SpikeInterface/spikeinterface"
repository = "https://github.com/SpikeInterface/spikeinterface"
Expand Down
2 changes: 1 addition & 1 deletion src/spikeinterface/extractors/phykilosortextractors.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ class BasePhyKilosortSortingExtractor(BaseSorting):
The cluster_id column is used as the merge key to combine properties from multiple files.
All loaded properties are added to the sorting extractor as unit properties, with some
renamed for SpikeInterface conventions: 'group' becomes 'quality', 'cluster_id'
becomes 'original_cluster_id'. These properties can be accessed via ``sorting.get_property()``
becomes 'original_cluster_id'. These properties can be accessed via ``sorting.get_property()``
function.
"""

Expand Down
Loading