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

Make Flake8 line limit consistent with Black and shorten lines to comply #2993

Open
wants to merge 5 commits into
base: main
Choose a base branch
from

Conversation

marcbradshaw
Copy link

Flake8 line limit is inconsistent with Black, this PR updates the config to be consistent, and shortens lines to comply with the new limit, as required.

Some lines with very long method names were skipped, ironically by making them even longer and adding a noqa comment

Fixes #2975

PR Checklist:

  • All new features have been tested
  • All new features have been documented
  • I have read the CONTRIBUTING.md file
  • I will abide by the code of conduct

@marcbradshaw marcbradshaw force-pushed the 2975-flake8-line-limit branch 2 times, most recently from 341380c to 6c58568 Compare November 25, 2024 07:16
@@ -106,7 +106,7 @@ def __iter__(self) -> Iterator[Widget]:
return self.values()

def __repr__(self) -> str:
return f"{{{', '.join(f'{k!r}: {v!r}' for k, v in sorted(self._registry.items()))}}}"
return f"{{{', '.join(f'{k!r}: {v!r}' for k, v in sorted(self._registry.items()))}}}" # noqa: E501
Copy link
Member

Choose a reason for hiding this comment

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

This line can be split as shown in 7654820.

Copy link
Author

Choose a reason for hiding this comment

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

Changed

Comment on lines 159 to 161
# print(self._content, f"Container layout "
# "{allocation.width}x{allocation.height} @ {allocation.x}x{allocation.y}")
# # noqa: E501
Copy link
Member

Choose a reason for hiding this comment

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

Even though it's commented out, this line can still be split like any other string.

Copy link
Author

Choose a reason for hiding this comment

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

ah, the noqa pragma was existing, and of course should have been removed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Flake8 line limit is inconsistent with Black
2 participants