• Python कोड को refurbish और modernize करने वाला टूल
  • plugins के ज़रिए अपने custom check rules जोड़ना संभव
  • git pre-commit के साथ इस्तेमाल किया जा सकता है
  • code review के दौरान एक-दूसरे के लिए कोड को पढ़ने में आसान बनाने और उसे अधिक elegant व modern बनाने के लिए विकसित किया गया
  • Rust में built-in linter clippy से प्रेरित
$ refurb main.py  
main.py:3:17 [FURB109]: Use `in (x, y, z)` instead of `in [x, y, z]`  
main.py:4:5 [FURB101]: Use `y = Path(x).read_text()` instead of `with open(x, ...) as f: y = f.read()`  
main.py:10:40 [FURB102]: Replace `x.startswith(y) or x.startswith(z)` with `x.startswith((y, z))`  
main.py:16:9 [FURB105]: Use `print() instead of `print("")`  

अभी कोई टिप्पणी नहीं है.

अभी कोई टिप्पणी नहीं है.