Created by: jdevera
What is this Python project?
Refurb is a code checker that uses pattern matching on abstract syntax trees to find patterns in the code and suggest improvements that make the code more readable and/or modern.
I started using it, and it suggested I replace:
try:
something()
except Exception:
pass
with:
with contextlib.supress(Exception):
something()
And got me hooked.
What's the difference between this Python project and similar ones?
This project covers the code once it is correct, so it's compatible with other tools such as format checkers, style checkers, linters, type checkers. This will suggest modern approaches to frequently written patterns that are less readable than the suggested alternatives.
I am not aware of other tools in this space.
--
Anyone who agrees with this pull request could submit an Approve review to it.