Software:Flake8
From HandWiki
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
- 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". https://github.com/PyCQA/flake8#maintenance. Retrieved 24 November 2023.
- ↑ Ziade, Tarek, flake8: the modular source code checker: pep8 pyflakes and co, https://github.com/pycqa/flake8, retrieved 28 November 2023
- ↑ "flake8/README.rst at main · PyCQA/flake8" (in en). https://github.com/PyCQA/flake8/blob/main/README.rst.
- ↑ "PEP 8 – Style Guide for Python Code | peps.python.org". https://peps.python.org/pep-0008/.
- ↑ "Linting Python in Visual Studio Code" (in en). https://code.visualstudio.com/docs/python/linting.
- ↑ Ramel, David (9 July 2022). "Improved IntelliSense Support for Jupyter Notebooks in VS Code" (in en-US). https://visualstudiomagazine.com/articles/2022/09/07/vs-code-python-sep22.aspx.
- ↑ "Emacs setup for following coding guidelines — Astropy v6.1.dev129+g6b36e53c". https://docs.astropy.org/en/latest/development/codeguide_emacs.html.
- ↑ "vim-flake8 - vim-flake8 is a Vim plugin that runs the currently open file through Flake8. : vim online". https://www.vim.org/scripts/script.php?script_id=3927.
External links
This page will be placed in the following categories if it is moved to the Article namespace.
Categories:
![]() | Original source: https://en.wikipedia.org/wiki/Flake8.
Read more |