Question:
What am I supposed to do? What does it mean “un-sorted”? It’s literally two lines of code and I don’t know of a better way to do it.
Repl link/Link to where the bug appears:
https://replit.com/@CoderElijah/MutedLegalPolyhedron#main.py
Screenshots, links, or other helpful context:
Code Snippets :
from time import sleep
sleep(1)
import time
time.sleep(1)
KAlexK
September 26, 2023, 4:09pm
2
After the import block (in your case, only the import time
line), there should be one empty line (but I’m used to putting two).
You can configure it to be 2 empty lines after import block.
2 Likes
It’s useful to know how to configure pyright-extended so you can turn off certain warnings or add more rules. This specific warning is part of the isort
ruleset in ruff
.
For reference:
In the newest python templates, it is very clear how to configure Code intelligence.
So create a new python repl and open the pyproject.toml file.
Most code intelligence is controlled by ruff.
The list of enabled categories of rules is in the select variable: add or remove rulesets here.
You can disable individual rules in the ignore variable.
The categories and specific rules are found at Rules - Ruff .
More settings such as line length can be configured by putting more var…
2 Likes
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.