diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index c804e12..0b6045a 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,43 +1,48 @@ # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks repos: -- repo: https://github.com/pre-commit/pre-commit-hooks + - repo: 'https://github.com/pre-commit/pre-commit-hooks' rev: v4.6.0 hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - - id: check-yaml - - id: check-added-large-files - args: ['--maxkb=100000'] - - id: fix-byte-order-marker - - id: check-case-conflict - - id: check-json - - id: mixed-line-ending - - id: check-ast - - id: check-merge-conflict + - id: trailing-whitespace + - id: end-of-file-fixer + - id: check-yaml + - id: check-added-large-files + args: + - '--maxkb=100000' + - id: fix-byte-order-marker + - id: check-case-conflict + - id: check-json + - id: mixed-line-ending + - id: check-ast + - id: check-merge-conflict -- repo: https://github.com/astral-sh/ruff-pre-commit + - repo: 'https://github.com/astral-sh/ruff-pre-commit' rev: v0.6.3 hooks: - - id: ruff - args: [ --fix ] - - id: ruff-format + - id: ruff + args: + - '--fix' + - id: ruff-format -- repo: https://github.com/asottile/blacken-docs + - repo: 'https://github.com/asottile/blacken-docs' rev: 1.18.0 hooks: - - id: blacken-docs - additional_dependencies: [black] + - id: blacken-docs + additional_dependencies: + - black -- repo: https://github.com/asottile/pyupgrade + - repo: 'https://github.com/asottile/pyupgrade' rev: v3.17.0 hooks: - - id: pyupgrade - args: [--py37-plus] + - id: pyupgrade + args: + - '--py37-plus' -- repo: https://github.com/pre-commit/mirrors-mypy + - repo: 'https://github.com/pre-commit/mirrors-mypy' rev: v1.11.2 hooks: - - id: mypy + - id: mypy additional_dependencies: - types-requests +