Skip to content

Commit 05d5e2f

Browse files
committed
Pin the required versions of mypy and ruff
1 parent 7d4ca9c commit 05d5e2f

File tree

2 files changed

+6
-11
lines changed

2 files changed

+6
-11
lines changed

.github/workflows/lint.yml

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -28,15 +28,10 @@ jobs:
2828
- name: Install pip
2929
run: python -m pip install --upgrade pip
3030

31-
- name: Install known good Ruff
32-
run: python -m pip install ruff==0.1.9
33-
- name: Lint with known good Ruff
34-
run: ruff . --output-format github
31+
- name: Install Ruff
32+
run: python -m pip install "ruff==0.1.9"
3533

36-
- name: Install latest Ruff
37-
run: python -m pip install --upgrade ruff
38-
- name: Lint with latest Ruff
39-
continue-on-error: true
34+
- name: Lint with Ruff
4035
run: ruff . --output-format github
4136

4237
flake8:
@@ -83,7 +78,7 @@ jobs:
8378
- name: Install dependencies
8479
run: |
8580
python -m pip install --upgrade pip
86-
python -m pip install --upgrade "mypy>=0.990" docutils-stubs types-requests
81+
python -m pip install --upgrade "mypy==1.8.0" docutils-stubs types-requests
8782
- name: Type check with mypy
8883
run: mypy sphinx/
8984

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,8 @@ lint = [
8383
"flake8>=3.5.0",
8484
"flake8-simplify",
8585
"isort",
86-
"ruff",
87-
"mypy>=0.990",
86+
"ruff==0.1.9",
87+
"mypy==1.8.0",
8888
"sphinx-lint",
8989
"docutils-stubs",
9090
"types-requests",

0 commit comments

Comments
 (0)