# 使用 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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
- **版本:** 0.3.7
- **来源摘要:** Auto-formatter for modern fortran source code
- **主页:** <https://github.com/fortran-lang/fprettify/>
- **仓库:** <https://github.com/fortran-lang/fprettify>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- fprettify (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 0.3.7
## 项目历史与用法

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
## 其他软件包管理器记录

- 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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-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/07190dc5ae9f35ae73866675fed6d95fe6e8d9fe22c9d7cdf85862cb2ed24a4c-primary.xml.zst | Python library for fprettify | https://github.com/pseewald/fprettify


## 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
- curated configuration and credential file locations
- curated package history
- pkgdb category and tag curation
- external package-manager database matches
- cross-ecosystem install command graph
