Skip to content

Commit

Permalink
If black fails, print diffs with colour
Browse files Browse the repository at this point in the history
  • Loading branch information
pt1243 committed Oct 18, 2023
1 parent 4c96bbb commit 678098b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@ repos:
rev: 23.10.0
hooks:
- id: black
args: [--config=.\pyproject.toml]
args: [--config=./pyproject.toml]
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ description = Format with black
skip_install = true
deps =
black
commands = black . --check
commands = black . --check --diff --color

[testenv:erase]
description = Erase previous coverage
Expand Down

0 comments on commit 678098b

Please sign in to comment.