Skip to content

Commit

Permalink
Add style check based on black
Browse files Browse the repository at this point in the history
This adds a check for the style used in Python code, as enforced by
black.

Signed-off-by: Cleber Rosa <[email protected]>
  • Loading branch information
clebergnu committed Feb 5, 2024
1 parent 9aab466 commit 6fccbbc
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions check-style
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/bin/sh -e

TOOL_CMD=black
PATH=$(basename $0)/utils:$PATH
TOOL_PATH=$(which $TOOL_CMD)

echo "** Running $TOOL_CMD ($TOOL_PATH)..."
$TOOL_PATH --check --diff --color .
1 change: 1 addition & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
isort==5.10.1
black==22.3.0

0 comments on commit 6fccbbc

Please sign in to comment.