-
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.
84: Update to latest python template.
- Loading branch information
1 parent
cf5ad69
commit 8029989
Showing
10 changed files
with
133 additions
and
89 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,5 @@ | ||
#!/usr/bin/env bash | ||
|
||
set -a | ||
source $1 | ||
set +a |
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,5 +1,8 @@ | ||
#!/usr/bin/env sh | ||
|
||
python3.11 -m venv ./.venv | ||
. .venv/bin/activate | ||
if [[ "$OSTYPE" != "win32" && "$OSTYPE" != "msys" ]]; then | ||
echo "Activating .venv first." | ||
. .venv/bin/activate | ||
fi | ||
pip3 install pip-tools |
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,7 +1,8 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
if [[ "$OSTYPE" != "win32" && "$OSTYPE" != "msys" ]]; then | ||
echo "Activating .venv first." | ||
. .venv/bin/activate | ||
fi | ||
|
||
flake8 ./src/omotes_orchestrator ./unit_test/ |
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,7 +1,8 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
if [[ "$OSTYPE" != "win32" && "$OSTYPE" != "msys" ]]; then | ||
echo "Activating .venv first." | ||
. .venv/bin/activate | ||
fi | ||
|
||
PYTHONPATH='$PYTHONPATH:src/' pytest --junit-xml=test-results.xml unit_test/ |
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,8 +1,9 @@ | ||
#!/bin/bash | ||
#!/usr/bin/env bash | ||
|
||
if [[ "$OSTYPE" != "win32" && "$OSTYPE" != "msys" ]]; then | ||
echo "Activating .venv first." | ||
. .venv/bin/activate | ||
fi | ||
|
||
pip-compile --output-file=requirements.txt pyproject.toml | ||
pip-compile --extra=dev -c requirements.txt --output-file=dev-requirements.txt pyproject.toml | ||
pip-compile --upgrade --output-file=requirements.txt pyproject.toml | ||
pip-compile --upgrade --extra=dev -c requirements.txt --output-file=dev-requirements.txt pyproject.toml |
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
Oops, something went wrong.