Skip to content

Commit fd5da4a

Browse files
fix: make ruff format work outside of pre-commit (#6388)
* fix: make `ruff format` work outside of pre-commit * only enable format preview
1 parent 7f9f2a1 commit fd5da4a

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
hooks:
55
- id: ruff-format
66
name: ruff-format
7-
entry: ruff format --preview
7+
entry: ruff format
88
language: system
99
types_or: [python, markdown]
1010
require_serial: true

docs/app/pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,9 @@ lint.ignore = [
9090
lint.pydocstyle.convention = "google"
9191
lint.allowed-confusables = ['']
9292

93+
[tool.ruff.format]
94+
preview = true
95+
9396
[tool.codespell]
9497
skip = "data/*"
9598

0 commit comments

Comments
 (0)