{"repo":"dosisod/refurb","free":true,"listed":false,"github":"https://github.com/dosisod/refurb","clone":"git clone https://github.com/dosisod/refurb.git","description":"A tool for refurbishing and modernizing Python codebases","language":"Python","stars":2534,"topics":["cli","mypy","python","python310","testing","gplv3","python311","python312"],"license":"GPL-3.0","category":"cli-tools","readme_excerpt":"Refurb A tool for refurbishing and modernizing Python codebases. Example Running: Installing Note Refurb must be run on Python 3.10+, though it can check Python 3.7+ code by setting the --python-version flag. Explanations For Checks You can use refurb --explain FURB123 , where FURB123 is the error code you are trying to look up. For example: name = str(\"bob\") num = int(123) name = \"bob\" num = 123 An online list of all available checks can be viewed here. Ignoring Errors Use --ignore 123 to ignore error 123. The error code can be in the form FURB123 or 123 . This flag can be repeated. The FURB prefix indicates that this is a built-in error. The FURB prefix is optional, but for all other errors (ie, ABC123 ), the prefix is required. You can also use inline comments to disable errors: Here, noqa: FURB123 specifically ignores the FURB123 error for that line, and noqa ignores all errors on that line. You can also specify multiple errors to ignore by separating them with a comma/space: Enabling/Disabling Checks Certain checks are disabled by default, and need to be enabled first. You can do this using the --enable ERR flag, where ERR is the error code of the check you want to enable. A disabled check differs from an ignored check in that a disabled check will never be loaded, whereas an ignored check will be loaded, an error will be emitted, and the error will be suppressed. Use the --verbose / -v flag to get a full list of enabled checks. The opposite of --enable is --disable , wh","default_branch":null,"files":null,"tree":[],"storefront":"/r/dosisod","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/dosisod/refurb/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}