-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ce7f3fc
commit 200d97a
Showing
2 changed files
with
11 additions
and
3 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 |
---|---|---|
@@ -1,3 +1,12 @@ | ||
set -ex | ||
#!/bin/bash | ||
|
||
rm -rf * !(examples/*) !(.binder/*) | ||
# Define the directories to exclude | ||
EXCLUDE_DIRS=(".git" "examples" ".binder") | ||
|
||
# Convert the array to a pattern for find | ||
EXCLUDE_PATTERN=$(printf "! -name %s -prune " "${EXCLUDE_DIRS[@]}") | ||
|
||
# Find and remove everything except the excluded directories | ||
find . -maxdepth 1 -mindepth 1 \( $EXCLUDE_PATTERN \) -exec rm -rf {} + | ||
|
||
echo "Cleanup complete. Only the specified directories remain." |
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,6 @@ | ||
persist_ext>=1.6.0 | ||
jupyterlab>=4.0.4 | ||
altair>=5 | ||
paretoset | ||
pandas | ||
numpy | ||
matplotlib | ||
|