pkg.soopen package index

brew / 順位 3263

yapf を Homebrew, Nix, pacman, apt でインストール

yapf のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

インストール

追加のインストールコマンド

macOS

Homebrew確認済み · 100%
brew install yapf

local Homebrew formula metadata

概要

パッケージ概要

Formatter for python code

コマンドとエイリアス

  • yapf
  • yapf-diff

履歴

プロジェクトの歴史と使われ方

YAPF, Yet Another Python Formatter, is Google's clang-format-inspired formatter for Python source. Unlike style checkers that only report or repair selected PEP 8 violations, YAPF searches for a low-cost layout that conforms to a chosen style and rewrites the file.

プロジェクトの歴史

The Google-owned GitHub repository was created on 2015-03-18, and PyPI history shows public 0.1.x packages in April 2015. The README explicitly says YAPF is based on clang-format, developed by Daniel Jasper, and that its goal is to produce code as good as a programmer would write while following a style guide.

YAPF's design grew out of formatter culture rather than linter culture. Its README contrasts the project with tools that remove lint errors and emphasizes a configurable formatting engine with named styles such as pep8, google, yapf, and facebook plus many individual knobs. Later changelog entries show continued maintenance for newer Python syntax and packaging shifts, including the move away from lib2to3 toward blib2to3 for Python 3.11-era parsing.

採用の歴史

YAPF became one of the main Python auto-formatters of the mid-2010s, especially for teams that wanted clang-format-style configurability instead of a single canonical layout. Its README documents editor integrations, recursive formatting, diff mode for CI checks, local style discovery, and ignore files, all of which match adoption through developer tooling, pre-submit checks, and editor save hooks.

The formatter's long-term place changed after Black popularized less-configurable formatting, but YAPF remained important where repositories wanted Google/Facebook-like styles, large configuration surfaces, or incremental compatibility with existing formatting policy.

使われ方

Typical CLI usage is `yapf -i file.py` for in-place formatting, `yapf -d` for a diff suitable for review or CI, and `yapf -r` for recursive directory formatting. The `yapf-diff` helper fits patch-oriented workflows by formatting only changed hunks.

Configuration is central to YAPF usage. The formatter searches local style files such as `.style.yapf`, `setup.cfg`, and `pyproject.toml`, supports predefined base styles, and offers many style options for projects that treat formatting as policy rather than taste.

パッケージ好きにとっての重要性

YAPF matters because it represents the configurable branch of Python formatter history: closer to clang-format and gofmt in automation, but less doctrinaire than later formatters. In package collections it is a standard example of a developer tool whose value is mostly in repeatability, editor integration, and reducing style churn in diffs.

It also shows how Python tooling had to adapt as the language parser story changed. Maintaining a formatter across Python syntax releases is partly a packaging problem: the executable must track language versions, config formats, editor plugins, and CI behavior at the same time.

タイムライン

  • 2015-03-18: google/yapf repository is created on GitHub.
  • 2015-04-07: PyPI records an early public 0.1.4 upload.
  • 2023-06-13: YAPF 0.40.0 changelog notes Python 3.11 support and replacement of lib2to3 with blib2to3.
  • 2023-09-22: YAPF 0.40.2 is published on PyPI.
  • 2024-11-14: YAPF 0.43.0 is published on PyPI.

Related projects

  • clang-format is the formatter model named by YAPF's README.
  • autopep8 and pep8ify are older Python formatting tools contrasted by YAPF's documentation.
  • Black is the later opinionated Python formatter often compared with YAPF in formatter choice discussions.

セキュリティ状態

リスクレベル: グリーン

narrow executable package without higher-risk signals.

リスク分類器

リスク グリーン · 信頼度 低 · appliance

理由

  • narrow executable package without higher-risk signals

信号

  • metadata:no-higher-risk-signals

インストール挙動

  • Homebrew bottle メタデータは記録されていません。

推奨レビュー

