mirror of
https://github.com/XuehaiPan/nvitop.git
synced 2026-05-15 14:15:55 -06:00
feat(linter): ruff integration (#57)
This commit is contained in:
parent
c5ce570c72
commit
20313d08bd
34 changed files with 538 additions and 313 deletions
7
.github/workflows/build.yaml
vendored
7
.github/workflows/build.yaml
vendored
|
|
@ -75,7 +75,12 @@ jobs:
|
|||
python -m pip install --upgrade pip setuptools pre-commit pylint[spelling]
|
||||
python -m pip install -r requirements.txt &&
|
||||
python -m pre_commit install --install-hooks &&
|
||||
python -m pre_commit run --all-files
|
||||
python -m pre_commit run --all-files &&
|
||||
python -c 'import nvitop' &&
|
||||
python -m nvitop --version &&
|
||||
python -m nvitop --help &&
|
||||
python -m nvitop.select --version &&
|
||||
python -m nvitop.select --help
|
||||
)
|
||||
|
||||
- name: Test docker build
|
||||
|
|
|
|||
8
.github/workflows/lint.yaml
vendored
8
.github/workflows/lint.yaml
vendored
|
|
@ -49,6 +49,14 @@ jobs:
|
|||
run: |
|
||||
python -m pip install -r requirements.txt
|
||||
|
||||
- name: Import tests
|
||||
run: |
|
||||
python -c 'import nvitop'
|
||||
python -m nvitop --version
|
||||
python -m nvitop --help
|
||||
python -m nvitop.select --version
|
||||
python -m nvitop.select --help
|
||||
|
||||
- name: Install linters
|
||||
run: |
|
||||
python -m pip install --upgrade pre-commit pylint[spelling]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue