{"repo":"ikamensh/flynt","free":true,"listed":false,"github":"https://github.com/ikamensh/flynt","clone":"git clone https://github.com/ikamensh/flynt.git","description":"A tool to automatically convert old string literal formatting to f-strings","language":"Rust","stars":733,"topics":["python","linter"],"license":"MIT","category":"dev-tools","readme_excerpt":"A new tool: try kodo, open source agentic coding orchestrator. flynt - string formatting converter flynt is a command line tool to automatically convert a project's Python code from old \"%-formatted\" and .format(...) strings into Python 3.6+'s \"f-strings\". F-Strings: Not only are they more readable, more concise, and less prone to error than other ways of formatting, but they are also faster! flynt 2.0: now a native binary 🦀 Since 2.0, flynt is implemented in Rust and ships as a native executable in the PyPI wheel — same CLI and output as 1.x, 10–20× faster , with parallel file processing. The Python import API was removed (CLI-only); if you need import flynt , pin flynt Note (2.0 beta): keep rev: '1.0.6' for now. Pointing rev at a 2.0 checkout makes pre-commit build flynt from source, which requires a Rust toolchain. A wheel-backed hook (installing the prebuilt binary from PyPI) will ship with the final 2.0 release. You can skip conversion of certain lines by adding # noqa [: anything else] flynt [anything else] or # flynt: skip Configuration files Since v0.71 flynt can be configured using pyproject.toml file on a per-project basis. Use same arguments as in CLI, and add them to [tool.flynt] section. CLI arguments takes precedence over the config file. It can also be configured globally with a toml file located in /.config/flynt.toml on Unix / /.flynt.toml on Windows. About Read up on f-strings here: - https://realpython.com/python-f-strings/ - https://www.python.org/dev/pep","default_branch":null,"files":null,"tree":[],"storefront":"/r/ikamensh","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/ikamensh/flynt/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."}