Skip to content

use pycodestyle for code style check + stop using l in list comprehensions#21502

Merged
jfgrimm merged 4 commits intoeasybuilders:5.0.xfrom
boegel:codestyle
Sep 30, 2024
Merged

use pycodestyle for code style check + stop using l in list comprehensions#21502
jfgrimm merged 4 commits intoeasybuilders:5.0.xfrom
boegel:codestyle

Conversation

@boegel
Copy link
Copy Markdown
Member

@boegel boegel commented Sep 30, 2024

No description provided.

Flamefire and others added 3 commits September 30, 2024 14:42
framework uses pycodestyle if available and pep8 only as a fallback and
later likely not at all (pep8 was renamed to pycodestyle and the
existing package is no longer updated)
So we need to check for either both or (more future proof) only for
pycodestyle.
pep8 has bugs which makes it miss many issues like long-lines in docstrings.
This might make the tests fail if both packages are available as
framework prefers the newer pycodestyle.
Copy link
Copy Markdown
Member

@jfgrimm jfgrimm left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@jfgrimm jfgrimm merged commit 57aeaff into easybuilders:5.0.x Sep 30, 2024
@boegel boegel deleted the codestyle branch September 30, 2024 14:19
Comment on lines +6 to +9
description = """FreeSurfer is a set of tools for analysis and visualization
of structural and functional brain imaging data. FreeSurfer contains a fully
automatic structural imaging stream for processing cross sectional and
longitudinal data."""
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that this changes the module help text. I used the following for IMO more sensible line breaks in #21405

description = """\
FreeSurfer is a set of tools for analysis and visualization of structural and functional brain imaging data.
FreeSurfer contains a fully automatic structural imaging stream for processing cross sectional and longitudinal data.
"""

If that sounds useful I can do the Search&replace using the texts I previously used.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants