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

Lint tool version updates #688

Merged
merged 2 commits into from May 16, 2021
Merged

Lint tool version updates #688

merged 2 commits into from May 16, 2021

Conversation

itsayellow
Copy link
Contributor

  • I have added an entry to docs/changelog.md

Summary of changes

This updates the version of black and flake8 to the latest versions in our lint nox session and in .pre-commit-config.yaml.

It takes advantage of the new --skip-magic-trailing-comma option in black (added this option to black config in pyproject.toml). I dislike the black "magic trailing comma" behavior because it treats all trailing commas as a user directive to never collapse a multi-line list, even in those cases that black and not the user added the trailing comma in the first place. See psf/black#1742 . Before I had kept the version of black at 19.10b0 to avoid this new magic comma behavior, but with the new switch we can advance black to the latest version.

In addition, with the new switch, there were some unnecessary trailing commas in a few source files that got cleaned up.

Test plan

Tested by running

nox -s lint

@itsayellow itsayellow merged commit e4abfca into pypa:master May 16, 2021
@itsayellow itsayellow deleted the lint-updates branch May 16, 2021 05:06
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.

None yet

2 participants