From 3870d0b59a530b70ce387515a9d541a1f3e54080 Mon Sep 17 00:00:00 2001 From: Lion Holler Date: Thu, 27 Jun 2024 14:06:20 +0200 Subject: [PATCH 1/3] removed black & isort from pre-commit, ruff & ruff-format added to pre-commit --- .pre-commit-config.yaml | 14 ++++---------- 1 file changed, 4 insertions(+), 10 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 68868ce5..dc7814ce 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,14 +12,8 @@ repos: - id: trailing-whitespace - id: end-of-file-fixer - - repo: https://github.com/psf/black - rev: 24.2.0 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: v0.4.10 hooks: - - id: black - args: ["."] - - - repo: https://github.com/pycqa/isort - rev: 5.13.2 - hooks: - - id: isort - args: ["."] + - id: ruff + - id: ruff-format \ No newline at end of file From e6d80de180c71a2aa2a88c70df6c1562ae10576a Mon Sep 17 00:00:00 2001 From: Lion Holler Date: Thu, 27 Jun 2024 15:19:42 +0200 Subject: [PATCH 2/3] --fix option added to ruff check --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index dc7814ce..371a8fed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -16,4 +16,5 @@ repos: rev: v0.4.10 hooks: - id: ruff + args: [--fix] - id: ruff-format \ No newline at end of file From fa9b5eb3ab965cff2aa743d76b1648f1416295ef Mon Sep 17 00:00:00 2001 From: Lion Holler Date: Mon, 1 Jul 2024 14:00:45 +0200 Subject: [PATCH 3/3] pre-comit config removed --- .pre-commit-config.yaml | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 .pre-commit-config.yaml diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml deleted file mode 100644 index 371a8fed..00000000 --- a/.pre-commit-config.yaml +++ /dev/null @@ -1,20 +0,0 @@ -# Automatically run checks over changed files prior to `git commit`. -# Required one-time setup: -# -# pip install pre-commit -# pre-commit install -# -# See https://pre-commit.com for details. -repos: - - repo: https://github.com/pre-commit/pre-commit-hooks - rev: v4.5.0 - hooks: - - id: trailing-whitespace - - id: end-of-file-fixer - - - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.4.10 - hooks: - - id: ruff - args: [--fix] - - id: ruff-format \ No newline at end of file