Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,11 @@ jobs:
echo "No changed files to check."
fi

- name: check missing __init__ files

run: build_tools/fail_on_missing_init_files.sh
shell: bash

run-notebook-tutorials:
name: Run notebook tutorials
needs: code-quality
Expand Down
13 changes: 13 additions & 0 deletions build_tools/fail_on_missing_init_files.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/bash

# Script to search for missing init FILES.
set -euxo pipefail

FILES=$( find ./sktime -type d '!' -exec test -e "{}/__init__.py" ";" -not -path "**/__pycache__" -not -path "**/datasets/data*" -not -path "**/contrib/*" -print )

if [[ -n "$FILES" ]]
then
echo "Missing __init__.py files detected in the following modules:"
echo "$FILES"
exit 1
fi
Loading