feat(linter): ruff integration (#57)

This commit is contained in:
Xuehai Pan 2023-03-15 17:37:42 +08:00 committed by GitHub
parent c5ce570c72
commit 20313d08bd
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
34 changed files with 538 additions and 313 deletions

View file

@ -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

View file

@ -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]