mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Bump Ruff to 0.1.14 and remove flake8-simplify (#11906)
Authored-by: Daniel Eades <danieleades@hotmail.com> Co-authored-by: Daniel Eades <danieleades@hotmail.com>
This commit is contained in:
parent
4f08cdff13
commit
fa29004951
4
.github/workflows/lint.yml
vendored
4
.github/workflows/lint.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
|||||||
run: python -m pip install --upgrade pip
|
run: python -m pip install --upgrade pip
|
||||||
|
|
||||||
- name: Install Ruff
|
- name: Install Ruff
|
||||||
run: python -m pip install "ruff==0.1.13"
|
run: python -m pip install "ruff==0.1.14"
|
||||||
|
|
||||||
- name: Lint with Ruff
|
- name: Lint with Ruff
|
||||||
run: ruff . --output-format github
|
run: ruff . --output-format github
|
||||||
@ -46,7 +46,7 @@ jobs:
|
|||||||
- name: Install dependencies
|
- name: Install dependencies
|
||||||
run: |
|
run: |
|
||||||
python -m pip install --upgrade pip
|
python -m pip install --upgrade pip
|
||||||
python -m pip install --upgrade "flake8>=3.5.0" "flake8-simplify"
|
python -m pip install --upgrade "flake8>=3.5.0"
|
||||||
- name: Lint with flake8
|
- name: Lint with flake8
|
||||||
run: flake8 .
|
run: flake8 .
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
target-version = "py39" # Pin Ruff to Python 3.9
|
target-version = "py39" # Pin Ruff to Python 3.9
|
||||||
line-length = 95
|
line-length = 95
|
||||||
required-version = "0.1.13"
|
required-version = "0.1.14"
|
||||||
show-source = true
|
show-source = true
|
||||||
|
|
||||||
[lint]
|
[lint]
|
||||||
|
2
Makefile
2
Makefile
@ -41,7 +41,7 @@ clean: clean
|
|||||||
|
|
||||||
.PHONY: style-check
|
.PHONY: style-check
|
||||||
style-check:
|
style-check:
|
||||||
@flake8
|
@ruff
|
||||||
|
|
||||||
.PHONY: type-check
|
.PHONY: type-check
|
||||||
type-check:
|
type-check:
|
||||||
|
@ -82,8 +82,7 @@ docs = [
|
|||||||
]
|
]
|
||||||
lint = [
|
lint = [
|
||||||
"flake8>=3.5.0",
|
"flake8>=3.5.0",
|
||||||
"flake8-simplify",
|
"ruff==0.1.14",
|
||||||
"ruff==0.1.13",
|
|
||||||
"mypy==1.8.0",
|
"mypy==1.8.0",
|
||||||
"sphinx-lint",
|
"sphinx-lint",
|
||||||
"docutils-stubs",
|
"docutils-stubs",
|
||||||
|
Loading…
Reference in New Issue
Block a user