🍺 BREW Explorer

← all formulae

fprettify

brew install fprettify v0.3.7 GPL-3.0-or-later

Auto-formatter for modern fortran source code

103
30-day installs · #3436
249
90-day · #3833
1.4k
365-day · #3341
428
★ GitHub stars · updated 6mo ago

Runtime dependencies

GitHub topics

auto-formatter coding-style developer-tools fortran

Links

Raw metadata
{
  "aliases": [],
  "alternatives": [],
  "build_dependencies": [],
  "categories": [],
  "caveats": null,
  "conflicts_with": [],
  "dependencies": [
    "python@3.14"
  ],
  "deprecated": 0,
  "deprecation_reason": null,
  "desc": "Auto-formatter for modern fortran source code",
  "disable_reason": null,
  "disabled": 0,
  "enrichment_fetched_at": "2026-06-20T23:37:48+00:00",
  "first_seen": "2026-06-20T23:34:18+00:00",
  "full_name": "fprettify",
  "github_default_branch": "master",
  "github_last_commit_at": "2026-02-22T12:32:14Z",
  "github_readme_excerpt": "# fprettify\n\n[![CI](https://github.com/pseewald/fprettify/actions/workflows/test.yml/badge.svg)](https://github.com/pseewald/fprettify/actions/workflows/test.yml)\n[![Coverage Status](https://coveralls.io/repos/github/pseewald/fprettify/badge.svg?branch=master)](https://coveralls.io/github/pseewald/fprettify?branch=master)\n![PyPI - License](https://img.shields.io/pypi/l/fprettify)\n![PyPI](https://img.shields.io/pypi/v/fprettify)\n[![Code Climate](https://codeclimate.com/github/pseewald/fprettify/badges/gpa.svg)](https://codeclimate.com/github/pseewald/fprettify)\n\nfprettify is an auto-formatter for modern Fortran code that imposes strict whitespace formatting, written in Python.\n\n## Features\n\n- Auto-indentation.\n- Line continuations are aligned with the previous opening delimiter `(`, `[` or `(/` or with an assignment operator `=` or `=\u003e`. If none of the above is present, a default hanging indent is applied.\n- Consistent amount of whitespace around operators and delimiters.\n- Removal of extraneous whitespace and consecutive blank lines.\n- Change letter case (upper case / lower case conventions) of intrinsics\n- Tested for editor integration.\n- By default, fprettify causes whitespace changes only and thus preserves revision history.\n- fprettify can handle cpp and [fypp](https://github.com/aradi/fypp) preprocessor directives.\n\n## Limitations\n\n- Works only for modern Fortran (Fortran 90 upwards).\n- Feature missing? Please create an issue.\n\n## Requirements\n\n- Python 3 (Python 2.7 no longer supported)\n- [ConfigArgParse](https://pypi.org/project/ConfigArgParse): optional, enables use of config file\n\n## Examples\n\nCompare `examples/*before.f90` (original Fortran files) with `examples/*after.f90` (reformatted Fortran files) to see what fprettify does. A quick demonstration:\n\n```Fortran\nprogram demo\ninteger :: endif,if,elseif\ninteger,DIMENSION(2) :: function\nendif=3;if=2\nif(endif==2)then\nendif=5\nelseif=if+4*(endif+\u0026\n2**10)\nelseif(endif==3)then\nfunction(if)=endif/elseif\nprint*,end",
  "github_repo": "fortran-lang/fprettify",
  "github_stars": 428,
  "github_topics": [
    "auto-formatter",
    "coding-style",
    "developer-tools",
    "fortran"
  ],
  "homepage": "https://github.com/fortran-lang/fprettify/",
  "homepage_og_description": null,
  "homepage_og_image": null,
  "homepage_title": null,
  "installs_30d": 103,
  "installs_365d": 1366,
  "installs_90d": 249,
  "keg_only": 0,
  "keg_only_reason": null,
  "last_seen": "2026-06-20T23:34:18+00:00",
  "license": "GPL-3.0-or-later",
  "llm_generated_at": null,
  "llm_model": null,
  "name": "fprettify",
  "oldnames": [],
  "one_liner": null,
  "optional_dependencies": [],
  "rank_30d": 3436,
  "rank_365d": 3341,
  "rank_90d": 3833,
  "raw_hash": "781c431a2425883b",
  "recommended_dependencies": [],
  "revision": 0,
  "ruby_source_path": "Formula/f/fprettify.rb",
  "tap": "homebrew/core",
  "test_dependencies": [
    "gcc"
  ],
  "uses_from_macos": [],
  "version_head": "HEAD",
  "version_stable": "0.3.7",
  "versioned_formulae": [],
  "why_use_this": null
}