-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.mise.toml
48 lines (39 loc) · 1013 Bytes
/
.mise.toml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
[tools]
poetry = { version = 'latest', pyproject = 'pyproject.toml' }
python = { version= '3.11'}
awscli = '2.22.7'
[tasks.format]
description = "Run all formatters"
run = "poetry run ruff format ."
[tasks.ruff-check]
description = "Run ruff checker"
run = "poetry run ruff check --fix ."
[tasks.lint]
description = "Run all linters"
depends = ['format', 'ruff-check']
[tasks.test]
description = "Run all tests"
run = "docker compose --profile test run --rm -it dev pytest ."
[tasks."ci:test"]
description = "Run all tests"
run = "docker compose --profile test run --rm dev pytest ."
depends = ["build"]
[tasks.ci]
description = "Runs everything for CI"
depends = ['lint', 'ci:test']
[tasks.install]
description = "Sets up dev dependencies"
run = [
"mise install",
"poetry install",
"pre-commit install",
]
depends = ["build"]
[tasks.start]
description = "Run a local server"
run = [
"docker compose up --watch "
]
[tasks.build]
description = "Build the docker image"
run = "docker compose build"