From c9d1d59040dff600916c76eee6dd3c0c516f6152 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Wed, 27 Nov 2024 23:41:01 +0100 Subject: [PATCH 1/4] Remove isort pre-commit hook --- .pre-commit-config.yaml | 5 ----- 1 file changed, 5 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9dbc275..5403a00 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,8 +10,3 @@ repos: rev: e812d61e6e9d269f44ecda63904ed670a1948fe8 # frozen: v0.0.257 hooks: - id: ruff - - - repo: https://github.com/pycqa/isort - rev: dbf82f2dd09ae41d9355bcd7ab69187a19e6bf2f # frozen: 5.12.0 - hooks: - - id: isort From 0a1b6bf2bc4bdcd4a9da39b718bfff3d391c739b Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Wed, 27 Nov 2024 23:49:15 +0100 Subject: [PATCH 2/4] Update pre-commit hooks --- .pre-commit-config.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 5403a00..9244580 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,12 +1,12 @@ repos: - repo: https://github.com/pre-commit/pre-commit-hooks - rev: f71fa2c1f9cf5cb705f73dffe4b21f7c61470ba9 # frozen: v4.4.0 + rev: cef0300fd0fc4d2a87a85fa2093c6b283ea36f4b # frozen: v5.0.0 hooks: - id: check-ast - id: check-yaml - id: trailing-whitespace - - repo: https://github.com/charliermarsh/ruff-pre-commit - rev: e812d61e6e9d269f44ecda63904ed670a1948fe8 # frozen: v0.0.257 + - repo: https://github.com/astral-sh/ruff-pre-commit + rev: 0710b94280408eef12748cde4782972942370ad2 # frozen: v0.8.0 hooks: - id: ruff From acf6f7a01db7dd5d3b43185875b91595a69dd2a6 Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Wed, 27 Nov 2024 23:53:46 +0100 Subject: [PATCH 3/4] Add 'ruff-format' pre-commit hook --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 9244580..b82bace 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,3 +10,4 @@ repos: rev: 0710b94280408eef12748cde4782972942370ad2 # frozen: v0.8.0 hooks: - id: ruff + - id: ruff-format From 3927b940521206dd42414908f3263847f408e9db Mon Sep 17 00:00:00 2001 From: Paul-Emmanuel Raoul Date: Wed, 27 Nov 2024 23:54:50 +0100 Subject: [PATCH 4/4] Add '--fix' argument to 'ruff' pre-commit hook --- .pre-commit-config.yaml | 1 + 1 file changed, 1 insertion(+) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b82bace..becbd49 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -10,4 +10,5 @@ repos: rev: 0710b94280408eef12748cde4782972942370ad2 # frozen: v0.8.0 hooks: - id: ruff + args: [ --fix ] - id: ruff-format