![]() indent-style = "space " # Like Black, respect magic trailing commas. quote-style = "double " # Like Black, indent with spaces, rather than tabs. # Like Black, use double quotes for strings. # Allow unused variables when underscore-prefixed. # Allow fix for all enabled rules (when `-fix`) is provided. # Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default. line-length = 88 indent-width = 4 # Assume Python 3.8 target-version = "p圓8 " ![]() # Exclude a variety of commonly ignored directories. Table of Contentsįor more, see the documentation. It was working till I intentionally introduced some errors. Only one downside so far: it's so fast I couldn't believe It as an actual commit hook, which is terrific. This is an enormous quality of life improvement for local dev. Ruff is ~150-200x faster than flake8 on my machine, scanning the whole repo takes ~0.2s instead of Running ruff against our entire codebase takes. Our largest module (dagster itself, 250k LOC) pylint takes about 2.5 minutes, parallelized across 4Ĭores on my M1. Why is Ruff a gamechanger? Primarily because it is nearly 1000x faster. Ruff is so fast that sometimes I add an intentional bug in the code just to confirm it's actually Ruff is extremely actively developed and used in major open-source projects like: Ruff can be used to replace Flake8 (plus dozens of plugins),Īutoflake, and more, all while executing tens or hundreds of Ruff aims to be orders of magnitude faster than alternative tools while integrating moreįunctionality behind a single, common interface. ![]() ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |