◐ Shell
clean mode source ↗

Enable most pyflakes rules when running ruff on `Lib/test` in CI by AlexWaygood · Pull Request #110917 · python/cpython

Skip to content

Navigation Menu

Provide feedback

Saved searches

Use saved searches to filter your results more quickly

Sign up

Appearance settings

Conversation

@AlexWaygood

Ruff's pyflakes rules generally have very few false-positive errors; I think we generally should aim to have as many enabled in CI as is practical. With the exception of a few rules that currently have many hits when enabled on our test suite, this PR enables the full suite of pyflakes rules when running ruff on Lib/test/.

AlexWaygood

b'\x01\xff': -255,
b'\x00\xff': -256,
b'\xff\x00': 255,
b'\x00\x01': 256,

Choose a reason for hiding this comment

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

This fixes a micro-bug flagged by ruff: this dictionary currently has two identical key/value pairs!

hugovk

@AlexWaygood

Adding DO-NOT-MERGE for now. This PR probably warrants discussion on Discourse before merging, since it's possible this could disrupt other core devs' workflows if they're unfamiliar with ruff

@github-actions

This PR is stale because it has been open for 30 days with no activity.

Labels

2 participants

@AlexWaygood @hugovk