protontypes / LibreSelery

Continuous distribution of funding to your project contributors and dependencies. Integrated into GitHub Actions
GNU Affero General Public License v3.0
124 stars 18 forks source link

add black github action #97

Closed krux02 closed 4 years ago

krux02 commented 4 years ago

black is a style checker and fixer for python. This config implements style checks for commits.

krux02 commented 4 years ago

@Ly0n Maybe you know how to interpret the error message. I don't know what could have gone wrong. This doesn't seem to be a problem of linting itself.

krux02 commented 4 years ago

@Ly0n I had to include the actual style check changes in this PR otherwise the github action would fail. The github action does not do on its own a commit. On the plus side, black is very easy to integrate in any editor so that it runs befor every safe. The .git-blame-ignore-revs is more meh that I hoped it would be, because it has to be passed to git blame as an argument each time it is executed. It can also be put into git config, but that config is a local configuration. This commit will still be visible on any other machine. But it is better than not having this list at all.