Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 4 commits into from
Sep 30, 2024

Conversation

boegel
Copy link
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
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
7 checks passed
@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
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