diff --git a/.github/workflows/pre-commit.yaml b/.github/workflows/pre-commit.yaml index 74b8bf13..9267ce44 100644 --- a/.github/workflows/pre-commit.yaml +++ b/.github/workflows/pre-commit.yaml @@ -19,6 +19,7 @@ jobs: run: | pip install -U pip pip install pylint + pip install -U black - name: Log installed environment run: | diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index ae573d90..8ac8fa5a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,6 +4,7 @@ exclude: &exclude_files > tests/.*| .github/.*| LICENSE| + README| )$ repos: @@ -12,18 +13,21 @@ repos: hooks: - id: mixed-line-ending - id: trailing-whitespace + exclude: *exclude_files - repo: https://github.com/psf/black-pre-commit-mirror rev: 23.12.1 hooks: - id: black name: Black Formating + exclude: *exclude_files - repo: https://github.com/pycqa/isort rev: 5.13.2 hooks: - id: isort name: Sort imports + exclude: *exclude_files - repo: https://github.com/PyCQA/pylint rev: pylint-2.5.2 @@ -50,6 +54,4 @@ repos: '--disable=cell-var-from-loop', '--disable=duplicate-code', ] - exclude: *exclude_files - - \ No newline at end of file + exclude: *exclude_files \ No newline at end of file