updated checks
This commit is contained in:
+25
-6
@@ -8,17 +8,16 @@ repos:
|
|||||||
- id: debug-statements
|
- id: debug-statements
|
||||||
- id: double-quote-string-fixer
|
- id: double-quote-string-fixer
|
||||||
- id: name-tests-test
|
- id: name-tests-test
|
||||||
- id: requirements-txt-fixer
|
|
||||||
- repo: https://github.com/asottile/setup-cfg-fmt
|
- repo: https://github.com/asottile/setup-cfg-fmt
|
||||||
rev: v2.5.0
|
rev: v2.5.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: setup-cfg-fmt
|
- id: setup-cfg-fmt
|
||||||
- repo: https://github.com/asottile/reorder-python-imports
|
- repo: https://github.com/pre-commit/mirrors-isort
|
||||||
rev: v3.12.0
|
rev: v5.10.1
|
||||||
hooks:
|
hooks:
|
||||||
- id: reorder-python-imports
|
- id: isort
|
||||||
exclude: ^(pre_commit/resources/|testing/resources/python3_hooks_repo/)
|
language_version: python3.10
|
||||||
args: [--py39-plus, --add-import, 'from __future__ import annotations']
|
args: [ --tc ]
|
||||||
- repo: https://github.com/asottile/add-trailing-comma
|
- repo: https://github.com/asottile/add-trailing-comma
|
||||||
rev: v3.1.0
|
rev: v3.1.0
|
||||||
hooks:
|
hooks:
|
||||||
@@ -45,3 +44,23 @@ repos:
|
|||||||
- id: mypy
|
- id: mypy
|
||||||
additional_dependencies: [types-all]
|
additional_dependencies: [types-all]
|
||||||
exclude: ^testing/resources/
|
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
|
||||||
|
|||||||
Reference in New Issue
Block a user