{"repo":"fortran-lang/fprettify","free":true,"listed":false,"github":"https://github.com/fortran-lang/fprettify","clone":"git clone https://github.com/fortran-lang/fprettify.git","description":"auto-formatter for modern fortran source code","language":"Python","stars":431,"topics":["fortran","developer-tools","auto-formatter","coding-style"],"license":null,"category":"dev-tools","readme_excerpt":"fprettify fprettify is an auto-formatter for modern Fortran code that imposes strict whitespace formatting, written in Python. Features - Auto-indentation. - Line continuations are aligned with the previous opening delimiter ( , or (/ or with an assignment operator = or = . If none of the above is present, a default hanging indent is applied. - Consistent amount of whitespace around operators and delimiters. - Removal of extraneous whitespace and consecutive blank lines. - Change letter case (upper case / lower case conventions) of intrinsics - Tested for editor integration. - By default, fprettify causes whitespace changes only and thus preserves revision history. - fprettify can handle cpp and [fypp preprocessor directives. Limitations - Works only for modern Fortran (Fortran 90 upwards). - Feature missing? Please create an issue. Requirements - Python 3 (Python 2.7 no longer supported) - ConfigArgParse: optional, enables use of config file Examples Compare examples/ before.f90 (original Fortran files) with examples/ after.f90 (reformatted Fortran files) to see what fprettify does. A quick demonstration: ⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩ fprettify ⇩⇩⇩⇩⇩⇩⇩⇩⇩⇩ Installation The latest release can be installed using pip: Installation from source requires Python Setuptools: For local installation, use --user option. If you use the Conda package manager, fprettify is available from the conda-forge channel: Command line tool Autoformat file1, file2, ... inplace by The default indent is 3. If you prefer ","default_branch":null,"files":null,"tree":[],"storefront":"/r/fortran-lang","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/fortran-lang/fprettify/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}