From 6fbbf86599d3f134732469402e89378a93669b31 Mon Sep 17 00:00:00 2001 From: gkneighb <26003+gkneighb@users.noreply.github.com> Date: Wed, 20 May 2026 20:34:47 -0400 Subject: [PATCH] style: Fix flake8 E501 in man/build_md.py Reword the only long line in man/build_md.py from "To learn more about these tool in general, go to [link]" to "To learn more, see the [link]" so the line fits in 88 columns, then drop the file's E501 entry from .flake8. This is one of the cleanups invited by #1522. Verified that flake8 still passes on the file with the per-file-ignore removed. AI-assisted by Claude Code. References #1522 --- .flake8 | 1 - man/build_md.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/.flake8 b/.flake8 index 9a509977289..058ce00c4c8 100644 --- a/.flake8 +++ b/.flake8 @@ -22,7 +22,6 @@ per-file-ignores = # F821 undefined name 'unicode' # E741 ambiguous variable name 'l' man/build_html.py: E501 - man/build_md.py: E501 doc/examples/python/m.distance.py: E501 gui/scripts/d.wms.py: E501 gui/wxpython/image2target/g.gui.image2target.py: E501 diff --git a/man/build_md.py b/man/build_md.py index bb990c79016..a252063e8d6 100644 --- a/man/build_md.py +++ b/man/build_md.py @@ -31,7 +31,7 @@ modclass_intro_tmpl = string.Template( r"""# ${modclass} tools -To learn more about these tool in general, go to [${modclass} introduction](${modclass_lower}intro.md). +To learn more, see the [${modclass} introduction](${modclass_lower}intro.md). """ )