Skip to content

Commit fe4d9df

Browse files
committed
Make linter happy.
1 parent b61f942 commit fe4d9df

File tree

1 file changed

+37
-37
lines changed

1 file changed

+37
-37
lines changed

numpydoc/tests/hooks/test_validate_hook.py

Lines changed: 37 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -27,41 +27,41 @@ def test_validate_hook(example_module, config, capsys):
2727

2828
expected = inspect.cleandoc(
2929
f"""
30-
{str(example_module)}:4: ES01 No extended summary found
30+
{example_module!s}:4: ES01 No extended summary found
3131
32-
{str(example_module)}:4: PR01 Parameters {{'name'}} not documented
32+
{example_module!s}:4: PR01 Parameters {{'name'}} not documented
3333
34-
{str(example_module)}:4: SA01 See Also section not found
34+
{example_module!s}:4: SA01 See Also section not found
3535
36-
{str(example_module)}:4: EX01 No examples section found
36+
{example_module!s}:4: EX01 No examples section found
3737
38-
{str(example_module)}:8: ES01 No extended summary found
38+
{example_module!s}:8: ES01 No extended summary found
3939
40-
{str(example_module)}:8: SA01 See Also section not found
40+
{example_module!s}:8: SA01 See Also section not found
4141
42-
{str(example_module)}:8: EX01 No examples section found
42+
{example_module!s}:8: EX01 No examples section found
4343
44-
{str(example_module)}:11: GL08 The object does not have a docstring
44+
{example_module!s}:11: GL08 The object does not have a docstring
4545
46-
{str(example_module)}:17: ES01 No extended summary found
46+
{example_module!s}:17: ES01 No extended summary found
4747
48-
{str(example_module)}:17: PR01 Parameters {{'**kwargs'}} not documented
48+
{example_module!s}:17: PR01 Parameters {{'**kwargs'}} not documented
4949
50-
{str(example_module)}:17: PR07 Parameter "*args" has no description
50+
{example_module!s}:17: PR07 Parameter "*args" has no description
5151
52-
{str(example_module)}:17: SA01 See Also section not found
52+
{example_module!s}:17: SA01 See Also section not found
5353
54-
{str(example_module)}:17: EX01 No examples section found
54+
{example_module!s}:17: EX01 No examples section found
5555
56-
{str(example_module)}:26: SS05 Summary must start with infinitive verb, not third person (e.g. use "Generate" instead of "Generates")
56+
{example_module!s}:26: SS05 Summary must start with infinitive verb, not third person (e.g. use "Generate" instead of "Generates")
5757
58-
{str(example_module)}:26: ES01 No extended summary found
58+
{example_module!s}:26: ES01 No extended summary found
5959
60-
{str(example_module)}:26: SA01 See Also section not found
60+
{example_module!s}:26: SA01 See Also section not found
6161
62-
{str(example_module)}:26: EX01 No examples section found
62+
{example_module!s}:26: EX01 No examples section found
6363
64-
{str(example_module)}:30: GL08 The object does not have a docstring
64+
{example_module!s}:30: GL08 The object does not have a docstring
6565
"""
6666
)
6767

@@ -78,17 +78,17 @@ def test_validate_hook_with_ignore(example_module, capsys):
7878

7979
expected = inspect.cleandoc(
8080
f"""
81-
{str(example_module)}:4: PR01 Parameters {{'name'}} not documented
81+
{example_module!s}:4: PR01 Parameters {{'name'}} not documented
8282
83-
{str(example_module)}:11: GL08 The object does not have a docstring
83+
{example_module!s}:11: GL08 The object does not have a docstring
8484
85-
{str(example_module)}:17: PR01 Parameters {{'**kwargs'}} not documented
85+
{example_module!s}:17: PR01 Parameters {{'**kwargs'}} not documented
8686
87-
{str(example_module)}:17: PR07 Parameter "*args" has no description
87+
{example_module!s}:17: PR07 Parameter "*args" has no description
8888
89-
{str(example_module)}:26: SS05 Summary must start with infinitive verb, not third person (e.g. use "Generate" instead of "Generates")
89+
{example_module!s}:26: SS05 Summary must start with infinitive verb, not third person (e.g. use "Generate" instead of "Generates")
9090
91-
{str(example_module)}:30: GL08 The object does not have a docstring
91+
{example_module!s}:30: GL08 The object does not have a docstring
9292
"""
9393
)
9494

@@ -125,13 +125,13 @@ def test_validate_hook_with_toml_config(example_module, tmp_path, capsys):
125125

126126
expected = inspect.cleandoc(
127127
f"""
128-
{str(example_module)}:4: PR01 Parameters {{'name'}} not documented
128+
{example_module!s}:4: PR01 Parameters {{'name'}} not documented
129129
130-
{str(example_module)}:17: PR01 Parameters {{'**kwargs'}} not documented
130+
{example_module!s}:17: PR01 Parameters {{'**kwargs'}} not documented
131131
132-
{str(example_module)}:17: PR07 Parameter "*args" has no description
132+
{example_module!s}:17: PR07 Parameter "*args" has no description
133133
134-
{str(example_module)}:30: GL08 The object does not have a docstring
134+
{example_module!s}:30: GL08 The object does not have a docstring
135135
"""
136136
)
137137

@@ -160,13 +160,13 @@ def test_validate_hook_with_setup_cfg(example_module, tmp_path, capsys):
160160

161161
expected = inspect.cleandoc(
162162
f"""
163-
{str(example_module)}:4: PR01 Parameters {{'name'}} not documented
163+
{example_module!s}:4: PR01 Parameters {{'name'}} not documented
164164
165-
{str(example_module)}:17: PR01 Parameters {{'**kwargs'}} not documented
165+
{example_module!s}:17: PR01 Parameters {{'**kwargs'}} not documented
166166
167-
{str(example_module)}:17: PR07 Parameter "*args" has no description
167+
{example_module!s}:17: PR07 Parameter "*args" has no description
168168
169-
{str(example_module)}:30: GL08 The object does not have a docstring
169+
{example_module!s}:30: GL08 The object does not have a docstring
170170
"""
171171
)
172172

@@ -205,9 +205,9 @@ def test_validate_hook_exclude_option_pyproject(example_module, tmp_path, capsys
205205

206206
expected = inspect.cleandoc(
207207
f"""
208-
{str(example_module)}:4: PR01 Parameters {{'name'}} not documented
208+
{example_module!s}:4: PR01 Parameters {{'name'}} not documented
209209
210-
{str(example_module)}:30: GL08 The object does not have a docstring
210+
{example_module!s}:30: GL08 The object does not have a docstring
211211
"""
212212
)
213213

@@ -236,11 +236,11 @@ def test_validate_hook_exclude_option_setup_cfg(example_module, tmp_path, capsys
236236

237237
expected = inspect.cleandoc(
238238
f"""
239-
{str(example_module)}:4: PR01 Parameters {{'name'}} not documented
239+
{example_module!s}:4: PR01 Parameters {{'name'}} not documented
240240
241-
{str(example_module)}:17: PR01 Parameters {{'**kwargs'}} not documented
241+
{example_module!s}:17: PR01 Parameters {{'**kwargs'}} not documented
242242
243-
{str(example_module)}:17: PR07 Parameter "*args" has no description
243+
{example_module!s}:17: PR07 Parameter "*args" has no description
244244
"""
245245
)
246246

0 commit comments

Comments
 (0)