Init commit
Currently will generate dirs and all the thumbnails and view sizes of images
This commit is contained in:
commit
4e6cf1d499
13 changed files with 795 additions and 0 deletions
43
Makefile
Normal file
43
Makefile
Normal file
|
|
@ -0,0 +1,43 @@
|
|||
# Default, which is handy to run before committing code
|
||||
all: fmt lint test
|
||||
|
||||
# What to have CI systems run
|
||||
ci: init lint test
|
||||
|
||||
# Final pre-flight checks then deploy everywhere!
|
||||
shipit: all build staging prod
|
||||
|
||||
|
||||
init:
|
||||
poetry install
|
||||
|
||||
# Everything to get the dev env set up
|
||||
dev: init
|
||||
|
||||
fmt:
|
||||
poetry run ruff check --select I --fix # import sorting
|
||||
poetry run ruff format
|
||||
|
||||
lint:
|
||||
poetry run ruff check
|
||||
|
||||
test:
|
||||
poetry run mypy .
|
||||
poetry run pytest
|
||||
|
||||
# Faster tests, only running what's changed
|
||||
test-fast:
|
||||
poetry run mypy .
|
||||
poetry run pytest --testmon
|
||||
|
||||
test-watch:
|
||||
find . -name '*py' -or -name '*html' -or -name poetry.lock | entr -r -c make test-fast
|
||||
|
||||
run:
|
||||
podman-compose up
|
||||
|
||||
build:
|
||||
podman build -t nickpegg/photoalbum . --build-arg GIT_COMMIT=$(shell git rev-parse --short HEAD)
|
||||
|
||||
clean:
|
||||
podman-compose down --rmi all
|
||||
Loading…
Add table
Add a link
Reference in a new issue