Skip to content

Commit f46acc7

Browse files
committed
Added --diff flag to black in linting script
This prints the unified diff of formatting changes on failure, making it easier to manually fix issues when black versions disagree. Signed-off-by: Lars Erik Wik <lars.erik.wik@northern.tech>
1 parent b176738 commit f46acc7

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

ci/linting.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ pyright .
1010

1111
shopt -s globstar
1212
echo "Running black"
13-
black --check .
13+
black --check --diff .
1414

1515
echo "Running pyflakes"
1616
pyflakes .

0 commit comments

Comments
 (0)