GHA CI: Switch to pre-commit framework for checking file health

Now users are able to run the same checks on their local development
environment.
https://pre-commit.com/
This commit is contained in:
Chocobo1
2021-10-10 01:17:25 +08:00
parent 45a1c25a29
commit 3467358663
4 changed files with 125 additions and 90 deletions

View File

@@ -11,10 +11,7 @@ jobs:
uses: actions/checkout@v2
- name: Install tools
run: |
sudo apt update
sudo apt install zsh
uses: actions/setup-python@v2
- name: Check files
run: |
./.github/workflows/file_health.sh
uses: pre-commit/action@v2.0.3