Skip to content

Commit b4d7826

Browse files
chore(tooling): change ruff format's flag from --diff to --check in tox.ini (#1838)
Co-authored-by: danceratopz <danceratopz@gmail.com>
1 parent 5e68194 commit b4d7826

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tox.ini

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ description = Lint and code formatting checks (ruff)
2222
extras = lint
2323
commands =
2424
ruff check --no-fix --show-fixes {[testenv]python_source_dirs}
25-
ruff format --diff {[testenv]python_source_dirs}
25+
ruff format --check {[testenv]python_source_dirs}
2626

2727
[testenv:typecheck]
2828
description = Run type checking (mypy)
@@ -58,7 +58,7 @@ setenv =
5858
DYLD_FALLBACK_LIBRARY_PATH = /opt/homebrew/lib
5959
commands =
6060
ruff check --no-fix --show-fixes docs/scripts
61-
ruff format --diff docs/scripts
61+
ruff format --check docs/scripts
6262
mkdocs build --strict
6363

6464
[testenv:pytest]

0 commit comments

Comments
 (0)