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 line length consistent across code formatters #6

Merged
merged 1 commit into from
Jan 14, 2024

Conversation

zimmermatt
Copy link
Owner

We've been using Ruff for formatting, which defaults to 88 characters for its max line length. So we don't end up with a lot of whitespace changes for existing files and contention between Ruff and Editor Config, this commit set the line length for Editor Config to match Ruff's default.

In addition, the PEP 8 standard of 80 characters is too restrictive and does not make much sense given modern displays. It probably reflects what made sense in 2001 when it was adopted.

We've been using Ruff for formatting, which defaults to 88 characters
for its max line length. So we don't end up with a lot of whitespace
changes for existing files and contention between Ruff and Editor
Config, this commit set the line length for Editor Config to match
Ruff's default.

In addition, the PEP 8 standard of 80 characters is too restrictive and
does not make much sense given modern displays. It probably reflects
what made sense in 2001 when it was adopted.
@zimmermatt zimmermatt merged commit 281d8bb into main Jan 14, 2024
1 check passed
@zimmermatt zimmermatt deleted the edcfg-line-length branch January 14, 2024 02:05
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.

1 participant