Skip to content

Commit 3d767f5

Browse files
committed
Ruff deprecation noise.
1 parent ce16c77 commit 3d767f5

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

pyproject.toml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,9 @@ use_parentheses = true
5959

6060
[tool.ruff]
6161
line-length = 79
62+
extend-exclude = ["suite"]
63+
64+
[tool.ruff.lint]
6265
select = ["ALL"]
6366
ignore = [
6467
"A001", # It's fine to shadow builtins
@@ -104,19 +107,18 @@ ignore = [
104107
"SLF001", # Private usage within this package itself is fine
105108
"TD", # These TODO style rules are also silly
106109
]
107-
extend-exclude = ["suite"]
108110

109111
[tool.ruff.lint.flake8-pytest-style]
110112
mark-parentheses = false
111113

112-
[tool.ruff.flake8-quotes]
114+
[tool.ruff.lint.flake8-quotes]
113115
docstring-quotes = "double"
114116

115117
[tool.ruff.lint.isort]
116118
combine-as-imports = true
117119
from-first = true
118120

119-
[tool.ruff.per-file-ignores]
121+
[tool.ruff.lint.per-file-ignores]
120122
"noxfile.py" = ["ANN", "D100", "S101", "T201"]
121123
"docs/*" = ["ANN", "D", "INP001"]
122124
"sphinx_json_schema_spec/tests/*" = ["ANN", "D", "RUF012", "S", "PLR", "TRY"]

sphinx_json_schema_spec/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,7 @@ def setup(app):
3333
app (sphinx.application.Sphinx):
3434
3535
the Sphinx application context
36+
3637
"""
3738
app.add_config_value("cache_path", "_cache", "")
3839

@@ -67,6 +68,7 @@ def fetch_or_load(cache_path, url):
6768
url:
6869
6970
the URL of the document
71+
7072
"""
7173
version = metadata.version("sphinx-json-schema-spec")
7274
headers = {"User-Agent": f"sphinx-json-schema-spec v{version}"}
@@ -130,6 +132,7 @@ def keyword(name, raw_text, text, lineno, inliner):
130132
131133
a 2-tuple of nodes to insert into the document and an
132134
iterable of system messages, both possibly empty
135+
133136
"""
134137
hardcoded = HARDCODED.get(text)
135138
if hardcoded is not None:

0 commit comments

Comments
 (0)