Skip to content

Commit d5b2e54

Browse files
committed
Add format script and --check in pre-commit
1 parent 86c2111 commit d5b2e54

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

scripts/format

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
#!/bin/sh -e
2+
poetry run black p "$@"

scripts/pre-commit

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
#!/bin/sh -e
2-
poetry run black p
2+
./scripts/format --check
33
poetry run p --help

0 commit comments

Comments
 (0)