-
Notifications
You must be signed in to change notification settings - Fork 3k
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
Ruff enable isort (with custom sections) #2556
Ruff enable isort (with custom sections) #2556
Conversation
Awesome! Can you just have a look at my comments and maybe test run one or two of the example locustfiles to see that nothing broke there? Then this is ready for merge... |
There are two independent problems to solve: circular imports and importing locust first in locustfiles.
|
I see! I think option "1i" and "2ii" make the most sense - does that sound reasonable? Can you adjust your second PR? (or make a third one, if you prefer) |
Actually. Maybe the |
i, ii, iii (and any combination of them) looks good to me. |
Huh. The build is failing after merge. Can you have a look? https://github.com/locustio/locust/actions/runs/7621650409/job/20758349498 |
nvm, I fixed it myself |
(PR wasn't up-to-date with master branch. Some imports were added in the meantime.) |
Enable ruff isort-like import sorting & make code compatible with them.
Alternative approach to #2554.