Draft:Flake8
This article, Draft:Flake8, has recently been created via the Articles for creation process. Please check to see if the reviewer has accidentally left this template after accepting the draft and take appropriate action as necessary.
Reviewer tools: Preload talk Inform author |
This article, Draft:Flake8, has recently been created via the Articles for creation process. Please check to see if the reviewer has accidentally left this template after accepting the draft and take appropriate action as necessary.
Reviewer tools: Preload talk Inform author |
This article needs additional citations for verification. (November 2023) |
Developer(s) | Tarek Ziadé (initial author), Anthony Sottile, Ian Cordasco.[1] |
---|---|
Initial release | 2010 |
Stable release | 6.1.0
/ July 29, 2023 |
Written in | Python |
License | MIT License |
Website | flake8 |
Flake8 is a popular[2] command-line utility for enforcing style consistency across code in the Python programming language. It is a tool that combines various tools for checking the style and quality of Python code, including PyFlakes, pycodestyle (formerly known as Pep8), and Ned Batchelder's McCabe script. The name 'Flake8' is derived from a combination of 'pyflakes' and 'pep8', the names of the tools it integrates[3]
It enforces the style recommended by PEP 8, the Python style guide[4]
It can be used as an application but can also be integrated in vscode[5], IntelliSense [6], emacs[7], vim [8] and others editors.
See also
Lua error in mw.title.lua at line 346: bad argument #2 to 'title.new' (unrecognized namespace name 'Portal').
- Pylint - another Python linter
- Ruff, a Python static code analysis tool written in Rust, proposes itself as a seamless alternative to Flake8.
References
- ^ "Flake8 homepage". flake8.pycqa.org. Retrieved 24 November 2023.
- ^ Ziade, Tarek, flake8: the modular source code checker: pep8 pyflakes and co, retrieved 28 November 2023
- ^ "flake8/README.rst at main · PyCQA/flake8". GitHub. Retrieved 28 November 2023.
- ^ "PEP 8 – Style Guide for Python Code | peps.python.org". peps.python.org. Retrieved 28 November 2023.
- ^ "Linting Python in Visual Studio Code". code.visualstudio.com. Retrieved 28 November 2023.
- ^ Ramel, David (9 July 2022). "Improved IntelliSense Support for Jupyter Notebooks in VS Code". Visual Studio Magazine. Retrieved 28 November 2023.
- ^ "Emacs setup for following coding guidelines — Astropy v6.1.dev129+g6b36e53c". docs.astropy.org. Retrieved 28 November 2023.
- ^ "vim-flake8 - vim-flake8 is a Vim plugin that runs the currently open file through Flake8. : vim online". www.vim.org. Retrieved 29 November 2023.
External links
Categories:
- Pages with script errors
- Pending AfC submissions
- Pending AfC submissions in article space
- AfC submissions by date/12 July 2024
- AfC submissions by date/01 December 2023
- Short description with empty Wikidata description
- Draft topics used in wrong namespace
- AfC topic used in wrong namespace
- Articles needing additional references from November 2023
- All articles needing additional references
- Free software
- Python (programming language) development tools
- Static program analysis tools
- Software testing
- Free and open-source software stubs
- Computer programming tool stubs