-
Notifications
You must be signed in to change notification settings - Fork 0
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
Add linters for Docker, Go, Python, and Shell #57
Conversation
Rebasing was easier on a new branch. Moved Jo's comment from to here and closed the old MR. |
…can be annoying in a pre-commit hook. In the pipeline we might want to have it after building and publishing the image.
3549da3
to
823d9a9
Compare
I have updated the README.md in the root of the repository and added the steps to install and work with the pre-commit hook.
For me, it is the reason why I favour linters and formatters. Using them enables anyone to pick the editor they like. Because the tool is then responsible for the formatting and not the editor. Someone can then use VSCode, Intelij or even notepad.
The first time - which is in this MR - there is a lot of noise, thereafter the formatting should be the same for everyone. This should minimise the diffs. |
I think what Jo is worried about is formatting "ping-pong". The editor saves with "format A", the pre-commit hooks run, reformat the code to "format B", the editor puts it back to "format A", etc. But maybe we should just try it? As this MR adds only a single space to the Go code, and we have no issues with this in Python (although not sure if anybody uses vscode in our group) with these linters. |
…action as it is in maintenance only mode.
e913004
to
dd1449f
Compare
First, the refactoring of the project needs to be merged (See this branch: https://github.com/EURODEO/e-soh-datastore-poc/tree/generalize_putobservations), and then this PR can be merged.DoneThis PR contains: