mirror of
https://github.com/netinvent/npbackup.git
synced 2025-02-23 14:04:43 +08:00
Move to python 3.12 linters
This commit is contained in:
parent
a20ed911d9
commit
4aa895044e
2 changed files with 5 additions and 5 deletions
2
.github/workflows/pylint-linux.yaml
vendored
2
.github/workflows/pylint-linux.yaml
vendored
|
@ -10,7 +10,7 @@ jobs:
|
|||
matrix:
|
||||
os: [ubuntu-latest]
|
||||
# python-version: [3.3, 3.4, 3.5, 3.6, 3.7, 3.8, 3.9, "3.10", 'pypy-3.6', 'pypy-3.7']
|
||||
python-version: ["3.11"]
|
||||
python-version: ["3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
|
8
.github/workflows/pylint-windows.yaml
vendored
8
.github/workflows/pylint-windows.yaml
vendored
|
@ -11,7 +11,7 @@ jobs:
|
|||
os: [windows-latest]
|
||||
# Don't use pypy on windows since it does not have pywin32 module
|
||||
# python-version: [3.5, 3.6, 3.7, 3.8, 3.9, "3.10"]
|
||||
python-version: ["3.11"]
|
||||
python-version: ["3.12"]
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v2
|
||||
|
@ -26,14 +26,14 @@ jobs:
|
|||
if (Test-Path "npbackup/requirements.txt") { pip install -r npbackup/requirements.txt }
|
||||
if (Test-Path "upgrade_server/requirements.txt") { pip install -r upgrade_server/requirements.txt }
|
||||
- name: Lint with Pylint
|
||||
if: ${{ matrix.python-version == '3.11' }}
|
||||
if: ${{ matrix.python-version == '3.12' }}
|
||||
run: |
|
||||
python -m pip install pylint
|
||||
# Do not run pylint on python 3.3 because isort is not available for python 3.3, don't run on python 3.4 because pylint: disable=xxxx does not exist
|
||||
python -m pylint --disable=C,W,R --max-line-length=127 npbackup
|
||||
python -m pylint --disable=C,W,R --max-line-length=127 upgrade_server/upgrade_server
|
||||
- name: Lint with flake8
|
||||
if: ${{ matrix.python-version == '3.11' }}
|
||||
if: ${{ matrix.python-version == '3.12' }}
|
||||
run: |
|
||||
python -m pip install flake8
|
||||
# stop the build if there are Python syntax errors or undefined names
|
||||
|
@ -44,7 +44,7 @@ jobs:
|
|||
python -m flake8 --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics upgrade_server/upgrade_server
|
||||
- name: Lint with Black
|
||||
# Don't run on python < 3.6 since black does not exist there, run only once
|
||||
if: ${{ matrix.python-version == '3.11' }}
|
||||
if: ${{ matrix.python-version == '3.12' }}
|
||||
run: |
|
||||
pip install black
|
||||
python -m black --check npbackup
|
||||
|
|
Loading…
Reference in a new issue