From 8a46e9692109148bb607c8f4e5976c795efc9e1e Mon Sep 17 00:00:00 2001 From: Robert Honz Date: Fri, 12 Jan 2024 10:55:40 +0100 Subject: [PATCH] =?UTF-8?q?=F0=9F=9B=A0=EF=B8=8F=20Pre=20Commit=20Hooks=20?= =?UTF-8?q?adjusted.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .pre-commit-config.yaml | 35 ++++++++++++++++++----------------- 1 file changed, 18 insertions(+), 17 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9316f3d..3b97471 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,15 +4,15 @@ default_language_version: default_stages: [commit, push] repos: - # - repo: https://github.com/pre-commit/pre-commit-hooks - # rev: "v4.4.0" - # hooks: - # - id: check-case-conflict - # - id: check-merge-conflict - # - id: check-toml - # - id: check-yaml - # - id: end-of-file-fixer - # - id: trailing-whitespace + - repo: https://github.com/pre-commit/pre-commit-hooks + rev: "v4.4.0" + hooks: + - id: check-case-conflict + - id: check-merge-conflict + - id: check-toml + - id: check-yaml + - id: end-of-file-fixer + - id: trailing-whitespace - repo: https://github.com/charliermarsh/ruff-pre-commit rev: "v0.0.230" @@ -39,6 +39,7 @@ repos: # entry: poetry run pyupgrade --py310-plus # types: [python] # language: system + - repo: local hooks: - id: isort @@ -46,11 +47,11 @@ repos: entry: poetry run isort --settings-path pyproject.toml types: [python] language: system -# -# - repo: local -# hooks: -# - id: black -# name: black -# entry: poetry run black --config pyproject.toml -# types: [python] -# language: system + + - repo: local + hooks: + - id: black + name: black + entry: poetry run black --config pyproject.toml + types: [python] + language: system