Skip to content

Commit

Permalink
Rearrange and standardize the pre-commit hooks
Browse files Browse the repository at this point in the history
  • Loading branch information
kurtmckee committed Oct 17, 2023
1 parent 506929a commit 33cbbd5
Showing 1 changed file with 27 additions and 24 deletions.
51 changes: 27 additions & 24 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,24 +2,39 @@ ci:
autoupdate_schedule: "monthly"

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks.git
rev: v4.5.0
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: "v4.5.0"
hooks:
- id: check-added-large-files
- id: check-merge-conflict
- id: check-yaml
- id: end-of-file-fixer
- id: "check-added-large-files"
- id: "check-merge-conflict"
- id: "check-yaml"
- id: "end-of-file-fixer"
exclude: "\\.xml"
- id: mixed-line-ending
- id: "mixed-line-ending"
exclude: "\\.xml"
args: [--fix=lf]
- id: trailing-whitespace
args:
- "--fix=lf"
- id: "trailing-whitespace"
exclude: "\\.xml"

- repo: https://github.com/psf/black-pre-commit-mirror
rev: 23.9.1
- repo: "https://github.com/asottile/pyupgrade"
rev: "v3.15.0"
hooks:
- id: black
- id: "pyupgrade"
name: "Enforce Python 3.8+ idioms"
args:
- "--py38-plus"

- repo: "https://github.com/psf/black-pre-commit-mirror"
rev: "23.9.1"
hooks:
- id: "black"
language_version: "python3.8"

- repo: "https://github.com/pycqa/isort"
rev: "5.12.0"
hooks:
- id: "isort"

- repo: "https://github.com/pycqa/flake8"
rev: "6.1.0"
Expand All @@ -28,18 +43,6 @@ repos:
additional_dependencies:
- "flake8-bugbear==23.9.16"

- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
hooks:
- id: pyupgrade
name: "Enforce Python 3.8 idioms"
args: [--py38-plus]

- repo: "https://github.com/python-jsonschema/check-jsonschema"
rev: "0.27.0"
hooks:
Expand Down

0 comments on commit 33cbbd5

Please sign in to comment.