mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-21 06:45:24 -06:00
chore(workflows): run pre-commit in GitHub Actions
Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
parent
dd98378f2e
commit
2e147e566f
1 changed files with 7 additions and 1 deletions
8
.github/workflows/lint.yaml
vendored
8
.github/workflows/lint.yaml
vendored
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue