From fe187da4918479eff0d2de9ef6d6a48931549c7f Mon Sep 17 00:00:00 2001 From: Danielle McLean Date: Thu, 10 Aug 2023 16:48:42 +1000 Subject: [PATCH] Update pre-commit hooks --- .pre-commit-config.yaml | 17 ++++++++++++++--- 1 file changed, 14 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 538847e..86a47d3 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,19 +1,30 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v2.1.0 + rev: v4.4.0 hooks: - - id: check-byte-order-marker + - id: check-ast + - id: check-builtin-literals - id: check-case-conflict + - id: check-docstring-first - id: check-executables-have-shebangs - id: check-json - id: check-merge-conflict + - id: check-symlinks + - id: check-toml + - id: check-vcs-permalinks - id: check-yaml + - id: destroyed-symlinks - id: end-of-file-fixer - - id: flake8 + - id: fix-byte-order-marker - id: mixed-line-ending args: - --fix=lf - id: trailing-whitespace + - repo: https://github.com/psf/black + rev: 23.7.0 + hooks: + - id: black + language_version: python3.11 - repo: local hooks: - id: pytest