Closed matthuska closed 2 years ago
I just noticed that the end of line formatter is messing with .tsv files. I'll abort this for now and find a workaround.
Please "Squash and merge" this if you accept it, so that the changes to the meta.tsv file are not in the history (the file was modified and then reverted in the next commit).
Now that we have no flake8/linter messages (thanks @silenus092 !) we can enable pre-commit hooks to only allow a commit when there are no linter messages. Additionally the hooks will check for import formatting and code formatting using zimports and black, and automatically make the necessary changes. Just do "git commit" again if there are only formatting changes, they files will have been modified by black/zimports/etc already.
Be sure to run
pre-commit install
in thecovsonar/
repo directory to install these (I added this to the CONTRIBUTING.md TLDR).