Skip to content

Commit c4acbfc

Browse files
committed
build: use pre-commit to check stuff
1 parent 752f24d commit c4acbfc

File tree

3 files changed

+18
-1
lines changed

3 files changed

+18
-1
lines changed

.editorconfig

+1-1
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ max_line_length = 100
2727
[*.h]
2828
max_line_length = 100
2929

30-
[*.yml]
30+
[*.{yml,yaml}]
3131
indent_size = 2
3232

3333
[*.rst]

.pre-commit-config.yaml

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
repos:
2+
- repo: https://github.com/pre-commit/pre-commit-hooks
3+
rev: v5.0.0
4+
hooks:
5+
- id: check-case-conflict
6+
- id: check-illegal-windows-names
7+
- id: check-json
8+
- id: check-merge-conflict
9+
- id: check-symlinks
10+
- id: check-toml
11+
- id: check-xml
12+
- id: check-yaml
13+
- id: end-of-file-fixer
14+
exclude: "(status\\.json|\\.min\\.js)$"
15+
- id: trailing-whitespace
16+
exclude: "stress_phystoken|\\.py,cover$"

MANIFEST.in

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010

1111
include .editorconfig
1212
include .git-blame-ignore-revs
13+
include .pre-commit-config.yaml
1314
include .readthedocs.yaml
1415
include CHANGES.rst
1516
include CITATION.cff

0 commit comments

Comments
 (0)