Skip to content

Commit

Permalink
build: use pre-commit to check stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Nov 2, 2024
1 parent 752f24d commit c4acbfc
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ max_line_length = 100
[*.h]
max_line_length = 100

[*.yml]
[*.{yml,yaml}]
indent_size = 2

[*.rst]
Expand Down
16 changes: 16 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-case-conflict
- id: check-illegal-windows-names
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-toml
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
exclude: "(status\\.json|\\.min\\.js)$"
- id: trailing-whitespace
exclude: "stress_phystoken|\\.py,cover$"
1 change: 1 addition & 0 deletions MANIFEST.in
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@

include .editorconfig
include .git-blame-ignore-revs
include .pre-commit-config.yaml
include .readthedocs.yaml
include CHANGES.rst
include CITATION.cff
Expand Down

0 comments on commit c4acbfc

Please sign in to comment.