Locked learning resources

Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Locked learning resources

This lesson is for members only. Join us and get access to thousands of tutorials and a community of expert Pythonistas.

Unlock This Lesson

Fixing Formatting Briefly

Avatar image for davemcampbell

davemcampbell on June 11, 2026

Maybe a local issue, maybe an version issue (v0.15.17). But when I ran the command ruff check quote_generator.py, I didn’t receive the E225 error.

I had to run the above command and use the --preview flag to get that to generate.

Avatar image for Bartosz Zaczyński

Bartosz Zaczyński RP Team on June 20, 2026

@davemcampbell, good catch. It’s not a local issue. In current ruff (I checked on 0.15.18, right next to your 0.15.17), E225 is still a preview rule. Running ruff rule E225 spells it out:

This rule is in preview and is not stable. The --preview flag is required for use.

So ruff deliberately won’t emit E225 from a plain ruff check, which is exactly why it only showed up once you added --preview. Several of the pycodestyle whitespace rules (the E2xx family) are still gated behind preview while their implementations are finalized.

If you’d rather not type the flag each time, you can turn preview on in your config instead:

# pyproject.toml
[tool.ruff]
preview = true

This is drift between the course and ruff’s current defaults, so I’ll flag it for the rest of the team to update the lesson (either adding --preview to the command or calling out the requirement). Thanks for the detailed report and for including the version number.

Become a Member to join the conversation.