8000 Bump pydocstyle to 6.3 (#340) · rookiecoder1st/python-lsp-server@40124c6 · GitHub
[go: up one dir, main page]

Skip to content

Commit 40124c6

Browse files
authored
Bump pydocstyle to 6.3 (python-lsp#340)
1 parent 645d800 commit 40124c6

File tree

2 files changed

+15
-4
lines changed

2 files changed

+15
-4
lines changed

pylsp/plugins/pydocstyle_lint.py

Lines changed: 13 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ def pylsp_settings():
2828

2929
@hookimpl
3030
def pylsp_lint(config, workspace, document):
31+
# pylint: disable=too-many-locals
3132
with workspace.report_progress("lint: pydocstyle"):
3233
settings = config.plugin_settings('pydocstyle', document_path=document.path)
3334
log.debug("Got pydocstyle settings: %s", settings)
@@ -66,9 +67,19 @@ def pylsp_lint(config, workspace, document):
6667

6768
# Will only yield a single filename, the document path
6869
diags = []
69-
for filename, checked_codes, ignore_decorators, property_decorators in conf.get_files_to_check():
70+
for (
71+
filename,
72+
checked_codes,
73+
ignore_decorators,
74+
property_decorators,
75+
ignore_self_only_init,
76+
) in conf.get_files_to_check():
7077
errors = pydocstyle.checker.ConventionChecker().check_source(
71-
document.source, filename, ignore_decorators=ignore_decorators, property_decorators=property_decorators
78+
document.source,
79+
filename,
80+
ignore_decorators=ignore_decorators,
81+
property_decorators=property_decorators,
82+
ignore_self_only_init=ignore_self_only_init,
7283
)
7384

7485
try:

pyproject.toml

Lines changed: 2 additions & 2 deletions
8000
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ all = [
3131
"flake8>=5.0.0,<7",
3232
"mccabe>=0.7.0,<0.8.0",
3333
"pycodestyle>=2.9.0,<2.11.0",
34-
"pydocstyle>=6.2.0,<6.3.0",
34+
"pydocstyle>=6.3.0,<6.4.0",
3535
"pyflakes>=2.5.0,<3.1.0",
3636
"pylint>=2.5.0,<3",
3737
"rope>1.2.0",
@@ -43,7 +43,7 @@ autopep8 = ["autopep8>=1.6.0,<1.7.0"]
4343
flake8 = ["flake8>=5.0.0,<7"]
4444
mccabe = ["mccabe>=0.7.0,<0.8.0"]
4545
pycodestyle = ["pycodestyle>=2.9.0,<2.11.0"]
46-
pydocstyle = ["pydocstyle>=6.2.0,<6.3.0"]
46+
pydocstyle = ["pydocstyle>=6.3.0,<6.4.0"]
4747
pyflakes = ["pyflakes>=2.5.0,<3.1.0"]
4848
pylint = ["pylint>=2.5.0,<3"]
4949
rope = ["rope>1.2.0"]

0 commit comments

Comments
 (0)
0