diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 6601244..f891cd4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -17,7 +17,7 @@ default_language_version: repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: - id: check-added-large-files - id: check-case-conflict @@ -30,6 +30,19 @@ repos: - id: fix-byte-order-marker - id: trailing-whitespace exclude_types: [markdown] + - id: check-docstring-first + #- id: check-json + - id: check-merge-conflict + #- id: check-toml + #- id: check-xml + - id: debug-statements + - id: fix-encoding-pragma + args: [--remove] + - id: mixed-line-ending + # .gitattributes is trusted to handle this + args: [--fix=no] + #- id: pretty-format-json + #- id: requirements-txt-fixer - repo: https://github.com/thlorenz/doctoc rev: v2.2.0 hooks: @@ -40,6 +53,18 @@ repos: rev: "v1.5.1" hooks: - id: mypy + - repo: https://github.com/asottile/pyupgrade + rev: v3.15.0 + hooks: + - id: pyupgrade + - repo: https://github.com/asottile/reorder-python-imports + rev: v3.12.0 + hooks: + - id: reorder-python-imports + - repo: https://github.com/asottile/add-trailing-comma + rev: v3.1.0 + hooks: + - id: add-trailing-comma - repo: https://github.com/pre-commit/mirrors-prettier rev: "v3.0.3" hooks: