From d2221ddb14b8cb906dc3842fb795e85bbd1e0f19 Mon Sep 17 00:00:00 2001 From: Patrick Baus Date: Sat, 22 Jun 2024 15:17:53 +0200 Subject: [PATCH] Added more pre-commit hooks Updated pre-commit hooks --- .pre-commit-config.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a49de25..3cc1341 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -2,19 +2,23 @@ # See https://pre-commit.com/hooks.html for more hooks repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.4.0 + rev: v4.5.0 hooks: + - id: check-executables-have-shebangs # Check for invalid files - id: check-toml # Check Python files + - id: end-of-file-fixer - id: fix-encoding-pragma args: [--remove] - - id: end-of-file-fixer - id: mixed-line-ending args: [--fix=lf] - id: check-executables-have-shebangs + - id: requirements-txt-fixer + - id: trailing-whitespace + args: [--markdown-linebreak-ext=md] - repo: https://github.com/psf/black - rev: 23.9.1 + rev: 24.4.2 hooks: - id: black - repo: https://github.com/asottile/blacken-docs @@ -23,7 +27,7 @@ repos: - id: blacken-docs args: [--line-length=120] - repo: https://github.com/PyCQA/isort - rev: 5.12.0 + rev: 5.13.2 hooks: - id: isort - repo: local @@ -35,6 +39,6 @@ repos: types: [python] require_serial: true - repo: https://github.com/pre-commit/mirrors-mypy - rev: 'v1.5.1' + rev: 'v1.10.0' hooks: - id: mypy