Skip to content

Commit 5f15bed

Browse files
[pre-commit.ci] pre-commit autoupdate (#147)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Philipp A <[email protected]>
1 parent add6e9f commit 5f15bed

File tree

3 files changed

+12
-8
lines changed

3 files changed

+12
-8
lines changed

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ repos:
44
hooks:
55
- id: trailing-whitespace
66
- repo: https://github.com/astral-sh/ruff-pre-commit
7-
rev: v0.3.7
7+
rev: v0.4.1
88
hooks:
99
- id: ruff
1010
args: [--fix, --exit-non-zero-on-fix]

pyproject.toml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ test = [
3131
'coverage-rich',
3232
'anyconfig[toml] >=0.14', # coverage-rich uses anyconfig
3333
'legacy-api-wrap',
34+
'defusedxml', # sphinx[test] would also pull in cython
3435
]
3536
doc = [
3637
'scanpydoc[typehints,theme]',
@@ -76,7 +77,7 @@ exempt-modules = []
7677
length-sort = true
7778
lines-after-imports = 2
7879
known-first-party = ['scanpydoc']
79-
required-imports = ["from __future__ import annotations"]
80+
required-imports = ['from __future__ import annotations']
8081
[tool.ruff.lint.pydocstyle]
8182
convention = 'numpy'
8283

@@ -122,14 +123,14 @@ filterwarnings = [
122123
]
123124

124125
[tool.coverage.run]
125-
source_pkgs = ["scanpydoc"]
126+
source_pkgs = ['scanpydoc']
126127
[tool.coverage.paths]
127-
scanpydoc = ["src/scanpydoc"]
128+
scanpydoc = ['src/scanpydoc']
128129
[tool.coverage.report]
129130
exclude_lines = [
130-
"no cov",
131-
"if __name__ == .__main__.:",
132-
"if TYPE_CHECKING:",
131+
'no cov',
132+
'if __name__ == .__main__.:',
133+
'if TYPE_CHECKING:',
133134
]
134135

135136
[build-system]

src/scanpydoc/definition_list_typed_field.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,10 @@
1111

1212
from sphinx import addnodes
1313
from docutils import nodes
14-
from sphinx.domains.python import PyObject, PyTypedField
14+
from sphinx.domains.python import ( # type: ignore[attr-defined,unused-ignore]
15+
PyObject,
16+
PyTypedField,
17+
)
1518

1619
from . import metadata, _setup_sig
1720

0 commit comments

Comments
 (0)