Skip to content

Commit

Permalink
chore: to use pre-commit.ci add skip option (#1936)
Browse files Browse the repository at this point in the history
  • Loading branch information
marcelotduarte authored Jun 29, 2023
1 parent 1eda40a commit f42396e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 12 deletions.
6 changes: 6 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
ci:
skip: [build-docs, license, pylint]

exclude: |
(?x)^(
.bumpversion.cfg|
Expand All @@ -20,7 +23,10 @@ repos:
- id: debug-statements
- id: end-of-file-fixer
- id: fix-byte-order-marker
- id: fix-encoding-pragma
args: ["--remove"]
- id: mixed-line-ending
args: ["--fix=lf"]
- id: trailing-whitespace

- repo: https://github.com/abravalheri/validate-pyproject
Expand Down
13 changes: 1 addition & 12 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -5,18 +5,7 @@ all: install

.PHONY: pre-commit
pre-commit: install
@pre-commit run check-case-conflict -a --hook-stage manual
@pre-commit run check-toml -a --hook-stage manual
@pre-commit run check-yaml -a --hook-stage manual
@pre-commit run end-of-file-fixer -a --hook-stage manual || true
@pre-commit run fix-byte-order-marker -a --hook-stage manual || true
@pre-commit run mixed-line-ending -a --hook-stage manual || true
@pre-commit run trailing-whitespace -a --hook-stage manual || true
@pre-commit run validate-pyproject -a --hook-stage manual || true
@pre-commit run ruff -a --hook-stage manual || true
@pre-commit run black -a --hook-stage manual || true
@pre-commit run license -a --hook-stage manual || true
@pre-commit run requirements -a --hook-stage manual || true
@SKIP=pylint pre-commit run -a --hook-stage manual || true
@pre-commit gc

.PHONY: pre-commit-all
Expand Down

0 comments on commit f42396e

Please sign in to comment.