-
Notifications
You must be signed in to change notification settings - Fork 2
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
feat: Add refurb linter #35
Conversation
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.
Thank you, and this looks like a cool linter we should enable in this repo. Could you help adding the lintrunner config to this repo too?
parser.add_argument( | ||
"--severity", | ||
action="append", | ||
help="map code to severity (e.g. `FURB109:advice`)", |
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.
What should users input if they wanted to map more than one codes? Would be very nice to show in the example
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.
Use multiple --severity arg
Refurb is pretty slow compared with compiled mypy. dosisod/refurb#57. What do you think? |
In that case let’s merge this first and I’ll experiment with it |
How add refurb only for python3.10+ ? |
Why lintrunner does not fail if there is no tool available in PATH? Like here pip install refurb only for py>=3.10 |
I will need to look more deeply |
Looks like its because run_command needs check=True |
https://github.com/dosisod/refurb