-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixing small details on dev setup script (#73)
* now we good bruh * smol changes to script * poetry run pytest so no need to activate env * permissions * added empty line back to readme
- Loading branch information
Showing
2 changed files
with
8 additions
and
5 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,22 +1,25 @@ | ||
#!/bin/bash | ||
set -euo pipefail | ||
IFS=$'\n\t' | ||
|
||
G='\033[0;32m' | ||
Y='\033[1;33m' | ||
NC='\033[0m' | ||
|
||
echo "${Y}Setting Pre-Push hooks...${NC}" | ||
cat > .git/hooks/pre-push <<- "EOF" | ||
#!/bin/bash | ||
pytest | ||
poetry run pytest | ||
EOF | ||
|
||
chmod +x .git/hooks/pre-push | ||
echo "${G}Pre-Push hooks set.${NC}" | ||
|
||
echo "${Y}Installing deps...${NC}" | ||
poetry shell | ||
poetry install | ||
echo "${G}Dependencies installed.${NC}" | ||
echo "${Y}Setting Pre-Commit hooks...${NC}" | ||
pre-commit install | ||
poetry run pre-commit install | ||
|
||
pre-commit autoupdate | ||
poetry run pre-commit autoupdate | ||
echo "${G}Pre-Commit hooks set.${NC}" |