[CI] update mypy CI job to use local config (#12013)

Co-authored-by: daniel.eades <daniel.eades@seebyte.com>
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
danieleades 2024-02-26 11:15:17 +00:00 committed by GitHub
parent adde256893
commit d6f38ade54
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 2 deletions

View File

@ -62,9 +62,9 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade "mypy==1.8.0" docutils-stubs types-requests
python -m pip install ".[lint,test]"
- name: Type check with mypy
run: mypy sphinx/
run: mypy
docs-lint:
runs-on: ubuntu-latest

View File

@ -130,6 +130,7 @@ exclude = [
]
[tool.mypy]
files = ["sphinx"]
check_untyped_defs = true
disallow_incomplete_defs = true
follow_imports = "skip"