forked from lunaflight/courserekt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request lunaflight#25 from lunaflight/add-scripts
Add scripts
- Loading branch information
Showing
4 changed files
with
62 additions
and
74 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
#!/bin/bash | ||
|
||
main () | ||
{ | ||
python -m unittest && | ||
python -m mypy --strict . && | ||
python -m ruff check --statistics | ||
} | ||
|
||
source venv/bin/activate | ||
main | ||
deactivate |
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,18 @@ | ||
#!/bin/bash | ||
|
||
main () | ||
{ | ||
pip install -r local-requirements.txt && | ||
python -m src.history.build | ||
} | ||
|
||
# Create virtual environment | ||
python -m venv venv | ||
if [ $? -ne 0 ]; then | ||
echo "Error creating virtual environment" | ||
exit 1 | ||
fi | ||
|
||
source venv/bin/activate | ||
main | ||
deactivate |
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,10 @@ | ||
#!/bin/bash | ||
|
||
main () | ||
{ | ||
python -m src.web.main | ||
} | ||
|
||
source venv/bin/activate | ||
main | ||
deactivate |