

misc: remove custom pre-commit ruff hooks
@c12e2b9bf0643026f7bc8526dbb79129a47d4f4e
--- .pre-commit-config.yaml
+++ .pre-commit-config.yaml
... | ... | @@ -28,8 +28,16 @@ |
28 | 28 |
rev: v0.10.0.1 |
29 | 29 |
hooks: |
30 | 30 |
- id: shellcheck |
31 |
+ - repo: https://github.com/astral-sh/ruff-pre-commit |
|
32 |
+ # Ruff version. |
|
33 |
+ rev: v0.4.10 |
|
34 |
+ hooks: |
|
35 |
+ # Run the linter. |
|
36 |
+ - id: ruff |
|
37 |
+ args: [ --fix ] |
|
38 |
+ # Run the formatter. |
|
39 |
+ - id: ruff-format |
|
31 | 40 |
# NOTE: not using https://github.com/RobertCraigie/pyright-python because it doesn't work with poetry virtual environments |
32 |
- # NOTE: not using github.com/astral-sh/ruff-pre-commit because it doesn't work on NixOS |
|
33 | 41 |
- repo: local |
34 | 42 |
hooks: |
35 | 43 |
- id: pyright |
... | ... | @@ -37,12 +45,3 @@ |
37 | 45 |
entry: ./pre-commit-scripts/pyright.sh |
38 | 46 |
language: script |
39 | 47 |
pass_filenames: false |
40 |
- - id: ruff-lint |
|
41 |
- name: ruff-lint |
|
42 |
- entry: ./pre-commit-scripts/ruff-lint.sh |
|
43 |
- pass_filenames: false |
|
44 |
- language: script |
|
45 |
- - id: ruff-format |
|
46 |
- name: ruff-format |
|
47 |
- entry: ./pre-commit-scripts/ruff-format.sh |
|
48 |
- language: script |
--- pre-commit-scripts/ruff-format.sh
... | ... | @@ -1,2 +0,0 @@ |
1 | -#!/usr/bin/env bash | |
2 | -ruff format |
--- pre-commit-scripts/ruff-lint.sh
... | ... | @@ -1,2 +0,0 @@ |
1 | -#!/usr/bin/env bash | |
2 | -ruff check --fix |
Add a comment
Delete comment
Once you delete this comment, you won't be able to recover it. Are you sure you want to delete this comment?