Automic VaultAutomic Vault

brew

使用 Homebrew, apt, pacman 安装 flake8

查看 flake8 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

安装

其他安装命令

macOS

Homebrew已验证 · 100%
brew install flake8

local Homebrew formula metadata

Linux

Debian apt已验证 · 92%
sudo apt install flake8

Debian stable package indexes · flake8 · 来源: deb.debian.org

Arch Linux pacman已验证 · 92%
sudo pacman -S python-flake8

Arch Linux sync databases · python-flake8 · 来源: geo.mirror.pkgbuild.com

概览

软件包摘要

Lint your Python code for style and logical errors

命令和别名

  • flake8

历史

项目历史与用法

flake8 is a Python style and quality checker that glues together pycodestyle, PyFlakes, McCabe complexity checks, and third-party plugins. Its official documentation presents it as a command-line tool for checking files or directories and as a configurable platform for Python linting policy.

项目历史

The recorded release history begins with the 0.x series; the 0.6 release in February 2010 fixed McCabe metric handling, and 1.0 followed in November 2011 with complexity-checking changes. The project later moved under PyCQA, whose official repository describes flake8 as a tool that combines pycodestyle, pyflakes, mccabe, and plugins.

The 3.0.0 release in July 2016 was a major internal and documentation rewrite. Its notes say the project removed dependence on pep8/pycodestyle for file processing and plugin dispatch while keeping compatibility, added formatter entry points, improved plugin option registration, changed hook installation behavior, and rewrote documentation at flake8.pycqa.org.

采用历史

flake8 became popular because it packaged several Python code-quality checks behind one command and one set of configuration files. The official plugin guide explicitly attributes much of its popularity to extensibility and notes that community plugins are typically distributed on PyPI.

In day-to-day Python packaging, flake8 is commonly installed into the same Python environment that should parse the target code. The docs warn that Flake8 is tied to the Python version on which it runs, because it must understand that version's syntax.

使用方式

The basic workflow is `flake8 path/to/code.py` or `flake8 path/to/code/`, optionally with selection and ignore flags for specific error codes. The user guide documents project configuration in `setup.cfg`, `tox.ini`, or `.flake8`, all using a `[flake8]` INI section.

Plugins extend checks and formatters. After installation, most plugins immediately start reporting their own codes, and some register additional command-line or configuration options.

为什么软件包爱好者会关心

flake8 matters to package nerds because it became the small, composable linting facade for a large slice of Python packaging: pycodestyle contributes E/W codes, PyFlakes contributes F codes, McCabe contributes C codes, and plugins add their own namespaces.

Its configuration-file search and plugin entry-point model made it easy for projects, tox environments, pre-commit hooks, and distribution packages to agree on one executable while still carrying local policy.

时间线

  • 2010: 0.6 release recorded in official release notes.
  • 2011: 1.0 release changes default complexity-checking behavior.
  • 2016: 3.0.0 rewrites documentation, file processing, plugin dispatch, and formatter extension points.
  • 2020s: 7.x release series appears in the official release history.

Related projects

  • pycodestyle supplies PEP 8 style checks and E/W error-code classes.
  • PyFlakes supplies lint checks such as unused imports and F error codes.
  • McCabe supplies complexity checks and C error codes.
  • Third-party flake8 plugins distributed through PyPI add checks and formatters.

安全态势

风险级别:绿色

narrow executable package without higher-risk signals.

风险分类器

绿色 风险 · 低 置信度 · appliance

原因

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

安装行为

  • formula 元数据中未记录 Homebrew post-install 钩子。
  • Homebrew bottle 元数据适用于 1 个平台目标。
  • 安装时包含 1 个运行时依赖。

建议审查

在无人值守的代理使用前,请检查该工具是否读取明文凭据、写入远程状态、发布制品或调用插件。

local files

Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.

Configuration files

Config paths the tool may read or write during local use.

Unix
setup.cfgtox.ini.flake8

可执行文件

已安装的可执行文件

命令类型暴露范围备注
flake8cli全局可执行文件

新鲜度

版本和新鲜度

这些信号区分页生成时间、软件包管理器活动和上游发布比较。只有存在证据 URL 和可比较版本时,才会提示版本落后。

页面生成时间2026-07-24
管理器版本7.3.0
管理器更新时间
本地数据OK
上游not checked
检测到的最新版本未检测到

https://flake8.pycqa.org/

  • 信息No package-manager update timestamp was available.低 置信度
  • 信息Release/tag comparison is only available for GitHub repositories.https://flake8.pycqa.org/none 置信度

安装元数据

软件包元数据

软件包键brew:flake8
版本7.3.0
软件包管理器Homebrew
软件包管理器页面https://formulae.brew.sh/formula/flake8
主页https://flake8.pycqa.org/
仓库https://github.com/PyCQA/flake8
上游文档https://flake8.pycqa.org/en/latest
许可证MIT
源码归档https://files.pythonhosted.org/packages/9b/af/fbfe3c4b5a657d79e5c47a2827a362f9e1b763336a52f926126aa6dc7123/flake8-7.3.0.tar.gz
依赖python@3.14
Bottle可用 (于 all)
Homebrew post-install未定义
服务未声明

注册表事实

源数据库详情

Source DatabaseHomebrew formula API
Taphomebrew/core
Full Nameflake8
Version Scheme0
Revision0
Head VersionHEAD
Bottle Stable Root URLhttps://ghcr.io/v2/homebrew/core
Deprecatedno
Disabledno
Keg Onlyno
URL Keys
  • head
  • stable

源数据库匹配

其他软件包管理器记录

匹配项来自外部软件包管理器索引,并与本地 Automic Vault 软件包链接分开显示。

Debian apt95%

flake8 7.1.1-3

code checker using pycodestyle and pyflakes

https://github.com/pycqa/flake8

sudo apt install flake8
  • Section: python
  • Architecture: all
  • Source Package: python-flake8
  • 2 依赖
  • normalized package name match
  • 匹配方式:Flake8
Debian stable package indexes · deb.debian.org · Debian stable package indexes: flake8 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Ubuntu apt95%

flake8 7.0.0-1

code checker using pycodestyle and pyflakes

https://github.com/pycqa/flake8

sudo apt install flake8
  • Section: universe/python
  • Architecture: all
  • Source Package: python-flake8
  • 3 依赖
  • normalized package name match
  • 匹配方式:Flake8
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: flake8 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
pacman95%

python-flake8 1:7.3.0-2

The modular source code checker: pep8, pyflakes and co

https://flake8.pycqa.org

sudo pacman -S python-flake8
  • License: MIT
  • Architecture: any
  • 5 依赖
  • 1 提供
  • normalized package name match
  • 匹配方式:Flake8
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: python-flake8 from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

来源线索

由仓库数据生成

此页面由 av-webscripts/generate-pkg-sqlite.py 生成的私有软件包 SQLite 工件提供。

使用的来源

  • Geiger risk classifier
  • Nucleus package database
  • av.db category and tag curation
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • package relationship graph
  • package version freshness
  • package-page enrichment