Skip to content

Commit f843dbb

Browse files
author
SamoraHunter
committed
build(pre-commit): add ruff and black hooks
Configures the pre-commit framework to automatically run ruff and black on staged files. - Ruff is set to run with `--fix` to auto-correct linting errors. - Black enforces consistent code formatting across the project. This ensures all code is linted and formatted before being committed, improving overall code quality and consistency.
1 parent db31277 commit f843dbb

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,3 +14,14 @@ repos:
1414
hooks:
1515
- id: nbstripout
1616
files: \.ipynb$
17+
18+
- repo: https://github.com/astral-sh/ruff-pre-commit
19+
rev: v0.15.0
20+
hooks:
21+
- id: ruff
22+
args: [ --fix ]
23+
24+
- repo: https://github.com/psf/black
25+
rev: 26.1.0
26+
hooks:
27+
- id: black

0 commit comments

Comments
 (0)