Update formatting script to use pre-commit and GitHub Actions

This commit is contained in:
Aaron Franke
2021-02-18 21:43:56 -05:00
parent f3a63a3f54
commit 528ac92b7b
6 changed files with 99 additions and 60 deletions

16
.pre-commit-config.yaml Normal file
View File

@@ -0,0 +1,16 @@
default_language_version:
python: python3
exclude: |
(?x)^(
CODE_OF_CONDUCT.md
)
repos:
- repo: local
hooks:
- id: file-format
name: file-format
language: python
entry: python .github/workflows/file_format.py
types_or: [text]