GitHub
github.com › life4 › awesome-python-code-formatters
GitHub - life4/awesome-python-code-formatters: A curated list of awesome Python code formatters · GitHub
pybetter: fixes some trivial problems with your code. pydocstringformatter: Automatically format your Python docstrings to conform with PEP 8 and PEP 257. ... Tornado Async Transformer: A libcst transformer for updating tornado @gen.coroutine syntax to python3.5+ native async/await. ... Formatters for import statements. autoflake: removes unused imports and unused variables as reported by pyflakes. ... Tools to upgrade to newer versions of Python or a framework.
Starred by 379 users
Forked by 22 users
Languages Shell
GitHub
github.com › psf › black
GitHub - psf/black: The uncompromising Python code formatter · GitHub
Black is the uncompromising Python code formatter. By using it, you agree to cede control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting.
Starred by 41.4K users
Forked by 2.7K users
Languages Python
Videos
03:16
How to Install & Configure Black Formatter in VS Code for Python ...
06:36
How to Format Python Code on Save in Visual Studio Code | Auto-Format ...
Code formatting with Black — Perfect Python
08:39
Effortless Python Code Cleaning with the Black Formatter - YouTube
35:47
Python Tutorial: Ruff - A Fast Linter & Formatter to Replace Multiple ...
GitHub
github.com › google › yapf
GitHub - google/yapf: A formatter for Python files · GitHub
YAPF is a Python formatter based on clang-format (developed by Daniel Jasper). In essence, the algorithm takes the code and calculates the best formatting that conforms to the configured style.
Starred by 14K users
Forked by 900 users
Languages Python
GitHub
github.com › astral-sh › ruff
GitHub - astral-sh/ruff: An extremely fast Python linter and code formatter, written in Rust. · GitHub
Starred by 46.4K users
Forked by 1.9K users
Languages Rust 96.3% | Python 2.7% | TypeScript 0.9% | Shell 0.1% | CSS 0.0% | HTML 0.0%
GitHub
github.com › paluh › code-formatter
GitHub - paluh/code-formatter: Python AST/code formatter
All formatters are kept in a small subclass of standard python dict which is passed around. It maps ast_type to Formatter and introduces trivial protocol of registration operations, so you can replace given formatter quite easily. Lets use some ready formatters from extras package: >>> from code_formatter import base, format_code >>> from code_formatter.extras import UnbreakableTupleFormatter >>> my_formatters = base.formatters.copy().register(UnbreakableTupleFormatter) >>> print format_code('[(x,y), (z,v)]', ...
Author paluh
GitHub
github.com › CodewithDili › auto-code-formatter
GitHub - CodewithDili/auto-code-formatter: The Automated Code Formatter is a Python tool that ensures your code follows best practices. It integrates black for formatting, isort for import sorting, and flake8 for linting into a single script. This keeps your codebase clean, consistent, and PEP 8 compliant with minimal effort.
The Automated Code Formatter is a Python tool that ensures your code follows best practices. It integrates black for formatting, isort for import sorting, and flake8 for linting into a single script.
Author CodewithDili
GitHub
github.com › yahiakortam › code-formatter
GitHub - yahiakortam/code-formatter: An AI-based tool that automatically formats Python, JavaScript, and Java code according to best practice guidelines. It supports customizable indentation, line length, and naming conventions, ensuring cleaner, more readable code. Perfect for developers looking to streamline their workflow.
An AI-based tool that automatically formats Python, JavaScript, and Java code according to best practice guidelines. It supports customizable indentation, line length, and naming conventions, ensuring cleaner, more readable code.
Author yahiakortam
GitHub
github.com › topics › formatter
formatter · GitHub Topics · GitHub
A JavaScript library for ... formatter l10n intl cldr cldr-data cldr-json ... A tool that automatically formats Python code to conform to the PEP 8 style guide....
GitHub
github.com › hhatto › autopep8
GitHub - hhatto/autopep8: A tool that automatically formats Python code to conform to the PEP 8 style guide. · GitHub
autopep8 automatically formats Python code to conform to the PEP 8 style guide. It uses the pycodestyle utility to determine what parts of the code needs to be formatted.
Starred by 4.7K users
Forked by 289 users
Languages Python
GitHub
github.com › WoLpH › python-formatter
GitHub - wolph/python-formatter: A Python formatter based on the Python tokenize lib to ensure validity
Starred by 11 users
Forked by 2 users
Languages Python 100.0% | Python 100.0%
GitHub
github.com › grantjenks › blue
GitHub - grantjenks/blue: The slightly less uncompromising Python code formatter. · GitHub
Starred by 403 users
Forked by 21 users
Languages Python
GitHub
github.com › topics › codeformatter
codeformatter · GitHub Topics
A tool that automatically formats Python code to conform to the PEP 8 style guide. ... A modern, lambda-friendly, 120 character Java formatter.
GitHub
github.com › topics › python-formatter
python-formatter · GitHub Topics · GitHub
formatter formatting format python-format python-formatting python-formatter optional-format optional-formatting default-format default-formatting ... All-in-one Python code formattor which is tailored of "black + isort + autoflake" for myself taste.
Beautifier
beautifier.io
Online JavaScript beautifier
Use JSLint-happy formatting tweaks? Indent <head> and <body> sections? Keep indentation on empty lines? Use a simple textarea for code input? ... Could Not Parse JSON! ... Created by Einar Lielmanis, maintained and evolved by Liam Newman. All of the source code is completely free and open, available on GitHub under MIT licence, and we have a command-line version, python ...
GitHub
github.com › rishirdua › awesome-code-formatters
GitHub - rishirdua/awesome-code-formatters: A curated list of awesome code formatting tools and libraries · GitHub
Artistic Styler - Source code indenter, formatter, and beautifier for the C, C++, C# and Java programming languages. Atom-Beautify - Beautify HTML, CSS, JavaScript, PHP, Python, Ruby, Java, C, C++, C#, Objective-C, CoffeeScript, TypeScript, Coldfusion, SQL, and more in Atom editor.
Starred by 288 users
Forked by 25 users
DeepSource
deepsource.com › blog › auto-code-formatting-python
Automate code formatting in Python • DeepSource
How about we turn the automation up to 11 and update our GitHub workflow to automatically fix code style violations? # .github/workflows/lint.yml name: Lint on: - push - workflow_dispatch jobs: lint: runs-on: ubuntu-latest steps: - uses: actions/checkout@v2 - uses: actions/setup-python@v2 - name: Install Python dependencies run: | pip install pipenv pipenv install --deploy --dev --system - uses: wearerequired/lint-action@v1 with: github_token: ${{ secrets.GITHUB_TOKEN }} black: true auto_fix: true
Top answer 1 of 6
15
I am the one who asks the question. In fact, the tool the closest to my needs seems to be PythonTidy (it's a Python program of course : Python is best served by himself ;) ).
2 of 6
3
autopep8 attempts to automate making your code conform to pep8 coding standards
https://pypi.python.org/pypi/autopep8
Pyrfecter
pyrfecter.com › format-python-code
Format Python code online · Pyrfecter
June 26, 2025 - If you have a very large code base or if your formatting needs to be lightning-fast, give Ruff a try: ... autopep8 formats Python code according to PEP 8 - Style Guide for Python Code. It builds on top of pycodestyle (formerly known as "pep8") by automatically fixing issues that pycodestyle finds. See https://github.com/hhatto/autopep8 for more information.