Skip to content

Commit 2ab5a14

Browse files
committed
chore: add pre-commit hooks
1 parent 52780de commit 2ab5a14

2 files changed

Lines changed: 18 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# See https://pre-commit.com for more information
2+
# See https://pre-commit.com/hooks.html for more hooks
3+
repos:
4+
- repo: https://github.com/pre-commit/pre-commit-hooks
5+
rev: v6.0.0
6+
hooks:
7+
- id: trailing-whitespace
8+
- id: end-of-file-fixer
9+
- id: check-added-large-files
10+
args: [ "--maxkb=5000"]
11+
- repo: https://github.com/astral-sh/ruff-pre-commit
12+
rev: v0.15.12
13+
hooks:
14+
- id: ruff
15+
args: [ "--select", "I", "--fix" ]
16+
- id: ruff-format

setup.cfg

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,9 @@ include = neurotune*
3636
[options.extras_require]
3737
dev =
3838
NEURON
39-
flake8
4039
inspyred >= 1.0.2
40+
pre-commit
41+
ruff
4142

4243

4344
[flake8]

0 commit comments

Comments
 (0)