Skip to content

Commit 93ee6bd

Browse files
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
1 parent 7b68df3 commit 93ee6bd

File tree

2 files changed

+16
-11
lines changed

2 files changed

+16
-11
lines changed

doc/en/reference/plugin_list.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4225,7 +4225,7 @@ This list contains 942 plugins.
42254225
*status*: N/A,
42264226
*requires*: pytest (>=5.4)
42274227

4228-
Used to lock object during testing. Essentially changing assertions from being hard coded to asserting that nothing changed
4228+
Used to lock object during testing. Essentially changing assertions from being hard coded to asserting that nothing changed
42294229

42304230
:pypi:`pytest-log`
42314231
*last release*: Aug 15, 2021,
@@ -6297,7 +6297,7 @@ This list contains 942 plugins.
62976297
*status*: N/A,
62986298
*requires*: N/A
62996299

6300-
A pytest plugin to skip \`@pytest.mark.slow\` tests by default.
6300+
A pytest plugin to skip \`@pytest.mark.slow\` tests by default.
63016301

63026302
:pypi:`pytest-slack`
63036303
*last release*: Dec 15, 2020,
@@ -6311,7 +6311,7 @@ This list contains 942 plugins.
63116311
*status*: N/A,
63126312
*requires*: N/A
63136313

6314-
A pytest plugin to skip \`@pytest.mark.slow\` tests by default.
6314+
A pytest plugin to skip \`@pytest.mark.slow\` tests by default.
63156315

63166316
:pypi:`pytest-smartcollect`
63176317
*last release*: Oct 04, 2018,
@@ -6507,7 +6507,7 @@ This list contains 942 plugins.
65076507
*status*: N/A,
65086508
*requires*: pytest
65096509

6510-
Yet another SQL-testing framework for BigQuery provided by pytest plugin
6510+
Yet another SQL-testing framework for BigQuery provided by pytest plugin
65116511

65126512
:pypi:`pytest-srcpaths`
65136513
*last release*: Oct 15, 2021,

scripts/update-plugin-list.py

Lines changed: 12 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
import datetime
22
import pathlib
33
import re
4-
from textwrap import dedent, indent
4+
from textwrap import dedent
5+
from textwrap import indent
56

67
import packaging.version
78
import requests
@@ -98,18 +99,22 @@ def iter_plugins():
9899
"requires": requires,
99100
}
100101

102+
101103
def plugin_definitions(plugins):
102104
"""Return RST for the plugin list that fits better on a vertical page."""
103105

104106
for plugin in plugins:
105-
yield dedent(f"""
107+
yield dedent(
108+
f"""
106109
{plugin['name']}
107110
*last release*: {plugin["last release"]},
108111
*status*: {plugin["status"]},
109112
*requires*: {plugin["requires"]}
110113
111114
{plugin["summary"]}
112-
""")
115+
"""
116+
)
117+
113118

114119
def main():
115120
plugins = list(iter_plugins())
@@ -122,13 +127,13 @@ def main():
122127
f.write(f"This list contains {len(plugins)} plugins.\n\n")
123128
f.write(".. only:: not latex\n\n")
124129

125-
wcwidth # reference library that must exist for tabulate to work
130+
wcwidth # reference library that must exist for tabulate to work
126131
plugin_table = tabulate.tabulate(plugins, headers="keys", tablefmt="rst")
127-
f.write(indent(plugin_table, ' '))
128-
f.write('\n\n')
132+
f.write(indent(plugin_table, " "))
133+
f.write("\n\n")
129134

130135
f.write(".. only:: latex\n\n")
131-
f.write(indent(''.join(plugin_definitions(plugins)), ' '))
136+
f.write(indent("".join(plugin_definitions(plugins)), " "))
132137

133138

134139
if __name__ == "__main__":

0 commit comments

Comments
 (0)