chore(workflows): run pre-commit in GitHub Actions

Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
Xuehai Pan 2022-07-19 15:39:46 +08:00
parent dd98378f2e
commit 2e147e566f

View file

@ -40,7 +40,7 @@ jobs:
- name: Install linters
run: |
python -m pip install --upgrade black isort pylint
python -m pip install --upgrade black isort pylint pre-commit
- name: isort
run: |
@ -56,3 +56,9 @@ jobs:
run: |
python -m pylint --version
python -m pylint nvitop
- name: pre-commit
run: |
python -m pre_commit --version
python -m pre_commit install --install-hooks
python -m pre_commit run --all-files