-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTaskfile-python.yml
More file actions
59 lines (50 loc) · 1.87 KB
/
Taskfile-python.yml
File metadata and controls
59 lines (50 loc) · 1.87 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
# Python-specific tasks for OpenCode Workflow Kit
# Included by main Taskfile.yml
version: '3'
tasks:
install-dev-deps:
desc: Install Python development dependencies
cmds:
- cd packages/opencode_config && uv add --dev task==3.33.0
- echo "✅ Task installed successfully"
# Python-specific version management
version-python:
desc: Interactive Python version management
cmds:
- echo "Python package version management:"
- echo "1) Patch release"
- echo "2) Minor release"
- echo "3) Major release"
- |
read -p "Choose [1/2/3]: " choice
cd packages/opencode_config && uv run bump2version $choice --config-file pyproject.toml
# Python testing
test-python-coverage:
desc: Run Python tests with coverage
cmds:
- cd packages/opencode_config && uv run pytest --cov=opencode_config --cov-report=html --cov-report=term-missing
test-python-integration-full:
desc: Run full Python integration test suite
cmds:
- cd packages/opencode_config && uv run pytest tests/integration/ -v
# Python development
dev-python-watch:
desc: Start Python development with watch mode
cmds:
- cd packages/opencode_config && uv run python -m opencode_config.cli --dev
# Python documentation
docs-python-serve:
desc: Serve Python documentation locally
cmds:
- cd packages/opencode_config && uv run sphinx-autobuild docs/ docs/_build/html && python -m http.server 8000 --directory docs/_build/html
# Python package management
package-python:
desc: Package Python for distribution
cmds:
- cd packages/opencode_config && uv run python -m build
# Python validation
validate-python:
desc: Validate Python configuration
cmds:
- echo "🔍 Validating Python configuration..."
- cd packages/opencode_config && uv run python scripts/validate-config.py