the.bay.news

Mystifying message from ruff

Discussions on Python.org
Mystifying message from ruff
I installed ruff today and messed around a little with its check command. I found one message in particular confusing/useless: [I001] Import block is un-sorted or un-formatted As far as I could tell, it didn’t like any of my blocks of import statements. When I looked it up, I was still confused. Here’s one block of imports it complained about in a small script: import argparse import os import pickle # nosec import sys The imports are sorted as far as I can tell and...

0 comments

Sign in to join the discussion — your thebay.events account works here.

No comments yet.