CI: Integrate pre-commit for style checks

This commit is contained in:
Thaddeus Crews
2024-11-14 14:08:49 -06:00
parent 5338ea5539
commit f70686cdbe
12 changed files with 30 additions and 62 deletions
+18
View File
@@ -0,0 +1,18 @@
default_language_version:
python: python3
repos:
- repo: https://github.com/codespell-project/codespell
rev: v2.3.0
hooks:
- id: codespell
files: ^(about|community|contributing|getting_started|tutorials)/.*\.rst$
additional_dependencies: [tomli]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: mixed-line-ending
args: ['--fix=lf']