mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
[deps] bump ruff version (#12065)
Co-authored-by: daniel.eades <daniel.eades@seebyte.com> Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This commit is contained in:
6
.github/workflows/lint.yml
vendored
6
.github/workflows/lint.yml
vendored
@@ -29,10 +29,12 @@ jobs:
|
||||
run: python -m pip install --upgrade pip
|
||||
|
||||
- name: Install Ruff
|
||||
run: python -m pip install "ruff==0.2.0"
|
||||
run: |
|
||||
ruff_version=$(awk -F'[="]' '/\[project\.optional-dependencies\]/ {p=1} /ruff/ {if (p) print $4}' pyproject.toml)
|
||||
python -m pip install "ruff==${ruff_version}"
|
||||
|
||||
- name: Lint with Ruff
|
||||
run: ruff . --output-format github
|
||||
run: ruff check . --output-format github
|
||||
|
||||
flake8:
|
||||
runs-on: ubuntu-latest
|
||||
|
@@ -1,6 +1,5 @@
|
||||
target-version = "py39" # Pin Ruff to Python 3.9
|
||||
line-length = 95
|
||||
required-version = "0.2.0"
|
||||
output-format = "full"
|
||||
|
||||
[lint]
|
||||
|
@@ -82,7 +82,7 @@ docs = [
|
||||
]
|
||||
lint = [
|
||||
"flake8>=3.5.0",
|
||||
"ruff==0.2.0",
|
||||
"ruff==0.3.2",
|
||||
"mypy==1.9.0",
|
||||
"sphinx-lint",
|
||||
"docutils-stubs",
|
||||
|
@@ -235,6 +235,7 @@ def test_format_signature(app):
|
||||
|
||||
some docstring for __init__.
|
||||
"""
|
||||
|
||||
class G2(F2):
|
||||
pass
|
||||
|
||||
@@ -345,6 +346,7 @@ def test_get_doc(app):
|
||||
# standard function, diverse docstring styles...
|
||||
def f():
|
||||
"""Docstring"""
|
||||
|
||||
def g():
|
||||
"""
|
||||
Docstring
|
||||
|
@@ -62,6 +62,7 @@ async def coroutinefunc():
|
||||
async def asyncgenerator():
|
||||
yield
|
||||
|
||||
|
||||
partial_func = functools.partial(func)
|
||||
partial_coroutinefunc = functools.partial(coroutinefunc)
|
||||
|
||||
|
Reference in New Issue
Block a user