Pin the required versions of mypy and ruff

This commit is contained in:
Adam Turner 2023-12-26 04:24:52 +00:00
parent 7d4ca9cb3e
commit 05d5e2f360
2 changed files with 6 additions and 11 deletions

View File

@ -28,15 +28,10 @@ jobs:
- name: Install pip
run: python -m pip install --upgrade pip
- name: Install known good Ruff
run: python -m pip install ruff==0.1.9
- name: Lint with known good Ruff
run: ruff . --output-format github
- name: Install Ruff
run: python -m pip install "ruff==0.1.9"
- name: Install latest Ruff
run: python -m pip install --upgrade ruff
- name: Lint with latest Ruff
continue-on-error: true
- name: Lint with Ruff
run: ruff . --output-format github
flake8:
@ -83,7 +78,7 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install --upgrade "mypy>=0.990" docutils-stubs types-requests
python -m pip install --upgrade "mypy==1.8.0" docutils-stubs types-requests
- name: Type check with mypy
run: mypy sphinx/

View File

@ -83,8 +83,8 @@ lint = [
"flake8>=3.5.0",
"flake8-simplify",
"isort",
"ruff",
"mypy>=0.990",
"ruff==0.1.9",
"mypy==1.8.0",
"sphinx-lint",
"docutils-stubs",
"types-requests",