Repository navigation
Ruff as linter and formatter #3756
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Merged
Merged
Changes from all commits
Commits
Show all changes
42 commits
Select commit
Hold shift + click to select a range
acb5935
test a ruff action
zm711 f5154cb
oops
zm711 5ed3ddc
add ruff check
zm711 0e61521
another try
zm711 60e84cc
Merge branch 'main' into ruff-test
zm711 ac7d86b
Merge branch 'main' into ruff-test
zm711 bf161ed
Merge branch 'main' into ruff-test
zm711 016d134
Merge branch 'main' into ruff-test
zm711 fa7431f
Merge branch 'main' into ruff-test
zm711 760fc27
Merge branch 'main' into ruff-test
zm711 22ad294
Merge branch 'main' into ruff-test
zm711 b8dde05
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] 0d97305
Merge branch 'main' into ruff-test
zm711 1b9971e
Merge branch 'main' into ruff-test
alejoe91 e8e9b0c
fix: core ruff checks
alejoe91 222b74e
fix: conflicts
alejoe91 db3d479
fix: extractors ruff checks
alejoe91 a1fd448
fix: sorters ruff checks
alejoe91 a7408a3
fix: postprocessing ruff checks
alejoe91 16ae6cf
fix: exporters ruff checks
alejoe91 866597f
fix: benchmark ruff checks
alejoe91 747f5ef
fix: widgets ruff checks
alejoe91 64df25f
fix: curation ruff checks
alejoe91 8cd4a5e
fix: comparison ruff checks
alejoe91 c15ac99
fix: sortingcomponents ruff checks
alejoe91 b53cf58
lint: all ruff fixed
alejoe91 3477781
[pre-commit.ci] auto fixes from pre-commit.com hooks
pre-commit-ci[bot] f23e7d2
fix: installation tips
alejoe91 fb2af7f
Merge branch 'ruff-test' of github.com:zm711/spikeinterface into ruff…
alejoe91 88ae0b8
fix: extractor_classes
alejoe91 54f5fef
fix: add from spikeinterface.core.basesorting import LEXSORT_UNIT_COM…
alejoe91 ac3eed5
fix a couple of F821 errors
alejoe91 7061477
fix: MDA read test
alejoe91 13fbcbe
fix: curation imputer
alejoe91 ac0e62f
fix: restore spython and docker imports in tests
alejoe91 68dc02f
fix: move curation fixtures to conftest.py
alejoe91 4515305
fix: curation and exporters tests
alejoe91 433ef55
doc: add instructions (plus some test fixes)
alejoe91 4b2b633
fix: test linting with manual pre-commit
alejoe91 bebdeec
fix(test): increase margin_ms in tesT_filter
alejoe91 c5fc182
fix: conflicts
alejoe91 0a0f285
fix: remove stray import numba
alejoe91 File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -14,7 +14,6 @@ | |
|
|
||
| """ | ||
|
|
||
| import matplotlib.pyplot as plt | ||
|
|
||
| import numpy as np | ||
| import spikeinterface.extractors as se | ||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.