-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmise.toml
More file actions
38 lines (30 loc) · 891 Bytes
/
mise.toml
File metadata and controls
38 lines (30 loc) · 891 Bytes
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
min_version = "2024.9.5"
[env]
# Use the project name derived from the current directory
PROJECT_NAME = "{{ config_root | basename }}"
# Automatic virtualenv activation
_.python.venv = { path = ".venv", create = true }
[tools]
python = "{{ get_env(name='PYTHON_VERSION', default='3.14') }}"
uv = "latest"
ruff = "latest"
ty = "latest"
[tasks.install]
description = "Install dependencies and install git-privacy in venv in editable mode (necessary for tests)"
alias = "i"
run = "uv pip install -r requirements.txt -r requirements-dev.txt -e ."
[tasks.lsp]
description = "Start the ty language server"
run = "ty server"
[tasks.test]
description = "Run tests"
run = "pytest tests/"
[tasks.lint]
description = "Lint the code"
run = "ruff check ."
[tasks.info]
description = "Print project information"
run = '''
echo "Project: $PROJECT_NAME"
echo "Virtual Environment: $VIRTUAL_ENV"
'''