From d46ad01e1de5a3165fe04adbc3c48d2c8e6e0dfd Mon Sep 17 00:00:00 2001 From: Brian Bjarke Jensen Date: Sat, 13 Jul 2024 22:31:03 +0200 Subject: [PATCH] updated checks --- .pre-commit-config.yaml | 31 +++++++++++++++++++++++++------ 1 file changed, 25 insertions(+), 6 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index a732232..e8ad349 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -8,17 +8,16 @@ repos: - id: debug-statements - id: double-quote-string-fixer - id: name-tests-test - - id: requirements-txt-fixer - repo: https://github.com/asottile/setup-cfg-fmt rev: v2.5.0 hooks: - id: setup-cfg-fmt -- repo: https://github.com/asottile/reorder-python-imports - rev: v3.12.0 +- repo: https://github.com/pre-commit/mirrors-isort + rev: v5.10.1 hooks: - - id: reorder-python-imports - exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/) - args: [--py39-plus, --add-import, 'from __future__ import annotations'] + - id: isort + language_version: python3.10 + args: [ --tc ] - repo: https://github.com/asottile/add-trailing-comma rev: v3.1.0 hooks: @@ -45,3 +44,23 @@ repos: - id: mypy additional_dependencies: [types-all] exclude: ^testing/resources/ +- repo: https://github.com/psf/black + rev: 24.4.2 + hooks: + - id: black + language_version: python3.12 + args: [ --skip-string-normalization ] +- repo: https://github.com/myint/docformatter + rev: v1.5.0 + hooks: + - id: docformatter + name: docformatter + description: 'Formats docstrings to follow PEP 257.' + entry: docformatter + language: python + types: [ python ] +- repo: https://github.com/jendrikseipp/vulture + rev: 'v2.6' + hooks: + - id: vulture + entry: vulture . --min-confidence 90 --exclude */.venv/*.py