mirror of https://github.com/scrapy/scrapy.git
Avoid duplicities in CI; remove pylint from pre-commit
This commit is contained in:
parent
5dcf8b9015
commit
17354a61b1
|
|
@ -8,12 +8,6 @@ jobs:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
matrix:
|
||||||
include:
|
include:
|
||||||
- python-version: "3.11"
|
|
||||||
env:
|
|
||||||
TOXENV: security
|
|
||||||
- python-version: "3.11"
|
|
||||||
env:
|
|
||||||
TOXENV: flake8
|
|
||||||
- python-version: "3.11"
|
- python-version: "3.11"
|
||||||
env:
|
env:
|
||||||
TOXENV: pylint
|
TOXENV: pylint
|
||||||
|
|
@ -26,13 +20,9 @@ jobs:
|
||||||
- python-version: "3.11"
|
- python-version: "3.11"
|
||||||
env:
|
env:
|
||||||
TOXENV: twinecheck
|
TOXENV: twinecheck
|
||||||
- python-version: "3.11"
|
|
||||||
env:
|
|
||||||
TOXENV: black
|
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v3
|
||||||
- uses: pre-commit/action@v3.0.0
|
|
||||||
|
|
||||||
- name: Set up Python ${{ matrix.python-version }}
|
- name: Set up Python ${{ matrix.python-version }}
|
||||||
uses: actions/setup-python@v4
|
uses: actions/setup-python@v4
|
||||||
|
|
@ -44,3 +34,9 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
pip install -U tox
|
pip install -U tox
|
||||||
tox
|
tox
|
||||||
|
|
||||||
|
pre-commit:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v3
|
||||||
|
- uses: pre-commit/action@v3.0.0
|
||||||
|
|
|
||||||
|
|
@ -8,11 +8,6 @@ repos:
|
||||||
rev: 6.0.0
|
rev: 6.0.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
- repo: https://github.com/PyCQA/pylint
|
|
||||||
rev: v2.15.6
|
|
||||||
hooks:
|
|
||||||
- id: pylint
|
|
||||||
args: [conftest.py, docs, extras, scrapy, setup.py, tests]
|
|
||||||
- repo: https://github.com/psf/black.git
|
- repo: https://github.com/psf/black.git
|
||||||
rev: 22.12.0
|
rev: 22.12.0
|
||||||
hooks:
|
hooks:
|
||||||
|
|
@ -20,4 +15,4 @@ repos:
|
||||||
- repo: https://github.com/pycqa/isort
|
- repo: https://github.com/pycqa/isort
|
||||||
rev: 5.12.0
|
rev: 5.12.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue