From 3ad2021102b0a04c1498d7936e1330a44e5977f0 Mon Sep 17 00:00:00 2001 From: Ilyes Batatia <48651863+ilyes319@users.noreply.github.com> Date: Tue, 23 Apr 2024 21:19:31 +0100 Subject: [PATCH] exclude files in pre commit --- .github/workflows/pre-commit.yaml | 1 + .pre-commit-config.yaml | 8 +++++--- 2 files changed, 6 insertions(+), 3 deletions(-) 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