エージェントに無人実行させる前に、このツールが平文の認証情報を読むか、リモート状態を書き込むか、成果物を公開するか、プラグインを起動するかを確認してください。

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
.style.yapfsetup.cfgpyproject.toml~/.config/yapf/style.yapfignore

実行可能ファイル

インストールされる実行可能ファイル

コマンド種類公開範囲メモ
yapf実行可能ファイルインデックス済み実行可能ファイルローカル実行可能ファイルインデックスから検出されました。
yapf-diff実行可能ファイルインデックス済み実行可能ファイルローカル実行可能ファイルインデックスから検出されました。

鮮度

バージョンと鮮度

これらの信号は、ページ生成時期、パッケージマネージャの活動、上流リリース比較を分けて示します。バージョン遅れは、証拠 URL と比較可能なバージョンがある場合だけ警告されます。

ページ生成日2026-08-03
マネージャ版0.43.0
マネージャ更新日
ローカルデータ不明
上流利用不可
検出された最新未検出
  • OK鮮度警告は生成されていません。

インストールメタデータ

パッケージメタデータ

パッケージキーbrew:yapf
バージョン0.43.0
パッケージマネージャHomebrew
ホームページhttps://github.com/google/yapf
リポジトリhttps://github.com/google/yapf
Bottle未記録
サービス宣言なし

ソースデータベース一致

他のパッケージマネージャ記録

一致は外部パッケージマネージャインデックスから取得され、ローカルの Automic Vault パッケージリンクとは分けて表示されます。

Debian apt95%

python3-yapf 0.40.2-3

public modules for yapf (Python 3)

https://github.com/google/yapf

sudo apt install python3-yapf
  • Section: python
  • Architecture: all
  • Source Package: yapf
  • 3 依存関係
  • normalized package name match
  • 一致条件: Yapf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: python3-yapf from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Debian apt95%

yapf3 0.40.2-3

Python code formatter for different styles (Python 3)

https://github.com/google/yapf

sudo apt install yapf3
  • Section: python
  • Architecture: all
  • Source Package: yapf
  • 2 依存関係
  • normalized package name match
  • 一致条件: Yapf
Debian stable package indexes · deb.debian.org · Debian stable package indexes: yapf3 from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz
Nix95%

yapf

nix profile install nixpkgs#yapf
  • normalized package name match
  • 一致条件: Yapf
nixpkgs package indexes · raw.githubusercontent.com · nixpkgs package indexes: yapf from https://raw.githubusercontent.com/NixOS/nixpkgs/master/pkgs/top-level/all-packages.nix
Ubuntu apt95%

python3-yapf 0.33.0-1

public modules for yapf (Python 3)

https://github.com/google/yapf

sudo apt install python3-yapf
  • Section: universe/python
  • Architecture: all
  • Source Package: yapf
  • 4 依存関係
  • normalized package name match
  • 一致条件: Yapf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: python3-yapf from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
Ubuntu apt95%

yapf3 0.33.0-1

Python code formatter for different styles (Python 3)

https://github.com/google/yapf

sudo apt install yapf3
  • Section: universe/python
  • Architecture: all
  • Source Package: yapf
  • 2 依存関係
  • normalized package name match
  • 一致条件: Yapf
Ubuntu 24.04 LTS package indexes · archive.ubuntu.com · Ubuntu 24.04 LTS package indexes: yapf3 from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz
pacman95%

yapf 0.43.0-2

Python style guide checker

https://github.com/google/yapf

sudo pacman -S yapf
  • License: Apache-2.0
  • Architecture: any
  • 2 依存関係
  • normalized package name match
  • 一致条件: Yapf
Arch Linux sync databases · geo.mirror.pkgbuild.com · Arch Linux sync databases: yapf from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

ソース経路

リポジトリデータから生成

このページは scripts/generate-pkg-sqlite.py が生成した非公開のパッケージ SQLite アーティファクトから av-web によって提供されます。

使用ソース

  • Geiger risk classifier
  • cross-ecosystem install command graph
  • curated configuration and credential file locations
  • curated package history
  • external package-manager database matches
  • pkg.so package database
  • pkgdb category and tag curation