Skip to content

Commit

Permalink
pre-commit: mask everything except black
Browse files Browse the repository at this point in the history
  • Loading branch information
Bodong-Yang committed May 9, 2024
1 parent 1e2cdef commit 792154f
Showing 1 changed file with 21 additions and 21 deletions.
42 changes: 21 additions & 21 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,11 +5,11 @@ repos:
- id: detect-private-key
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-check-mock-methods
- id: python-use-type-annotations
# - repo: https://github.com/pre-commit/pygrep-hooks
# rev: v1.10.0
# hooks:
# - id: python-check-mock-methods
# - id: python-use-type-annotations
# Using this mirror lets us use mypyc-compiled black, which is about 2x faster
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
Expand All @@ -20,10 +20,10 @@ repos:
# pre-commit's default_language_version, see
# https://pre-commit.com/#top_level-default_language_version
language_version: python3.11
- repo: https://github.com/pycqa/isort
rev: 5.13.2
hooks:
- id: isort
# - repo: https://github.com/pycqa/isort
# rev: 5.13.2
# hooks:
# - id: isort
# - repo: https://github.com/pycqa/flake8
# rev: 7.0.0
# hooks:
Expand All @@ -32,18 +32,18 @@ repos:
# - flake8-bugbear==24.2.6
# - flake8-comprehensions
# - flake8-simplify
- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.8.0"
hooks:
- id: pyproject-fmt
# https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
additional_dependencies: ["tox>=4.9"]
- repo: https://github.com/PyCQA/docformatter
rev: v1.7.5
hooks:
- id: docformatter
additional_dependencies: [tomli]
args: [--in-place --config ./pyproject.toml]
# - repo: https://github.com/tox-dev/pyproject-fmt
# rev: "1.8.0"
# hooks:
# - id: pyproject-fmt
# # https://pyproject-fmt.readthedocs.io/en/latest/#calculating-max-supported-python-version
# additional_dependencies: ["tox>=4.9"]
# - repo: https://github.com/PyCQA/docformatter
# rev: v1.7.5
# hooks:
# - id: docformatter
# additional_dependencies: [tomli]
# args: [--in-place --config ./pyproject.toml]

ci:
autoupdate_schedule: monthly

0 comments on commit 792154f

Please sign in to comment.