Skip to content
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

Added pre-commit hooks to fix indentation and trailing whitespace #203

Conversation

giovannipizzi
Copy link
Member

This uses the fprettify code by P. Seewald. This fixes #190

This is a big PR because it touches almost every file, but the relevant commits to check would be ddb2ef9 and 6ef21e4 for the manual fixes to long lines, and the ones that add the pre-commit configuration.

Note that the wiki with the contributors guide is already updated to explain how to install and use the prettifier and install the git hooks.

@codecov
Copy link

codecov bot commented Oct 5, 2018

Codecov Report

Merging #203 into develop will decrease coverage by 0.04%.
The diff coverage is 55.91%.

Impacted file tree graph

@@             Coverage Diff             @@
##           develop     #203      +/-   ##
===========================================
- Coverage    61.01%   60.96%   -0.05%     
===========================================
  Files           29       29              
  Lines        16933    16961      +28     
===========================================
+ Hits         10331    10340       +9     
- Misses        6602     6621      +19
Impacted Files Coverage Δ
src/postw90/berry.F90 70.33% <ø> (ø) ⬆️
src/kmesh.F90 60.19% <ø> (ø) ⬆️
src/disentangle.F90 78.79% <ø> (ø) ⬆️
src/postw90/postw90_common.F90 64.96% <ø> (+0.1%) ⬆️
src/ws_distance.F90 62.85% <ø> (ø) ⬆️
test-suite/library-mode-test/test_library.F90 65.04% <ø> (ø) ⬆️
src/wannierise.F90 77.25% <ø> (+0.03%) ⬆️
src/wannier_prog.F90 81.96% <ø> (ø) ⬆️
src/w90chk2chk.F90 47.33% <ø> (ø) ⬆️
src/utility.F90 64.36% <ø> (ø) ⬆️
... and 31 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 7105413...6ef21e4. Read the comment docs.

Copy link
Collaborator

@VVitale VVitale left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I have checked ddb2ef9 and 6ef21e4 they both looked fine. However, I haven't checked all the other files

@giovannipizzi giovannipizzi merged commit 92b1b18 into wannier-developers:develop Oct 5, 2018
@giovannipizzi giovannipizzi deleted the aa_fix_indent_from_develop branch October 8, 2018 21:14
@giovannipizzi giovannipizzi mentioned this pull request Oct 8, 2018
manxkim pushed a commit to manxkim/wannier90 that referenced this pull request Jan 10, 2021
…ndent_from_develop

Added pre-commit hooks to fix indentation and trailing whitespace
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Trailing Whitespace
2 participants