-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.mise.toml
More file actions
75 lines (63 loc) · 1.76 KB
/
.mise.toml
File metadata and controls
75 lines (63 loc) · 1.76 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
# mise configuration for Deepnote Toolkit development environment
# Install mise: https://mise.jdx.dev/getting-started.html
# Then run: mise install
[tools]
python = "3.13"
java = "temurin-17"
poetry = "2.2.0"
[tasks.setup]
description = "Set up development environment"
run = """
poetry install --with dev --all-extras
poetry self add 'poethepoet[poetry_plugin]'
poetry poe setup-hooks
echo "✅ Development environment ready!"
"""
[tasks.test]
description = "Run unit tests (without coverage by default)"
run = """
#!/bin/bash
# Pass all arguments to nox, including --coverage flag if provided
poetry run nox -s unit -- "$@"
"""
[tasks."test:coverage"]
description = "Run unit tests with coverage"
env = { COVERAGE = "true" }
run = "poetry run nox -s unit"
[tasks."test:quick"]
description = "Run tests quickly without nox/coverage overhead"
run = """
#!/bin/bash
# Usage: mise run test:quick tests/unit/test_file.py
# Usage: mise run test:quick tests/unit/test_file.py::TestClass::test_method -v
poetry run pytest "$@"
"""
[tasks.test-docker]
description = "Run docker-based tests with coverage"
run = "./bin/test-local"
[tasks.lint]
description = "Run linters"
run = """
poetry run black .
poetry run flake8 .
poetry run isort .
"""
[tasks.build]
description = "Build Python wheel package"
run = """
#!/bin/bash
set -e
# Ensure dynamic versioning plugin is installed
poetry self add 'poetry-dynamic-versioning[plugin]>=1.4.0' 2>/dev/null || true
# Build the wheel
echo "Building wheel with Poetry..."
poetry build --format wheel
# Get version and wheel info
VERSION=$(poetry version --short)
WHEEL=$(ls -t dist/*.whl | head -n1)
WHEEL_NAME=$(basename "$WHEEL")
WHEEL_PATH=$(realpath "$WHEEL")
echo "✓ Built wheel: $WHEEL_NAME"
echo "✓ Version: $VERSION"
echo "✓ Path: $WHEEL_PATH"
"""