From be72d13cc03ac2921378f068bcd3ede4ae1d2fe5 Mon Sep 17 00:00:00 2001 From: Benjamin Renard Date: Wed, 13 Mar 2024 23:33:46 +0100 Subject: [PATCH] Upgrade pre-commit hooks --- .pre-commit-config.yaml | 25 ++++++++++++++----------- 1 file changed, 14 insertions(+), 11 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c710eb1..7f25e52 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,25 +6,24 @@ repos: rev: v0.1.6 hooks: - id: ruff - args: - - --fix + args: ["--fix"] - repo: https://github.com/asottile/pyupgrade - rev: v3.3.1 + rev: v3.15.0 hooks: - id: pyupgrade args: ["--keep-percent-format", "--py37-plus"] - repo: https://github.com/psf/black - rev: 22.12.0 + rev: 23.11.0 hooks: - id: black args: ["--target-version", "py37", "--line-length", "100"] - repo: https://github.com/PyCQA/isort - rev: 5.11.5 + rev: 5.12.0 hooks: - id: isort args: ["--profile", "black", "--line-length", "100"] - repo: https://github.com/PyCQA/flake8 - rev: 6.0.0 + rev: 6.1.0 hooks: - id: flake8 args: ["--max-line-length=100"] @@ -36,6 +35,8 @@ repos: - --ignore-words-list=fro,hass - --skip="./.*,*.csv,*.json,*.ambr" - --quiet-level=2 + - --ignore-regex=.*codespell-ignore$ + # - --write-changes # Uncomment to write changes exclude_types: [csv, json] - repo: https://github.com/adrienverge/yamllint rev: v1.32.0 @@ -46,6 +47,7 @@ repos: rev: v2.7.1 hooks: - id: prettier + args: ["--print-width", "100"] - repo: local hooks: - id: pylint @@ -54,14 +56,15 @@ repos: language: system types: [python] require_serial: true - - repo: https://github.com/Lucas-C/pre-commit-hooks-bandit - rev: v1.0.5 + - repo: https://github.com/PyCQA/bandit + rev: 1.7.5 hooks: - - id: python-bandit-vulnerability-check - name: bandit - args: [--skip, "B101", --recursive, mylib] + - id: bandit + args: [--skip, "B101", --recursive] + - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.4.0 hooks: - id: check-executables-have-shebangs stages: [manual] +minimum_pre_commit_version: 3.2.0