News for hackers. Stuff that matters.
Re:Show HN: Refurb – A tool for refurbishing and modernizing... by c54 on Wednesday September 28, 2022 @01:05AM (#33004426)
I'm just getting into the python ecosystem in a professional capacity. How does refurb compare to the landscape of other python linters and static analyzers? Is it meant to be used in concert with others or to be more of a one stop shop?

It looks like the checks are in the category of standardizing on modern python syntax features, sort-of one step up from an autoformatter like yapf or black. Is this correct?

Re:Show HN: Refurb – A tool for refurbishing and modernizing... by dosisod on Wednesday September 28, 2022 @01:27AM (#33004532)
Yes, I would say that is correct! Like I mention at the very bottom of the README, Refurb is not meant to be an all-in-one linter or formatter: Tools like black, flake8, mypy, etc. already exist, so trying to recreate what they do would be a lot of work. Refurb is more of an addition on top of the tools I previously mentioned, and less of an altogether replacement.
Re:Show HN: Refurb – A tool for refurbishing and modernizing... by thumbcore on Wednesday September 28, 2022 @02:04AM (#33004720)
Related -- I'm curious how you'd compare this to pyupgrade https://pypi.org/project/pyupgrade/
Re:Show HN: Refurb – A tool for refurbishing and modernizing... by dosisod on Wednesday September 28, 2022 @02:20AM (#33004797)
Interesting, I have never heard of this project before! From looking at the README, Refurb is more focused on simplifying the codebases, making them more expressive, whereas pyupgrade seems to have the goal of upgrading you from version A to version B (specifically Python 2 to 3). Near the bottom there are some newer Python version (3.6+) related upgrades, which I was considering adding to Refurb. I expect there to be some overlap between my project and some of the existing projects out there, so I will have to weight the costs of adding these in vs leaving them out.

Thanks for mentioning that project!