Skip to content
F

Fprettify

auto-formatter for modern fortran source code

by fortran-langFree

#3031in Developer Tools
0In stores

Description

fprettify is an auto-formatter for modern Fortran source code, written in Python. It applies strict whitespace formatting: it auto-indents c…

Highlights

  • Strict whitespace formatting for Fortran
  • Auto-indentation and aligned continuation lines
  • Upper or lower case for intrinsics
  • Whitespace-only changes by default
  • Handles cpp and fypp directives
  • Installs with pip or conda-forge

Ratings & Reviews

No ratings yet

Be the first to rate Fprettify.

People also visit

P

Prettier

An opinionated code formatter

Developer Tools
Launch
W

webfortran

Compile Fortran for multiple platforms using the WebFortran service

Developer Tools
Launch
F

Fortran Package Manager

A Fortran package manager and build system

Developer Tools
Launch
P

python-code-style

Python code style, linting, formatting, naming conventions

AI Skills
Get
C

cmakefmt

A fast, correct CMake formatter

Developer Tools
Launch
K

Keep Sorted

keep-sorted is a language-agnostic formatter

Developer Tools
Launch

Fprettify FAQ

What is fprettify?

An auto-formatter for modern Fortran code, written in Python.

Which Fortran versions does it handle?

Modern Fortran, from Fortran 90 upward. Missing features can be requested through an issue.

How do I install it?

The latest release installs with pip. Conda users can get it from the conda-forge channel.

How do I format a whole project?

Use the -r option to apply fprettify recursively to a Fortran project instead of a single file.

Does it change my code's behaviour?

By default it makes whitespace changes only, which keeps the revision history readable.

What are the best Fprettify alternatives?

Popular alternatives to Fprettify include Prettier, webfortran and Fortran Package Manager. See all Fprettify alternatives

Developer Stuff

Badges