Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: to use pre-commit.ci add skip option #1936

Merged
merged 1 commit into from
Jun 29, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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