-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Fixes from Fortitude linter #190
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #190 +/- ##
=======================================
Coverage 92.84% 92.84%
=======================================
Files 47 47
Lines 6760 6761 +1
Branches 764 764
=======================================
+ Hits 6276 6277 +1
Misses 472 472
Partials 12 12
Flags with carried forward coverage won't be shown. Click here to find out more.
|
With the current configuration and fortitude 0.6, only 4 errors remain.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All the changes look reasonable.
Applies fixes from Fortitude linter, see #189 for more info.
You can install fortitude with uv (or pip/pipx)
uv tool install fortitude-lint
And run it on the codebase
fortitude check src/
Most of the fixes are adding the
intent
attribute to functions/subroutine parameters, missing (or superfluous)implicit none
, and missing kind parameter on number constants (0.5
->0.5D0
)In this PR I don't add Fortitude in CI (yet) since it is currently missing some configuration capability that we need. In particular, it's not possible to skip files. We need to skip
FFTW3.F90
andforce_cp2k.F90
. The former is autogenerated file that we should not touch. The latter for some reason contains some weird errors that I was too lazy to understand (and this file is not really important now).