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 1
1
default : install lint build test
2
2
3
- # down all app containers
4
3
down :
5
4
docker compose down --remove-orphans
6
5
7
- # run shell in container
8
6
sh :
9
7
docker compose run --service-ports application bash
10
8
11
- # run pytest with arguments
12
9
test * args : down && down
13
10
docker compose run application sh -c " sleep 1 && uv run alembic downgrade base && uv run alembic upgrade head && uv run pytest {{ args }} "
14
11
15
- # run api
16
12
run :
17
13
docker compose run --service-ports application sh -c " sleep 1 && uv run alembic upgrade head && uv run python -m app"
18
14
19
- # create alembic migration with arguments
20
15
migration * args : && down
21
16
docker compose run application sh -c " sleep 1 && uv run alembic upgrade head && uv run alembic revision --autogenerate {{ args }} "
22
17
23
- # build app docker container
24
18
build :
25
19
docker compose build application
26
20
27
- # install local dependencies
28
21
install :
29
22
uv lock --upgrade
30
23
uv sync --all-extras --no-install-project --frozen
31
24
32
- # run linters
33
25
lint :
34
26
uv run ruff format .
35
27
uv run ruff check . --fix
Original file line number Diff line number Diff line change @@ -53,6 +53,7 @@ ignore = [
53
53
" D213" , # "multi-line-summary-second-line" conflicting with D212
54
54
" COM812" , # flake8-commas "Trailing comma missing"
55
55
" ISC001" , # flake8-implicit-str-concat
56
+ " S105" , # Possible hardcoded password
56
57
]
57
58
isort.lines-after-imports = 2
58
59
isort.no-lines-before = [" standard-library" , " local-folder" ]
You can’t perform that action at this time.
0 commit comments