diff --git a/.cirrus.yml b/.cirrus.yml index ee1f5114..a1c4f542 100644 --- a/.cirrus.yml +++ b/.cirrus.yml @@ -33,12 +33,10 @@ task: image: python:latest cpu: 2 memory: 4G - name: "${CIRRUS_OS}: linting" - lint_script: + name: "${CIRRUS_OS}: precommit hooks" + precommit_script: - python -m pip install --retries 3 pre-commit - - pre-commit run --all-files black - - pre-commit run --all-files flake8 - - pre-commit run --all-files isort + - SKIP="no-commit-to-branch" pre-commit run --all-files # diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d7904806..3ec906cb 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -22,7 +22,7 @@ repos: - id: black # Force black to run on whole repo, using settings from pyproject.toml pass_filenames: false - args: ["--config=./pyproject.toml", "--check", "."] + args: ["--config=./pyproject.toml", "."] - repo: https://github.com/PyCQA/flake8 rev: "4.0.1" hooks: @@ -34,4 +34,4 @@ repos: hooks: - id: isort name: isort - args: ["--filter-files", "--check"] + args: ["--filter-files"]