We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0ca9092 commit cb793b4Copy full SHA for cb793b4
1 file changed
scripts/run-poetry.sh
@@ -21,6 +21,19 @@ if [ -z "$RUN_ON_UNCLEAN" ]; then
21
fi
22
23
24
+TOML_STATUS=$(git status --porcelain pyproject.toml)
25
+if [ -n "$TOML_STATUS" ]; then
26
+ echo "==== ERROR: stopping to preserve changes in 'pyproject.toml'! ===="
27
+ echo
28
+ git status pyproject.toml --porcelain
29
30
+ echo "--------"
31
+ echo "Refusing to continue as 'pyproject.toml' would be re-set at the end"
32
+ echo "of this script. Please stash your changes and re-run the script!"
33
34
+ exit 2
35
+fi
36
+
37
### clean up old poetry artifacts:
38
rm -rf dist/
39
0 commit comments