Skip to content

Commit 41ad9cb

Browse files
committed
[ADD] pre-commit hooks
1 parent 062d83b commit 41ad9cb

File tree

3 files changed

+117
-2
lines changed

3 files changed

+117
-2
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
# .pre-commit-config.yaml
2+
3+
repos:
4+
# Code formatting with Black for Python
5+
- repo: https://github.com/psf/black
6+
rev: 24.4.2 # Matches the version specified in pyproject.toml
7+
hooks:
8+
- id: black
9+
language_version: python3.10 # Matches the minimum Python version specified
10+
args: ["--line-length", "88"] # Customize if necessary for project standards

poetry.lock

Lines changed: 106 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ bids-validator = "^1.14.4"
4545
actipy = "^3.0.5"
4646
pooch = "^1.8.2"
4747
openneuro-py = "^2024.2.0"
48+
pre-commit = "^4.0.1"
4849

4950
[tool.poetry.extras]
5051
docs = ["mkdocs", "mkdocs-material", "pymdownx.superfences"]

0 commit comments

Comments
 (0)