Skip to content

Commit ce913f1

Browse files
authored
Fix pydocstyle linting with its 6.2.0 version (#329)
1 parent 9d33ab0 commit ce913f1

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

Diff for: pylsp/plugins/pydocstyle_lint.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,9 @@ def pylsp_lint(config, workspace, document):
6666

6767
# Will only yield a single filename, the document path
6868
diags = []
69-
for filename, checked_codes, ignore_decorators in conf.get_files_to_check():
69+
for filename, checked_codes, ignore_decorators, property_decorators in conf.get_files_to_check():
7070
errors = pydocstyle.checker.ConventionChecker().check_source(
71-
document.source, filename, ignore_decorators=ignore_decorators
71+
document.source, filename, ignore_decorators=ignore_decorators, property_decorators=property_decorators
7272
)
7373

7474
try:

Diff for: pyproject.toml

+2-2
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>=2.0.0",
34+
"pydocstyle>=6.2.0,<6.3.0",
3535
"pyflakes>=2.5.0,<3.1.0",
3636
"pylint>=2.5.0",
3737
"rope>1.2.0",
@@ -42,7 +42,7 @@ autopep8 = ["autopep8>=1.6.0,<1.7.0"]
4242
flake8 = ["flake8>=5.0.0,<7"]
4343
mccabe = ["mccabe>=0.7.0,<0.8.0"]
4444
pycodestyle = ["pycodestyle>=2.9.0,<2.11.0"]
45-
pydocstyle = ["pydocstyle>=2.0.0"]
45+
pydocstyle = ["pydocstyle>=6.2.0,<6.3.0"]
4646
pyflakes = ["pyflakes>=2.5.0,<3.1.0"]
4747
pylint = ["pylint>=2.5.0"]
4848
rope = ["rope>1.2.0"]

0 commit comments

Comments
 (0)