updated checks

This commit is contained in:
Brian Bjarke Jensen
2024-07-13 22:31:03 +02:00
parent 8d887b40b3
commit d46ad01e1d
+25 -6
View File
@@ -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