-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathmise.toml
More file actions
52 lines (40 loc) · 1.33 KB
/
mise.toml
File metadata and controls
52 lines (40 loc) · 1.33 KB
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
49
50
51
52
[env]
DC_MSSQL_PORT = '12001'
DC_POSTGRES_PORT = '12000'
PROJECT_SLUG = '{{ config_root | basename | slugify }}'
_.python.venv.path = '{% if env.UV_PROJECT_ENVIRONMENT %}{{ env.UV_PROJECT_ENVIRONMENT }}{% else %}.venv{% endif %}'
_.python.venv.create = true
[tools]
python = ['3.10', '3.11', '3.12', '3.13']
[task_config]
includes = [
'tasks',
]
################ TASKS #################
[tasks.pytest-cov]
description = 'Full pytest run with html coverage report'
# .coveragerc sets directory to ./tmp/coverage-html
run = 'pytest --cov --cov-report=html --no-cov-on-fail'
[tasks.upgrade-deps]
description = 'Upgrade uv and pre-commit dependencies'
run = [
'uv sync --upgrade',
'pre-commit autoupdate',
]
[tasks.mssql-docker-check]
description = 'Check the mssql service from inside the docker container'
run = '''
docker compose exec mssql /opt/mssql-tools18/bin/sqlcmd -C -S 127.0.0.1 -U sa -P Docker-sa-password -Q "select 'connected' as status"
'''
[tasks.mssql-host-check]
description = 'Check the mssql service from our host'
# Task odbc-driver-install installs sqlcmd
run = '''
/opt/mssql-tools18/bin/sqlcmd -C -S 127.0.0.1 -U sa -P Docker-sa-password -Q "select 'connected' as status"
'''
[tasks.publish-test]
description = 'Publish to test.pypi.org'
run = [
'hatch build --clean',
'hatch publish -r test tmp/dist/',
]