just: fmt before test, better comments
Some checks failed
gitea-physics/deepdog/pipeline/head There was a failure building this commit
Some checks failed
gitea-physics/deepdog/pipeline/head There was a failure building this commit
This commit is contained in:
5
justfile
5
justfile
@@ -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
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user