Skip to content

Commit e6765d9

Browse files
committed
Divided dependencies in groups. Install only production dependencies by default. Fixes #50
1 parent 46a7c6b commit e6765d9

File tree

4 files changed

+33
-13
lines changed

4 files changed

+33
-13
lines changed

Diff for: .github/workflows/python-tests.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
run: |
2727
pip install uv
2828
uv venv --python "${{ matrix.python-version }}"
29+
uv sync --group tests
2930
- name: Run tests with coverage
3031
run: |
3132
uv run --python "${{ matrix.python-version }}" pytest --cov=wcgw --cov-report=xml --cov-report=term-missing

Diff for: .github/workflows/python-types.yml

+1
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,7 @@ jobs:
2626
run: |
2727
pip install uv
2828
uv venv --python "${{ matrix.python-version }}"
29+
uv sync --group types
2930
- name: Run type checks
3031
run: |
3132
uv run mypy --strict src/wcgw

Diff for: pyproject.toml

+14-6
Original file line numberDiff line numberDiff line change
@@ -50,18 +50,26 @@ wcgw_relay = "wcgw.relay.serve:run"
5050
wcgw_mcp = "wcgw:mcp_server"
5151

5252
[tool.uv]
53-
dev-dependencies = [
53+
default-groups = []
54+
55+
[dependency-groups]
56+
types = [
5457
"mypy>=1.11.2",
5558
"types-toml>=0.10.8.20240310",
59+
"types-pexpect>=4.9.0.20241208",
60+
"types-psutil>=7.0.0.20250218",
61+
"line-profiler>=4.2.0",
62+
]
63+
tests = [
64+
"pytest>=8.0.0",
65+
"pytest-cov>=4.1.0",
66+
"pytest-asyncio>=0.25.3",
67+
]
68+
dev = [
5669
"autoflake",
5770
"ipython>=8.12.3",
5871
"gunicorn>=23.0.0",
59-
"pytest>=8.0.0",
60-
"pytest-cov>=4.1.0",
6172
"line-profiler>=4.2.0",
62-
"pytest-asyncio>=0.25.3",
63-
"types-pexpect>=4.9.0.20241208",
64-
"types-psutil>=7.0.0.20250218",
6573
]
6674

6775
[tool.pytest.ini_options]

Diff for: uv.lock

+17-7
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)