-
Notifications
You must be signed in to change notification settings - Fork 16.1k
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
core: Add ruff rules RUF #29353
base: master
Are you sure you want to change the base?
core: Add ruff rules RUF #29353
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎ 1 Skipped Deployment
|
loop.create_task(coro) | ||
# TODO: Fix RUF006 - this task should have a reference | ||
# and be awaited somewhere | ||
loop.create_task(coro) # noqa: RUF006 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There is something wrong here.
Do you have guidance in how to fix ? Or should I open an issue ?
select = [ "ASYNC", "B", "C4", "COM", "DJ", "E", "EM", "EXE", "F", "FLY", "FURB", "I", "ICN", "INT", "LOG", "N", "NPY", "PD", "PIE", "Q", "RSE", "S", "SIM", "SLOT", "T10", "T201", "TID", "UP", "W", "YTT",] | ||
ignore = [ "COM812", "UP007", "S110", "S112",] | ||
select = [ "ASYNC", "B", "C4", "COM", "DJ", "E", "EM", "EXE", "F", "FLY", "FURB", "I", "ICN", "INT", "LOG", "N", "NPY", "PD", "PIE", "Q", "RSE", "RUF", "S", "SIM", "SLOT", "T10", "T201", "TID", "UP", "W", "YTT",] | ||
ignore = [ "COM812", "UP007", "RUF010", "RUF012", "S110", "S112",] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RUF010 temporarily ignored because it would create lots of conflicts for the PR with #29334
RUF012 ignored because it doesn't play well with Pydantic
668c55a
to
329e995
Compare
329e995
to
bc47278
Compare
See https://docs.astral.sh/ruff/rules/#ruff-specific-rules-ruf