Skip to content

Commit a7561a0

Browse files
committed
Add extra opt dependency group for type checking
1 parent c6a2575 commit a7561a0

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

.github/workflows/ci.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -35,10 +35,7 @@ jobs:
3535
- name: Install dependencies
3636
run: |
3737
python -m pip install --upgrade pip
38-
python -m pip install .
39-
python -m pip install mypy
40-
# vobject does fancy dynamic stuff that is hard to type-check
41-
python -m pip install types-atomicwrites # types-vobject
38+
python -m pip install .[typing]
4239
- name: Run the type checker
4340
run: mypy
4441

pyproject.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,12 @@ doc = [
3737
'sphinx-autoapi',
3838
'sphinx-autodoc-typehints',
3939
]
40+
typing = [
41+
"mypy",
42+
"types-atomicwrites",
43+
# vobject does fancy dynamic stuff that is hard to type-check
44+
#"types-vobject",
45+
]
4046

4147
[project.urls]
4248
homepage = "https://github.com/lucc/khard"

0 commit comments

Comments
 (0)