mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Pin the required versions of mypy and ruff
This commit is contained in:
parent
7d4ca9cb3e
commit
05d5e2f360
13
.github/workflows/lint.yml
vendored
13
.github/workflows/lint.yml
vendored
@ -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/
|
||||
|
||||
|
@ -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",
|
||||
|
Loading…
Reference in New Issue
Block a user