From 17354a61b11eb792adbe77fcdfa6b95a5993cc30 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adri=C3=A1n=20Chaves?= Date: Mon, 30 Jan 2023 10:04:27 +0100 Subject: [PATCH] Avoid duplicities in CI; remove pylint from pre-commit --- .github/workflows/checks.yml | 16 ++++++---------- .pre-commit-config.yaml | 7 +------ 2 files changed, 7 insertions(+), 16 deletions(-) diff --git a/.github/workflows/checks.yml b/.github/workflows/checks.yml index 6b2f4ef10..aa79cbc0d 100644 --- a/.github/workflows/checks.yml +++ b/.github/workflows/checks.yml @@ -8,12 +8,6 @@ jobs: fail-fast: false matrix: include: - - python-version: "3.11" - env: - TOXENV: security - - python-version: "3.11" - env: - TOXENV: flake8 - python-version: "3.11" env: TOXENV: pylint @@ -26,13 +20,9 @@ jobs: - python-version: "3.11" env: TOXENV: twinecheck - - python-version: "3.11" - env: - TOXENV: black steps: - uses: actions/checkout@v3 - - uses: pre-commit/action@v3.0.0 - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v4 @@ -44,3 +34,9 @@ jobs: run: | pip install -U tox tox + + pre-commit: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v3 + - uses: pre-commit/action@v3.0.0 diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 0534bb142..f5fc1285f 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,11 +8,6 @@ repos: rev: 6.0.0 hooks: - 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 rev: 22.12.0 hooks: @@ -20,4 +15,4 @@ repos: - repo: https://github.com/pycqa/isort rev: 5.12.0 hooks: - - id: isort + - id: isort