File tree Expand file tree Collapse file tree 3 files changed +122
-129
lines changed Expand file tree Collapse file tree 3 files changed +122
-129
lines changed Original file line number Diff line number Diff line change 11default : install lint build test
22
3- # down all app containers
43down :
54 docker compose down --remove-orphans
65
7- # run shell in container
86sh :
97 docker compose run --service-ports application bash
108
11- # run pytest with arguments
129test * args : down && down
1310 docker compose run application sh -c " sleep 1 && uv run alembic downgrade base && uv run alembic upgrade head && uv run pytest {{ args }} "
1411
15- # run api
1612run :
1713 docker compose run --service-ports application sh -c " sleep 1 && uv run alembic upgrade head && uv run python -m app"
1814
19- # create alembic migration with arguments
2015migration * args : && down
2116 docker compose run application sh -c " sleep 1 && uv run alembic upgrade head && uv run alembic revision --autogenerate {{ args }} "
2217
23- # build app docker container
2418build :
2519 docker compose build application
2620
27- # install local dependencies
2821install :
2922 uv lock --upgrade
3023 uv sync --all-extras --no-install-project --frozen
3124
32- # run linters
3325lint :
3426 uv run ruff format .
3527 uv run ruff check . --fix
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ ignore = [
5353 " D213" , # "multi-line-summary-second-line" conflicting with D212
5454 " COM812" , # flake8-commas "Trailing comma missing"
5555 " ISC001" , # flake8-implicit-str-concat
56+ " S105" , # Possible hardcoded password
5657]
5758isort.lines-after-imports = 2
5859isort.no-lines-before = [" standard-library" , " local-folder" ]
You can’t perform that action at this time.
0 commit comments