Skip to content

Commit c0b0b0e

Browse files
committed
add a fprettify style file
For a more consistent code formatting in the snippets of Fortran, a fprettify style file was added. On occasion, its results will be overridden though; eventually, it will be removed, too. Signed-off-by: Norwid Behrnd <[email protected]>
1 parent a9adf8c commit c0b0b0e

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
# style configuration file for fprettify
2+
# original source: https://github.com/PHOTOX/ABIN/blob/master/.fprettify.rc
3+
# original author: Daniel Hollas
4+
# original licence: GPL v3
5+
#
6+
# minor edits to the original to fit better the pattern other booklets use
7+
8+
# Replace Fortran-style relational operators with C-style
9+
# to make our code more readable for non-Fortran programmers
10+
# for example '.lt.' to '<'
11+
enable-replacements=False # in the original: True
12+
c-relations=False # in the original: True
13+
14+
# White space settings
15+
indent=2 # in the original 3
16+
line-length=132
17+
strict-indent=True
18+
strip-comments=True
19+
whitespace-relational=True
20+
whitespace-logical=True
21+
whitespace-plusminus=True
22+
whitespace-multdiv=True
23+
whitespace-comma=True
24+
whitespace-intrinsics=True
25+
whitespace-print=False
26+
whitespace-type=False
27+
28+
# Control whitespace around '::' declarations
29+
whitespace-decl=True
30+
enable-decl=False # in the original: True (then lines shrink)
31+
32+
# Don't indent pre-processor statements
33+
disable-fypp=True
34+
35+
case=[1,1,1,2]
36+
exclude=[random.F90,fftw3.F90,force_cp2k.F90, h2o_schwenke.f, h2o_cvrqd.f]

0 commit comments

Comments
 (0)