Jump to content

Draft:Flake8: Difference between revisions

From Wikipedia, the free encyclopedia
Content deleted Content added
m →‎top: script-assisted date audit and style fixes per MOS:NUM
Submitting using AfC-submit-wizard
 
Line 1: Line 1:
{{Short description|Python static code analysis tool}}
{{Short description|Python static code analysis tool}}
{{AFC submission|d|nn|u=Sylvestre|ns=118|decliner=331dot|declinets=20231201114055|ts=20231201113940}} <!-- Do not remove this line! -->

{{Draft topics|internet-culture|software|computing|technology}}
{{Draft topics|internet-culture|software|computing|technology}}
{{AfC topic|stem}}
{{AfC topic|stem}}
{{AfC submission|||ts=20240712003700|u=J Gamers X|ns=118}}
{{AFC submission|d|nn|u=Sylvestre|ns=118|decliner=331dot|declinets=20231201114055|ts=20231201113940}} <!-- Do not remove this line! -->




{{More citations needed|date=November 2023}}
{{More citations needed|date=November 2023}}

Latest revision as of 00:37, 12 July 2024


Flake8
Developer(s)Tarek Ziadé (initial author), Anthony Sottile, Ian Cordasco.[1]
Initial release2010; 14 years ago (2010)
Stable release
6.1.0 / July 29, 2023; 13 months ago (2023-07-29)
Written inPython
LicenseMIT License
Websiteflake8.pycqa.org

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

[edit]
  • Pylint - another Python linter
  • Ruff, a Python static code analysis tool written in Rust, proposes itself as a seamless alternative to Flake8.

References

[edit]
  1. ^ "Flake8 homepage". flake8.pycqa.org. Retrieved 24 November 2023.
  2. ^ Ziade, Tarek, flake8: the modular source code checker: pep8 pyflakes and co, retrieved 28 November 2023
  3. ^ "flake8/README.rst at main · PyCQA/flake8". GitHub. Retrieved 28 November 2023.
  4. ^ "PEP 8 – Style Guide for Python Code | peps.python.org". peps.python.org. Retrieved 28 November 2023.
  5. ^ "Linting Python in Visual Studio Code". code.visualstudio.com. Retrieved 28 November 2023.
  6. ^ Ramel, David (9 July 2022). "Improved IntelliSense Support for Jupyter Notebooks in VS Code". Visual Studio Magazine. Retrieved 28 November 2023.
  7. ^ "Emacs setup for following coding guidelines — Astropy v6.1.dev129+g6b36e53c". docs.astropy.org. Retrieved 28 November 2023.
  8. ^ "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.
[edit]