Skip to content

Commit c3fbb69

Browse files
Update deps + justfile
1 parent cd95afc commit c3fbb69

File tree

5 files changed

+232
-227
lines changed

5 files changed

+232
-227
lines changed

.github/workflows/codeql_analysis.yml

Lines changed: 0 additions & 72 deletions
This file was deleted.

.github/workflows/echo_secret.yml

Lines changed: 0 additions & 15 deletions
This file was deleted.

justfile

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
# See https://just.systems/man/en
2+
3+
# positional args
4+
# * NOTE: unable to reuse recipe name (e.g., start/stop); prefix recipes with `@`
5+
# set positional-arguments := true
6+
7+
# load .env
8+
set dotenv-load
9+
10+
# set env var
11+
# export APP := `echo ${APP}`
12+
# export SCRIPT := "harden"
13+
# export VERSION := "latest"
14+
15+
# x86_64/arm64
16+
arch := `uname -m`
17+
18+
# hostname
19+
host := `uname -n`
20+
21+
# docker-compose / docker compose
22+
# * https://docs.docker.com/compose/install/linux/#install-using-the-repository
23+
# docker-compose := if `command -v docker-compose; echo $?` == "0" {
24+
# "docker-compose"
25+
# } else {
26+
# "docker compose"
27+
# }
28+
29+
# [halp] list available commands
30+
default:
31+
just --list
32+
33+
# [deps] update dependencies
34+
update-deps:
35+
#!/usr/bin/env bash
36+
# set -euxo pipefail
37+
find . -maxdepth 3 -name "pyproject.toml" -exec \
38+
echo "[{}]" \; -exec \
39+
echo "Clearring pypi cache..." \; -exec \
40+
poetry cache clear --all pypi --no-ansi \; -exec \
41+
poetry update --lock --no-ansi \;
42+
43+
# [deps] export requirements.txt
44+
export-reqs: update-deps
45+
#!/usr/bin/env bash
46+
# set -euxo pipefail
47+
find . -maxdepth 3 -name "pyproject.toml" -exec \
48+
echo "[{}]" \; -exec \
49+
echo "Exporting requirements.txt..." \; -exec \
50+
poetry export --no-ansi --without-hashes --output requirements.txt \;
51+
52+
# [git] update git submodules
53+
sub:
54+
git submodule update --init --recursive && git pull --recurse-submodules

0 commit comments

Comments
 (0)