From 4ca90fc8ae747a11bfe82b7bf0b524bb311923fb Mon Sep 17 00:00:00 2001 From: Spencer Bryngelson Date: Fri, 10 Apr 2026 23:12:10 -0400 Subject: [PATCH] Add ffmt Fortran formatter --- data/tools/ffmt.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 data/tools/ffmt.yml diff --git a/data/tools/ffmt.yml b/data/tools/ffmt.yml new file mode 100644 index 000000000..e39fdb5f2 --- /dev/null +++ b/data/tools/ffmt.yml @@ -0,0 +1,21 @@ +name: ffmt +categories: + - formatter +tags: + - fortran +license: MIT +types: + - cli +source: "https://github.com/sbryngelson/ffmt" +homepage: "https://pypi.org/project/ffmt/" +description: >- + A fast, configurable Fortran formatter with support for Fypp, Doxygen, and + OpenACC/OpenMP directives. Written in Rust, installable via pip. + + Handles indentation, whitespace normalization, keyword casing, named ends, + line wrapping, operator modernization (.eq. -> ==), double-colon enforcement, + comment rewrapping and inline spacing, blank line management, and + preprocessor directives (Fypp, C preprocessor, OpenACC, OpenMP). + Opt-in features include multi-statement splitting, assignment alignment, + and use-statement reformatting. Supports LSP, parallel formatting, + stdin/stdout, and CI check mode.