Skip to content

Commit

Permalink
move ruff formatting to top of pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
mdtanker committed Nov 16, 2023
1 parent 3841709 commit 6f626ae
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,13 @@ repos:
- id: blacken-docs
additional_dependencies: [black==23.7.0]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.3"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
- id: ruff-format

- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.5.0"
hooks:
Expand Down Expand Up @@ -44,12 +51,6 @@ repos:
types_or: [yaml, markdown, html, css, scss, javascript, json]
args: [--prose-wrap=always]

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.0.290"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: "v1.6.1"
hooks:
Expand All @@ -58,6 +59,7 @@ repos:
args: []
additional_dependencies:
- pytest
# - data-science-types

- repo: https://github.com/codespell-project/codespell
rev: "v2.2.6"
Expand Down

0 comments on commit 6f626ae

Please sign in to comment.