mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Update Ruff to 0.1.11
This commit is contained in:
parent
bc9479b241
commit
3d98eeea79
2
.github/workflows/lint.yml
vendored
2
.github/workflows/lint.yml
vendored
@ -29,7 +29,7 @@ jobs:
|
||||
run: python -m pip install --upgrade pip
|
||||
|
||||
- name: Install Ruff
|
||||
run: python -m pip install "ruff==0.1.9"
|
||||
run: python -m pip install "ruff==0.1.11"
|
||||
|
||||
- name: Lint with Ruff
|
||||
run: ruff . --output-format github
|
||||
|
@ -83,7 +83,7 @@ docs = [
|
||||
lint = [
|
||||
"flake8>=3.5.0",
|
||||
"flake8-simplify",
|
||||
"ruff==0.1.9",
|
||||
"ruff==0.1.11",
|
||||
"mypy==1.8.0",
|
||||
"sphinx-lint",
|
||||
"docutils-stubs",
|
||||
|
@ -761,7 +761,7 @@ def test_isattributedescriptor():
|
||||
assert inspect.isattributedescriptor(Descriptor) is False # custom descriptor class
|
||||
assert inspect.isattributedescriptor(str.join) is False # MethodDescriptorType
|
||||
assert inspect.isattributedescriptor(object.__init__) is False # WrapperDescriptorType
|
||||
assert inspect.isattributedescriptor(dict.__dict__['fromkeys']) is False # ClassMethodDescriptorType # NoQA: F821 # https://github.com/astral-sh/ruff/issues/9307
|
||||
assert inspect.isattributedescriptor(dict.__dict__['fromkeys']) is False # ClassMethodDescriptorType
|
||||
assert inspect.isattributedescriptor(types.FrameType.f_locals) is True # GetSetDescriptorType
|
||||
assert inspect.isattributedescriptor(datetime.timedelta.days) is True # MemberDescriptorType
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user