From fde3bb2c77a1a3112c836382e3207b6dc4019a6e Mon Sep 17 00:00:00 2001 From: Eljees <3.14hell@gmail.com> Date: Sun, 23 Aug 2026 09:22:07 +0000 Subject: [PATCH] chore: restore a green pre-commit run pydocstyle D301 on _is_blank_line, mypy on the tomllib ImportError fallback, and end-of-file-fixer on CHANGELOG.md all fail on master, so the "Run linters on code base" job is red for every pull request. --- CHANGELOG.md | 3 --- src/docformatter/classify.py | 4 ++-- src/docformatter/configuration.py | 2 +- 3 files changed, 3 insertions(+), 6 deletions(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index f396665..734bbed 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -130,6 +130,3 @@ Bug Fixes ## [v1.4](https://github.com/PyCQA/docformatter/tree/v1.4) (2020-12-27) [Full Changelog](https://github.com/PyCQA/docformatter/compare/v1.3.1...v1.4) - - - diff --git a/src/docformatter/classify.py b/src/docformatter/classify.py index 9b8b553..61a94e6 100644 --- a/src/docformatter/classify.py +++ b/src/docformatter/classify.py @@ -478,10 +478,10 @@ def is_newline_continuation( def _is_blank_line(line: str) -> bool: - """Determine if a physical line is blank. + r"""Determine if a physical line is blank. A blank line is a non-empty line that holds nothing but whitespace, e.g. - "\\n" or " \\n". The empty string is *not* a blank line; tokenize uses + "\n" or " \n". The empty string is *not* a blank line; tokenize uses it as the line of the NEWLINE token it synthesizes for source that has no trailing newline, as well as for DEDENT and ENDMARKER tokens. diff --git a/src/docformatter/configuration.py b/src/docformatter/configuration.py index 3fe45ee..7fafa98 100644 --- a/src/docformatter/configuration.py +++ b/src/docformatter/configuration.py @@ -43,7 +43,7 @@ except ImportError: # Neither the stdlib tomllib (Python < 3.11) nor the tomli backport is # available; TOML configuration files are skipped in that case. See #368. - tomllib = None + tomllib = None # type: ignore[assignment] # docformatter Package Imports from docformatter import __pkginfo__