-
Notifications
You must be signed in to change notification settings - Fork 28
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(deployment): add black to lint deployment files (#2367)
- Loading branch information
1 parent
2224fdb
commit f184253
Showing
10 changed files
with
235 additions
and
232 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Run black on the sequencer deployment project. | ||
|
||
DEFAULT_ARGS="-l 100 -t py39 --exclude imports" | ||
function fix() { | ||
black ${DEFAULT_ARGS} . | ||
} | ||
|
||
function check() { | ||
black --diff --color ${DEFAULT_ARGS} . | ||
} | ||
|
||
[[ $1 == "--fix" ]] && fix | ||
[[ $1 == "--check" ]] && check |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.