Skip to content

Fix the period added in docstring automatically by mistake #5790

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Feb 10, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ repos:
args: [--prose-wrap=always, --print-width=88]
exclude: tests(/.*)*/data
- repo: https://github.com/DanielNoord/pydocstringformatter
rev: v0.4.0
rev: a9f94bf13b08fe33f784ed7f0a0fc39e2a8549e2
hooks:
- id: pydocstringformatter
exclude: *fixtures
2 changes: 1 addition & 1 deletion pylint/checkers/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,7 +471,7 @@ def _prepare_token_dispatcher(self):
return dispatch

def process_tokens(self, tokens):
"""Process tokens and search for :.
"""Process tokens and search for :

_ too long lines (i.e. longer than <max_chars>)
_ optionally bad construct (if given, bad_construct must be a compiled
Expand Down
5 changes: 1 addition & 4 deletions pylint/lint/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,7 @@ def cb_init_hook(optname, value):


class Run:
"""Helper class to use as main for pylint :.

run(*sys.argv[1:])
"""
"""Helper class to use as main for pylint with 'run(*sys.argv[1:])'."""

LinterClass = PyLinter
option_groups = (
Expand Down
7 changes: 2 additions & 5 deletions pylint/pyreverse/diadefslib.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ def extract_classes(self, klass_node, anc_level, association_level):


class DefaultDiadefGenerator(LocalsVisitor, DiaDefGenerator):
"""Generate minimum diagram definition for the project :.
"""Generate minimum diagram definition for the project :

* a package diagram including project's modules
* a class diagram including project's classes
Expand Down Expand Up @@ -210,10 +210,7 @@ def class_diagram(self, project, klass):


class DiadefsHandler:
"""Handle diagram definitions :.

get it from user (i.e. xml files) or generate them
"""
"""Get diagram definitions from user (i.e. xml files) or generate them."""

def __init__(self, config):
self.config = config
Expand Down