chore(pylintrc): update pylint settings

Signed-off-by: Xuehai Pan <XuehaiPan@pku.edu.cn>
This commit is contained in:
Xuehai Pan 2022-12-04 02:32:34 +08:00
parent 4aec63f130
commit afe33211a7
8 changed files with 473 additions and 317 deletions

View file

@ -71,7 +71,8 @@ jobs:
python -m venv venv &&
(
source venv/bin/activate &&
python -m pip install --upgrade pip setuptools pre-commit pylint &&
python -m pip install --upgrade pip setuptools pre-commit pylint[spelling] \
--constraint .github/workflows/constraints.txt &&
python -m pip install -r requirements.txt &&
python -m pre_commit install --install-hooks &&
python -m pre_commit run --all-files

1
.github/workflows/constraints.txt vendored Normal file
View file

@ -0,0 +1 @@
pylint >= 2.15.0, != 2.15.6, != 2.15.7

View file

@ -51,22 +51,8 @@ jobs:
- name: Install linters
run: |
python -m pip install --upgrade black isort pylint pre-commit
- name: isort
run: |
python -m isort --version
python -m isort --check nvitop
- name: black
run: |
python -m black --version
python -m black --check nvitop
- name: pylint
run: |
python -m pylint --version
python -m pylint nvitop
python -m pip install --upgrade pre-commit pylint[spelling] \
--constraint .github/workflows/constraints.txt
- name: pre-commit
run: |