Skip to content

Commit 486f306

Browse files
pre-commit: added additional checks and fixed install
1 parent 8e03081 commit 486f306

File tree

2 files changed

+11
-1
lines changed

2 files changed

+11
-1
lines changed

.pre-commit-config.yaml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
11
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-json
6+
- id: check-symlinks
7+
- id: check-toml
8+
- id: check-xml
9+
- id: check-yaml
10+
- id: end-of-file-fixer
11+
- id: trailing-whitespace
212
- repo: https://github.com/kynan/nbstripout
313
rev: 0.5.0
414
hooks:

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
install:
2-
pre-commit install
32
poetry install --with dev
3+
poetry run pre-commit install
44

55
fix:
66
poetry run ruff check src --fix

0 commit comments

Comments
 (0)