Skip to content

Commit 595ec42

Browse files
authored
Update pydocstringformatter to 0.4.0 (#5787)
1 parent e3d5dec commit 595ec42

File tree

144 files changed

+770
-770
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

144 files changed

+770
-770
lines changed

.pre-commit-config.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ repos:
9696
args: [--prose-wrap=always, --print-width=88]
9797
exclude: tests(/.*)*/data
9898
- repo: https://github.com/DanielNoord/pydocstringformatter
99-
rev: v0.2.0
99+
rev: v0.4.0
100100
hooks:
101101
- id: pydocstringformatter
102102
exclude: *fixtures

doc/exts/pylint_extensions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717

1818
def builder_inited(app):
19-
"""Output full documentation in ReST format for all extension modules"""
19+
"""Output full documentation in ReST format for all extension modules."""
2020
# PACKAGE/docs/exts/pylint_extensions.py --> PACKAGE/
2121
base_path = os.path.dirname(
2222
os.path.dirname(os.path.dirname(os.path.abspath(__file__)))

doc/exts/pylint_messages.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,10 @@
1818
from pylint.utils import get_rst_title
1919

2020
PYLINT_BASE_PATH = Path(__file__).resolve().parent.parent.parent
21-
"""Base path to the project folder"""
21+
"""Base path to the project folder."""
2222

2323
PYLINT_MESSAGES_PATH = PYLINT_BASE_PATH / "doc" / "messages"
24-
"""Path to the messages documentation folder"""
24+
"""Path to the messages documentation folder."""
2525

2626

2727
MSG_TYPES_DOC = {k: v if v != "info" else "information" for k, v in MSG_TYPES.items()}
@@ -218,7 +218,7 @@ def build_messages_pages(app: Optional[Sphinx]) -> None:
218218

219219

220220
def setup(app: Sphinx) -> None:
221-
"""Connects the extension to the Sphinx process"""
221+
"""Connects the extension to the Sphinx process."""
222222
# Register callback at the builder-inited Sphinx event
223223
# See https://www.sphinx-doc.org/en/master/extdev/appapi.html
224224
app.connect("builder-inited", build_messages_pages)

examples/custom_raw.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111

1212
class MyRawChecker(BaseChecker):
13-
"""check for line continuations with '\' instead of using triple
13+
"""Check for line continuations with '\' instead of using triple
1414
quoted string or parenthesis
1515
"""
1616

@@ -30,7 +30,7 @@ class MyRawChecker(BaseChecker):
3030
options = ()
3131

3232
def process_module(self, node: nodes.Module) -> None:
33-
"""process a module
33+
"""Process a module.
3434
3535
the module's content is accessible via node.stream() function
3636
"""

pylint/__init__.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919

2020

2121
def run_pylint(argv: Optional[Sequence[str]] = None):
22-
"""Run pylint
22+
"""Run pylint.
2323
2424
argv can be a sequence of strings normally supplied as arguments on the command line
2525
"""
@@ -32,7 +32,7 @@ def run_pylint(argv: Optional[Sequence[str]] = None):
3232

3333

3434
def run_epylint(argv: Optional[Sequence[str]] = None):
35-
"""Run epylint
35+
"""Run epylint.
3636
3737
argv can be a list of strings normally supplied as arguments on the command line
3838
"""
@@ -42,7 +42,7 @@ def run_epylint(argv: Optional[Sequence[str]] = None):
4242

4343

4444
def run_pyreverse(argv: Optional[Sequence[str]] = None):
45-
"""Run pyreverse
45+
"""Run pyreverse.
4646
4747
argv can be a sequence of strings normally supplied as arguments on the command line
4848
"""
@@ -52,7 +52,7 @@ def run_pyreverse(argv: Optional[Sequence[str]] = None):
5252

5353

5454
def run_symilar(argv: Optional[Sequence[str]] = None):
55-
"""Run symilar
55+
"""Run symilar.
5656
5757
argv can be a sequence of strings normally supplied as arguments on the command line
5858
"""

pylint/__pkginfo__.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66

77

88
def get_numversion_from_version(v: str) -> Tuple:
9-
"""Kept for compatibility reason
9+
"""Kept for compatibility reason.
1010
1111
See https://github.com/PyCQA/pylint/issues/4399
1212
https://github.com/PyCQA/pylint/issues/4420,

pylint/checkers/__init__.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
# Licensed under the GPL: https://www.gnu.org/licenses/old-licenses/gpl-2.0.html
2020
# For details: https://github.com/PyCQA/pylint/blob/main/LICENSE
2121

22-
"""utilities methods and classes for checkers
22+
"""Utilities methods and classes for checkers.
2323
2424
Base id of standard checkers (used in msg and report ids):
2525
01: base
@@ -75,7 +75,7 @@ def table_lines_from_stats(
7575
old_stats: Optional[LinterStats],
7676
stat_type: Literal["duplicated_lines", "message_types"],
7777
) -> List[str]:
78-
"""get values listed in <columns> from <stats> and <old_stats>,
78+
"""Get values listed in <columns> from <stats> and <old_stats>,
7979
and return a formatted list of values, designed to be given to a
8080
ureport.Table object
8181
"""
@@ -138,7 +138,7 @@ def table_lines_from_stats(
138138

139139

140140
def initialize(linter):
141-
"""initialize linter with checkers in this package"""
141+
"""Initialize linter with checkers in this package."""
142142
register_plugins(linter, __path__[0])
143143

144144

0 commit comments

Comments
 (0)