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
commit 3467358663
No known key found for this signature in database
GPG key ID: 210D9C873253A68C
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