Skip to content

Commit d315891

Browse files
Merge pull request #345 from NeuroML/feat/ruff
chore: move to ruff
2 parents a2066bc + 9aef256 commit d315891

File tree

4 files changed

+11
-10
lines changed

4 files changed

+11
-10
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
5252
./test-ghactions.sh -neuron
5353
54-
- name: Lint with flake8
54+
- name: Lint with ruff
5555
run: |
56-
pip install flake8
57-
flake8 . --count --exit-zero --show-source --max-line-length=127 --statistics
56+
pip install ruff
57+
ruff . --exit-zero --show-source

.pre-commit-config.yaml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ repos:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-added-large-files
10-
- repo: https://github.com/psf/black
11-
rev: 23.3.0
12-
hooks:
13-
- id: black
10+
- repo: https://github.com/astral-sh/ruff-pre-commit
11+
rev: v0.4.1
12+
hooks:
13+
- id: ruff
14+
- id: ruff-format

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
11
[build-system]
22
requires = ["setuptools"]
33
build-backend = "setuptools.build_meta"
4+
5+
[tool.ruff.lint]
6+
ignore = ["F403", "F405"]

setup.cfg

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,3 @@ doc =
154154
pyNeuroML[all]
155155
sphinxcontrib-bibtex
156156
pydata-sphinx-theme
157-
158-
[flake8]
159-
extend-ignore = E501, E502, F403, F405, W503, W504

0 commit comments

Comments
 (0)