[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:
danieleades
2024-03-14 09:42:55 +00:00
committed by GitHub
parent f3087e8405
commit d74a450213
5 changed files with 8 additions and 4 deletions

View File

@@ -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

View File

@@ -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]

View File

@@ -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",

View File

@@ -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

View File

@@ -62,6 +62,7 @@ async def coroutinefunc():
async def asyncgenerator():
yield
partial_func = functools.partial(func)
partial_coroutinefunc = functools.partial(coroutinefunc)