Upgrade pre-commit hooks
All checks were successful
Run tests / test-precommit (push) Successful in 1m15s

This commit is contained in:
Benjamin Renard 2024-03-13 23:33:46 +01:00
parent cda28c3484
commit be72d13cc0

View file

@ -6,25 +6,24 @@ repos:
rev: v0.1.6 rev: v0.1.6
hooks: hooks:
- id: ruff - id: ruff
args: args: ["--fix"]
- --fix
- repo: https://github.com/asottile/pyupgrade - repo: https://github.com/asottile/pyupgrade
rev: v3.3.1 rev: v3.15.0
hooks: hooks:
- id: pyupgrade - id: pyupgrade
args: ["--keep-percent-format", "--py37-plus"] args: ["--keep-percent-format", "--py37-plus"]
- repo: https://github.com/psf/black - repo: https://github.com/psf/black
rev: 22.12.0 rev: 23.11.0
hooks: hooks:
- id: black - id: black
args: ["--target-version", "py37", "--line-length", "100"] args: ["--target-version", "py37", "--line-length", "100"]
- repo: https://github.com/PyCQA/isort - repo: https://github.com/PyCQA/isort
rev: 5.11.5 rev: 5.12.0
hooks: hooks:
- id: isort - id: isort
args: ["--profile", "black", "--line-length", "100"] args: ["--profile", "black", "--line-length", "100"]
- repo: https://github.com/PyCQA/flake8 - repo: https://github.com/PyCQA/flake8
rev: 6.0.0 rev: 6.1.0
hooks: hooks:
- id: flake8 - id: flake8
args: ["--max-line-length=100"] args: ["--max-line-length=100"]
@ -36,6 +35,8 @@ repos:
- --ignore-words-list=fro,hass - --ignore-words-list=fro,hass
- --skip="./.*,*.csv,*.json,*.ambr" - --skip="./.*,*.csv,*.json,*.ambr"
- --quiet-level=2 - --quiet-level=2
- --ignore-regex=.*codespell-ignore$
# - --write-changes # Uncomment to write changes
exclude_types: [csv, json] exclude_types: [csv, json]
- repo: https://github.com/adrienverge/yamllint - repo: https://github.com/adrienverge/yamllint
rev: v1.32.0 rev: v1.32.0
@ -46,6 +47,7 @@ repos:
rev: v2.7.1 rev: v2.7.1
hooks: hooks:
- id: prettier - id: prettier
args: ["--print-width", "100"]
- repo: local - repo: local
hooks: hooks:
- id: pylint - id: pylint
@ -54,14 +56,15 @@ repos:
language: system language: system
types: [python] types: [python]
require_serial: true require_serial: true
- repo: https://github.com/Lucas-C/pre-commit-hooks-bandit - repo: https://github.com/PyCQA/bandit
rev: v1.0.5 rev: 1.7.5
hooks: hooks:
- id: python-bandit-vulnerability-check - id: bandit
name: bandit args: [--skip, "B101", --recursive]
args: [--skip, "B101", --recursive, mylib]
- repo: https://github.com/pre-commit/pre-commit-hooks - repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0 rev: v4.4.0
hooks: hooks:
- id: check-executables-have-shebangs - id: check-executables-have-shebangs
stages: [manual] stages: [manual]
minimum_pre_commit_version: 3.2.0