Skip to content

Commit

Permalink
Bump Ruff to 0.8.0
Browse files Browse the repository at this point in the history
  • Loading branch information
AA-Turner committed Nov 22, 2024
1 parent f5d4ebd commit 0e15ad7
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .ruff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ select = [
[lint.per-file-ignores]
"doc/*" = [
"ANN", # documentation doesn't need annotations
"TCH001", # documentation doesn't need type-checking blocks
"TC001", # documentation doesn't need type-checking blocks
]
"doc/conf.py" = ["INP001", "W605"]
"doc/development/tutorials/examples/*" = ["INP001"]
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ docs = [
]
lint = [
"flake8>=6.0",
"ruff==0.7.4",
"ruff==0.8.0",
"mypy==1.13.0",
"sphinx-lint>=0.9",
"types-colorama==0.4.15.20240311",
Expand Down
2 changes: 1 addition & 1 deletion sphinx/_cli/util/colour.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import os
import sys
from collections.abc import Callable # NoQA: TCH003
from collections.abc import Callable # NoQA: TC003

if sys.platform == 'win32':
import colorama
Expand Down
4 changes: 2 additions & 2 deletions sphinx/directives/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,11 +9,11 @@
from docutils.parsers.rst import directives, roles

from sphinx import addnodes
from sphinx.addnodes import desc_signature # NoQA: TCH001
from sphinx.addnodes import desc_signature # NoQA: TC001
from sphinx.util import docutils
from sphinx.util.docfields import DocFieldTransformer, Field, TypedField
from sphinx.util.docutils import SphinxDirective
from sphinx.util.typing import ExtensionMetadata, OptionSpec # NoQA: TCH001
from sphinx.util.typing import ExtensionMetadata, OptionSpec # NoQA: TC001

if TYPE_CHECKING:
from docutils.nodes import Node
Expand Down
6 changes: 3 additions & 3 deletions sphinx/util/docutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

import os
import re
from collections.abc import Sequence # NoQA: TCH003
from collections.abc import Sequence # NoQA: TC003
from contextlib import contextmanager
from copy import copy
from pathlib import Path
Expand All @@ -14,7 +14,7 @@
from docutils import nodes
from docutils.io import FileOutput
from docutils.parsers.rst import Directive, directives, roles
from docutils.parsers.rst.states import Inliner # NoQA: TCH002
from docutils.parsers.rst.states import Inliner # NoQA: TC002
from docutils.statemachine import State, StateMachine, StringList
from docutils.utils import Reporter, unescape

Expand All @@ -29,7 +29,7 @@
)

if TYPE_CHECKING:
from collections.abc import Callable, Iterator # NoQA: TCH003
from collections.abc import Callable, Iterator # NoQA: TC003
from types import ModuleType, TracebackType

from docutils.frontend import Values
Expand Down

0 comments on commit 0e15ad7

Please sign in to comment.