Fedir Zadniprovskyi commited on
Commit
cf89a50
·
1 Parent(s): 81fa68b

misc: remove custom pre-commit ruff hooks

Browse files
.pre-commit-config.yaml CHANGED
@@ -28,8 +28,16 @@ repos:
28
  rev: v0.10.0.1
29
  hooks:
30
  - id: shellcheck
 
 
 
 
 
 
 
 
 
31
  # 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
  - repo: local
34
  hooks:
35
  - id: pyright
@@ -37,12 +45,3 @@ repos:
37
  entry: ./pre-commit-scripts/pyright.sh
38
  language: script
39
  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
 
28
  rev: v0.10.0.1
29
  hooks:
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
40
  # NOTE: not using https://github.com/RobertCraigie/pyright-python because it doesn't work with poetry virtual environments
 
41
  - repo: local
42
  hooks:
43
  - id: pyright
 
45
  entry: ./pre-commit-scripts/pyright.sh
46
  language: script
47
  pass_filenames: false
 
 
 
 
 
 
 
 
 
pre-commit-scripts/ruff-format.sh DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env bash
2
- ruff format
 
 
 
pre-commit-scripts/ruff-lint.sh DELETED
@@ -1,2 +0,0 @@
1
- #!/usr/bin/env bash
2
- ruff check --fix