Skip to content

Commit

Permalink
exclude files in pre commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ilyes319 committed Apr 23, 2024
1 parent 4b1fc69 commit 3ad2021
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
1 change: 1 addition & 0 deletions .github/workflows/pre-commit.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,7 @@ jobs:
run: |
pip install -U pip
pip install pylint
pip install -U black
- name: Log installed environment
run: |
Expand Down
8 changes: 5 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ exclude: &exclude_files >
tests/.*|
.github/.*|
LICENSE|
README|
)$

repos:
Expand All @@ -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
Expand All @@ -50,6 +54,4 @@ repos:
'--disable=cell-var-from-loop',
'--disable=duplicate-code',
]
exclude: *exclude_files


exclude: *exclude_files

0 comments on commit 3ad2021

Please sign in to comment.