We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75d8018 commit 0ad2140Copy full SHA for 0ad2140
testing/run_py_files.sh
@@ -17,9 +17,19 @@ if [ ! -d "$TARGET_DIR" ]; then
17
exit 1
18
fi
19
20
-# Find and execute all Python files
+# List of files to SKIP
21
+SKIP_FILES=("business_cycle.py")
22
+
23
+# Construct the find command dynamically
24
+FIND_CMD=(find "$TARGET_DIR" -type f -name "*.py")
25
26
+for skip in "${SKIP_FILES[@]}"; do
27
+ FIND_CMD+=(! -name "$skip")
28
+done
29
30
+# Execute the constructed find command
31
echo "Searching for Python files in $TARGET_DIR..."
-PYTHON_FILES=$(find "$TARGET_DIR" -type f -name "*.py" | sort)
32
+PYTHON_FILES=$("${FIND_CMD[@]}" | sort)
33
34
if [ -z "$PYTHON_FILES" ]; then
35
echo "No Python files found in $TARGET_DIR"
0 commit comments