-
Notifications
You must be signed in to change notification settings - Fork 23
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
[WIP] init commit for flakehell and black checks in the project #1088
Conversation
Isn't black already invoked with the test https://github.com/equinor/gordo/blob/master/tests/test_formatting.py? |
hm, seems like it's, but in a little bit weird way (through tests). And I can't see usual configs for black. So we'll have (before local push and on the CI):
@flikka What do you think? Update:
Or maybe I missed smth? |
8a68e00
to
dbb750e
Compare
# Conflicts: # .github/workflows/master-ci.yml # README.md
6092ff7
to
98835e0
Compare
The configs were kept default (therefore no configs) intentionally, to make it as "standard" as possible (according to Black).
Agreed, many commits in Gordo's PR's are "fix formatting, or fix black", so I totally agree! One can also make it integrated in your own dev environment, for example in PyCharm with auto-black on save or similar.
If you see the CI for other PRs, or main, you can see that black is run, with no errors. The reason you get errors now is precisely because you also change the black config by setting the Keep up the good work 👍 |
Codecov Report
@@ Coverage Diff @@
## master #1088 +/- ##
==========================================
+ Coverage 94.66% 94.70% +0.03%
==========================================
Files 61 61
Lines 2908 2928 +20
==========================================
+ Hits 2753 2773 +20
Misses 155 155
Continue to review full report at Codecov.
|
2e1bee2
to
161916c
Compare
Closing this PR due to some issues. |
Test adding flakehell code checker and black formatter to the project and CI.
Check should be made only for the new changes brought in the PRs, old code will be "unified" with time.
Styles and best practices to be checked/allowed/forbidden by checker - TBD. Feel free to contribute :)