Skip to content

Commit 72456c0

Browse files
committed
Linting.
1 parent eec64ff commit 72456c0

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

flake8_dunder_all/__init__.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def visit_ImportFrom(self, node: ast.ImportFrom):
185185

186186
class Plugin:
187187
"""
188-
A Flake8 plugin which checks to ensure modules have defined '__all__'.
188+
A Flake8 plugin which checks to ensure modules have defined ``__all__``.
189189
190190
:param tree: The abstract syntax tree (AST) to check.
191191
"""
@@ -241,6 +241,7 @@ def check_and_add_all(filename: PathLike, quote_type: str = '"') -> int:
241241
tree = ast.parse(source)
242242
if sys.version_info < (3, 8): # pragma: no cover (<py38)
243243
mark_text_ranges(tree, source)
244+
244245
except SyntaxError:
245246
stderr_writer(Fore.RED(f"'{filename}' does not appear to be a valid Python source file."))
246247
return 4

flake8_dunder_all/__main__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ def main(filenames: Iterable[str], quote_type: str = '"') -> int:
6666
6767
Exit codes:
6868
69-
* 0: The file already contains a '__all__' declaration or has no function or class definitions
70-
* 1: A '__all__' declaration. was added to the file.
69+
* 0: The file already contains a '__all__' declaration or has no function or class definitions.
70+
* 1: A '__all__' declaration was added to the file.
7171
* 4: A file could not be parsed due to a syntax error.
7272
* 5: Bitwise OR of 1 and 4.
7373
"""

0 commit comments

Comments
 (0)