fprettify
fprettify copied to clipboard
auto-formatter for modern fortran source code
It's a useful feature and should not be too hard to implement
Old Fortran construct for numbered do loops are not properly "de-dented" This construct is still supported in more modern Fortran as far as I know. Example 1, the ````end```` statement...
Right now whitespace formatting can be turned on/off for everything and some options allow to add/remove whitespaces around "operators". There is no option to leave whitespace "as-is" for selected "operators"....
There are two different testing mechanisms in place: 1) unit tests (hard-coded Fortran snippets) 2) testing by cloning Fortran projects For 1) non-default command line options can be tested, but...
...by not overriding n or more consecutive whitespace characters. The number n (by default n=2) should be a command line option. For discussion, see #12 and #29
I've seen a code which mixes `.gt.` and `>` - awful! Thought about contributing this... but stumbled across the longish `__init__.py`. It's very difficult to find out where such a...
Hi, precompiler directives such as `#ifdef` can break indentation, see for example this piece of code after reformatting with `fprettify`: ```fortran module pure function lo_frobnorm(m) result(nrm) real(flyt), dimension(:, :), intent(in)...
- [x] Moves the build from setup.py to setup.cfg and pyproject.toml, since setup.py will soon be deprecated. - [x] Uses setuptools_scm for automatic version incrementation. Can be inferred from git...
Updates shields for CI and PyPi Liecense PyPi version and formatted Markdown
The existing `unittests` framework does not appear to be catching all errors. I propose we swap to `pytest` for mainly 2 reasons: - allows for parallel runs e.g. pytest -n...