# 使用 Homebrew, dnf, Nix 安装 fprettify

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

## 安装

```sh
sudo av install brew:fprettify
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install fprettify
```

  证据: local Homebrew formula metadata

### Linux

- dnf (92%):

```sh
sudo dnf install fprettify
```

  证据: Fedora Rawhide package metadata: fprettify from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst

- Nix (92%):

```sh
nix profile install nixpkgs#fprettify
```

  证据: nixpkgs package indexes: pkgs/by-name/fp/fprettify/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## 软件包事实

- **软件包键:** brew:fprettify
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/fprettify>
- **版本:** 0.3.7
- **来源摘要:** Auto-formatter for modern fortran source code
- **主页:** <https://github.com/fortran-lang/fprettify/>
- **仓库:** <https://github.com/fortran-lang/fprettify>
- **上游文档:** <https://github.com/fortran-lang/fprettify/>
- **许可证:** GPL-3.0-or-later
- **源码归档:** <https://files.pythonhosted.org/packages/39/15/d88681bd2be4a375a78b52443b8e87608240913623d9be5c47e3c328b068/fprettify-0.3.7.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- fprettify (cli)
- fprettify (别名)

## 依赖

- python@3.14

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.3.7
- 本地数据: OK
- 上游仓库: https://github.com/fortran-lang/fprettify
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

fprettify is a Python-based auto-formatter for modern Fortran source code. Its official README emphasizes strict whitespace formatting, indentation, continuation alignment, comment spacing, and support for modern Fortran beginning with Fortran 90.

### 项目历史

The official source headers identify Patrick Seewald and the CP2K developers group as early copyright holders for the formatter. GitHub redirects the former pseewald/fprettify repository to fortran-lang/fprettify, and the current repository is maintained under the Fortran-lang organization.

The release history begins with v0.1 in August 2016, reaches v0.3 in November 2016, and continues through v0.3.7 in November 2020. The README records the later Python 3 requirement and notes that Python 2.7 support is no longer present.

### 采用历史

Official installation instructions cover pip installation and conda-forge installation. The README also documents editor integration, especially Vim formatprg usage, and describes integration-test suites against external Fortran code bases.

### 使用方式

The command formats one or more files in place, can recurse through Fortran source trees, can write diffs or stdout instead of editing, and can be silenced for editor integration. With ConfigArgParse installed it reads ~/.fprettify.rc plus .fprettify.rc files in parent directories of the input file, starting from the current directory when reading stdin.

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

fprettify is significant because it brings the formatter-as-a-tool pattern to a language with long-lived formatting conventions and many legacy codebases. It is small, Python-packaged, editor-friendly, and useful in CI or pre-commit workflows for Fortran projects that want whitespace-only formatting by default.

### 时间线

- 2016: v0.1 was published as the first GitHub release.
- 2016: v0.3 was published later the same year.
- 2018: v0.3.2 and v0.3.3 were published.
- 2019: v0.3.4 and v0.3.5 were published.
- 2020: v0.3.6 and v0.3.7 were published.

### Related projects

- The README names fypp preprocessor directives as supported input and ConfigArgParse as the optional dependency enabling configuration files. Its current home under fortran-lang places it near the Fortran Package Manager and other modern Fortran tooling.

### 来源

- <https://api.github.com/repos/fortran-lang/fprettify/releases?per_page=20>
- <https://github.com/pseewald/fprettify>
- <https://raw.githubusercontent.com/fortran-lang/fprettify/master/README.md>
- <https://raw.githubusercontent.com/fortran-lang/fprettify/master/fprettify/__init__.py>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals


## 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

- Unix: ~/.fprettify.rc, .fprettify.rc in parent directories of the input file, for stdin, .fprettify.rc search starts in the current directory
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** fprettify
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## 其他软件包管理器记录

- Nix - fprettify: normalized package name match | nixpkgs package indexes: pkgs/by-name/fp/fprettify/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- dnf - fprettify - 0.3.7-22.fc45: normalized package name match | Fedora Rawhide package metadata: fprettify from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Auto-formatter for modern Fortran source code | https://github.com/pseewald/fprettify
- dnf - python3-fprettify - 0.3.7-22.fc45: normalized package name match | Fedora Rawhide package metadata: python3-fprettify from https://dl.fedoraproject.org/pub/fedora/linux/development/rawhide/Everything/x86_64/os/repodata/210a2053c8e007daf9ae39c2a21daaed9b2ddd07d63ecffa597050361e73650c-primary.xml.zst | Python library for fprettify | https://github.com/pseewald/fprettify


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [python@3.14](https://pkg.so/zh-hans/brew/python-3-14/) - Runtime dependency declared by Homebrew.
- [findent](https://pkg.so/zh-hans/brew/findent/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, fortran, source-code.
- [black](https://pkg.so/zh-hans/brew/black/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, python.
- [swift-format](https://pkg.so/zh-hans/brew/swift-format/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, source-code.
- [isort](https://pkg.so/zh-hans/brew/isort/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, python.
- [yamlfix](https://pkg.so/zh-hans/brew/yamlfix/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, python.
- [yapf](https://pkg.so/zh-hans/brew/yapf/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, python.
- [snakefmt](https://pkg.so/zh-hans/brew/snakefmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, python.
- [dfmt](https://pkg.so/zh-hans/brew/dfmt/) - Shares pkgdb curated category or tags: cli, developer-tools, formatter, source-code.
- [autopep8](https://pkg.so/zh-hans/brew/autopep8/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, developer, developer-tools, formatter.
- [darker](https://pkg.so/zh-hans/brew/darker/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, developer, developer-tools, formatter.
- [djhtml](https://pkg.so/zh-hans/brew/djhtml/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, code, developer, developer-tools, formatter.

## Combined YAML source

View the package source record on GitHub. [combined/fprettify.yml](https://github.com/mxcl/pkgdb/blob/main/combined/fprettify.yml)


## 来源

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