Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
38 changes: 38 additions & 0 deletions mise.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,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"
'''