From d6f38ade544a88dadfeb7aa60e91b75c9200b2ca Mon Sep 17 00:00:00 2001 From: danieleades <33452915+danieleades@users.noreply.github.com> Date: Mon, 26 Feb 2024 11:15:17 +0000 Subject: [PATCH] [CI] update mypy CI job to use local config (#12013) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: daniel.eades Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com> --- .github/workflows/lint.yml | 4 ++-- pyproject.toml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.github/workflows/lint.yml b/.github/workflows/lint.yml index dfc0cd3d72e..16b0e64a993 100644 --- a/.github/workflows/lint.yml +++ b/.github/workflows/lint.yml @@ -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 diff --git a/pyproject.toml b/pyproject.toml index 1abd124f067..9e3f4df911b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -130,6 +130,7 @@ exclude = [ ] [tool.mypy] +files = ["sphinx"] check_untyped_defs = true disallow_incomplete_defs = true follow_imports = "skip"