File tree Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Expand file tree Collapse file tree 3 files changed +12
-8
lines changed Original file line number Diff line number Diff line change 4
4
hooks :
5
5
- id : trailing-whitespace
6
6
- repo : https://github.com/astral-sh/ruff-pre-commit
7
- rev : v0.3.7
7
+ rev : v0.4.1
8
8
hooks :
9
9
- id : ruff
10
10
args : [--fix, --exit-non-zero-on-fix]
Original file line number Diff line number Diff line change @@ -31,6 +31,7 @@ test = [
31
31
' coverage-rich' ,
32
32
' anyconfig[toml] >=0.14' , # coverage-rich uses anyconfig
33
33
' legacy-api-wrap' ,
34
+ ' defusedxml' , # sphinx[test] would also pull in cython
34
35
]
35
36
doc = [
36
37
' scanpydoc[typehints,theme]' ,
@@ -76,7 +77,7 @@ exempt-modules = []
76
77
length-sort = true
77
78
lines-after-imports = 2
78
79
known-first-party = [' scanpydoc' ]
79
- required-imports = [" from __future__ import annotations" ]
80
+ required-imports = [' from __future__ import annotations' ]
80
81
[tool .ruff .lint .pydocstyle ]
81
82
convention = ' numpy'
82
83
@@ -122,14 +123,14 @@ filterwarnings = [
122
123
]
123
124
124
125
[tool .coverage .run ]
125
- source_pkgs = [" scanpydoc" ]
126
+ source_pkgs = [' scanpydoc' ]
126
127
[tool .coverage .paths ]
127
- scanpydoc = [" src/scanpydoc" ]
128
+ scanpydoc = [' src/scanpydoc' ]
128
129
[tool .coverage .report ]
129
130
exclude_lines = [
130
- " no cov" ,
131
- " if __name__ == .__main__.:" ,
132
- " if TYPE_CHECKING:" ,
131
+ ' no cov' ,
132
+ ' if __name__ == .__main__.:' ,
133
+ ' if TYPE_CHECKING:' ,
133
134
]
134
135
135
136
[build-system ]
Original file line number Diff line number Diff line change 11
11
12
12
from sphinx import addnodes
13
13
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
+ )
15
18
16
19
from . import metadata , _setup_sig
17
20
You can’t perform that action at this time.
0 commit comments