Skip to content

Commit 193dc55

Browse files
authored
Fix missing config option onlyAttrsWithClassVarAreTreatedAsClassAttrs (#219)
1 parent 981a0b1 commit 193dc55

File tree

3 files changed

+13
-2
lines changed

3 files changed

+13
-2
lines changed

CHANGELOG.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
# Change Log
22

3-
## [Unpublished]
3+
## [0.6.2] - 2025-02-17
44

55
- Fixed
66
- An issue where no error was thrown when the user does not supply a path
7+
- A bug where `--only-attrs-with-ClassVar-are-treated-as-class-attrs` is not
8+
properly passed to the visitor in the flake8 mode
9+
- Full diff
10+
- https://github.com/jsh9/pydoclint/compare/0.6.1...0.6.2
711

812
## [0.6.1] - 2025-02-16
913

pydoclint/flake8_entry.py

+7
Original file line numberDiff line numberDiff line change
@@ -353,6 +353,10 @@ def run(self) -> Generator[tuple[int, int, str, Any], None, None]:
353353
'--treat-property-methods-as-class-attributes',
354354
self.treat_property_methods_as_class_attributes,
355355
)
356+
onlyAttrsWithClassVarAreTreatedAsClassAttrs = self._bool(
357+
'--only-attrs-with-ClassVar-are-treated-as-class-attrs',
358+
self.only_attrs_with_ClassVar_are_treated_as_class_attrs,
359+
)
356360
shouldDocumentStarArguments = self._bool(
357361
'--should-document-star-arguments',
358362
self.should_document_star_arguments,
@@ -390,6 +394,9 @@ def run(self) -> Generator[tuple[int, int, str, Any], None, None]:
390394
treatPropertyMethodsAsClassAttributes=(
391395
treatPropertyMethodsAsClassAttributes
392396
),
397+
onlyAttrsWithClassVarAreTreatedAsClassAttrs=(
398+
onlyAttrsWithClassVarAreTreatedAsClassAttrs
399+
),
393400
shouldDocumentStarArguments=shouldDocumentStarArguments,
394401
checkStyleMismatch=checkStyleMismatch,
395402
style=self.style,

setup.cfg

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[metadata]
22
name = pydoclint
3-
version = 0.6.1
3+
version = 0.6.2
44
description = A Python docstring linter that checks arguments, returns, yields, and raises sections
55
long_description = file: README.md
66
long_description_content_type = text/markdown

0 commit comments

Comments
 (0)