Update Ruff to 0.1.11

This commit is contained in:
Adam Turner 2024-01-04 02:43:52 +00:00
parent bc9479b241
commit 3d98eeea79
3 changed files with 3 additions and 3 deletions

View File

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

View File

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

View File

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