Repository navigation
style: Fix flake8 E501 in man/build_md.py - #7422
Merged
Merged
Conversation
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 OSGeo#1522. Verified that flake8 still passes on the file with the per-file-ignore removed. AI-assisted by Claude Code. References OSGeo#1522
gkneighb
force-pushed
the
style-1522-build-md-e501
branch
from
May 21, 2026 00:41
f843762 to
6fbbf86
Compare
ninsbl
pushed a commit
to ninsbl/grass
that referenced
this pull request
Jul 7, 2026
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 OSGeo#1522. Verified that flake8 still passes on the file with the per-file-ignore removed. AI-assisted by Claude Code. Co-authored-by: gkneighb <26003+gkneighb@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
man/build_md.pyhad one long line (a string template) and a correspondingman/build_md.py: E501entry in.flake8. Reword the long line so it fits in 88 columns, then drop the per-file-ignore.The new text is semantically equivalent (and incidentally fixes the "these tool" -> singular grammar slip).
Motivation and context
One of the cleanups invited by #1522.
How has this been tested?
python3 -m flake8 man/build_md.pyexits 0 with the per-file-ignore removed. The otherman/build_md.py: E501candidates I looked at (build_html.py,m.distance.py,r.semantic.label.py,python/grass/jupyter/__init__.py) all hit either GRASS parser directive lines (# % description:that g.parser reads as a single line) or URLs inside ReST docstrings -- those cases are intentionally what# noqa-style ignores exist for, so I left their entries alone.Types of changes
Checklist
AI-assisted by Claude Code.