-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added blacklist & run example script
- Loading branch information
cbiering
committed
Jan 21, 2025
1 parent
20e6134
commit e051081
Showing
2 changed files
with
24 additions
and
12 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,23 @@ | ||
#!/usr/bin/env bash | ||
|
||
# Exit immediately if a command exits with a non-zero status. | ||
set -e | ||
|
||
# -- Define blacklist of scripts to skip -- | ||
BLACKLIST=("07_auth0_with_device_code.py") | ||
|
||
# -- Loop through all Python scripts in /examples and run them unless blacklisted -- | ||
for script in examples/*.py; do | ||
# Extract just the filename (e.g., '01_basic.py') | ||
filename=$(basename "$script") | ||
|
||
# Check if current filename is in the blacklist | ||
if [[ " ${BLACKLIST[@]} " =~ " ${filename} " ]]; then | ||
echo "Skipping blacklisted script: $filename" | ||
continue | ||
fi | ||
|
||
echo "Running $filename ..." | ||
PYTHONPATH=. poetry run python "$script" | ||
echo | ||
done |