-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bug #20 : adding back scripts folder
- Loading branch information
1 parent
b0bb82d
commit 2f5af81
Showing
1 changed file
with
26 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#!/usr/bin/env bash | ||
# | ||
# Call black and flake before each commit. | ||
# The command "git commit" with no argument will trigger this script. | ||
# | ||
# To enable this hook, cp this file to .git/hooks/. | ||
|
||
# If any command fails, exit immediately with that command's exit status | ||
set -eo pipefail | ||
|
||
# Run black against all code in the `source_code` directory | ||
black . --check | ||
echo "-------> Black passed!" | ||
|
||
# Run isort against all code in the `source_code` directory | ||
isort . -c | ||
echo "-------> Isort passed!" | ||
|
||
# Run flake8 against all code in the `source_code` directory | ||
flake8 . | ||
echo "-------> Flake8 passed!" | ||
|
||
# Run mypy against all code in the `source_code` directory | ||
mypy . | ||
echo "-------> Mypy passed!" | ||
|