Skip to content

Commit d6f38ad

Browse files
danieleadesdaniel.eadespicnixz
authored
[CI] update mypy CI job to use local config (#12013)
Co-authored-by: daniel.eades <[email protected]> Co-authored-by: Bénédikt Tran <[email protected]>
1 parent adde256 commit d6f38ad

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/lint.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,9 +62,9 @@ jobs:
6262
- name: Install dependencies
6363
run: |
6464
python -m pip install --upgrade pip
65-
python -m pip install --upgrade "mypy==1.8.0" docutils-stubs types-requests
65+
python -m pip install ".[lint,test]"
6666
- name: Type check with mypy
67-
run: mypy sphinx/
67+
run: mypy
6868

6969
docs-lint:
7070
runs-on: ubuntu-latest

pyproject.toml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,7 @@ exclude = [
130130
]
131131

132132
[tool.mypy]
133+
files = ["sphinx"]
133134
check_untyped_defs = true
134135
disallow_incomplete_defs = true
135136
follow_imports = "skip"

0 commit comments

Comments
 (0)