just: fmt before test, better comments
Some checks failed
gitea-physics/deepdog/pipeline/head There was a failure building this commit

This commit is contained in:
2024-03-19 15:45:15 -05:00
parent 731dabd74d
commit b6a41872d5

View File

@@ -17,7 +17,8 @@ checknix:
echo "Using poetry as runner, no nix detected." echo "Using poetry as runner, no nix detected."
fi fi
test: # run all tests
test: fmt
#!/usr/bin/env bash #!/usr/bin/env bash
set -euxo pipefail set -euxo pipefail
@@ -33,6 +34,7 @@ test:
poetry run pytest poetry run pytest
fi fi
# format code
fmt: fmt:
#!/usr/bin/env bash #!/usr/bin/env bash
set -euxo pipefail set -euxo pipefail
@@ -43,6 +45,7 @@ fmt:
fi fi
find . -type f -name "*.py" -exec sed -i -e 's/ /\t/g' {} \; find . -type f -name "*.py" -exec sed -i -e 's/ /\t/g' {} \;
# release the app, checking that our working tree is clean and ready for release
release: release:
./scripts/release.sh ./scripts/release.sh