Skip to content

Commit 0bb3760

Browse files
committed
chore: initial pre-commit config
1 parent 5ae22c2 commit 0bb3760

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v6.0.0
4+
hooks:
5+
- id: check-yaml
6+
- id: mixed-line-ending
7+
args: [--fix=lf]
8+
- repo: https://github.com/rhysd/actionlint
9+
rev: v1.7.10
10+
hooks:
11+
- id: actionlint

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,7 @@ dev = [
6060
'basedpyright >= 1.31.6; platform_machine != "i686"',
6161
'ty >= 0.0.7',
6262
'pyrefly >= 0.46.3',
63+
'pre-commit',
6364
]
6465

6566
# mostly pinned for tox testing except dev group

0 commit comments

Comments
 (0)