-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
pre-commit: clean up Python flake8 excludes with black #9793
base: main
Are you sure you want to change the base?
pre-commit: clean up Python flake8 excludes with black #9793
Conversation
@blueorangutan package |
@jbampton a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #9793 +/- ##
===========================================
Coverage 15.78% 15.78%
- Complexity 12564 12565 +1
===========================================
Files 5627 5627
Lines 492250 492250
Branches 61405 62888 +1483
===========================================
Hits 77710 77710
Misses 406066 406066
Partials 8474 8474
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11339 |
@blueorangutan test |
@vishesh92 a [SL] Trillian-Jenkins test job (ol8 mgmt + kvm-ol8) has been kicked to run smoke tests |
[SF] Trillian test result (tid-11672)
|
d0544ee
to
9749d1b
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
clgtm
@blueorangutan package |
@vishesh92 a [SL] Jenkins job has been kicked to build packages. It will be bundled with KVM, XenServer and VMware SystemVM templates. I'll keep you posted as I make progress. |
@DaanHoogland @jbampton should we add |
Hey @vishesh92 I added black pre-commit on Apache Sedona here: There are a lot more pre-commit hooks we can add to CloudStack including black. I was waiting for some of my PRs to be merged before adding more pre-commit hooks |
Packaging result [SF]: ✔️ el8 ✔️ el9 ✔️ debian ✔️ suse15. SL-JID 11435 |
https://github.com/psf/black
https://black.readthedocs.io/en/stable/
Description
This PR now allows us to check all our Python files with flake8.
The excluded files have been cleaned up and formatted with black.
"By using Black, you agree to cede control over minutiae of hand-formatting. In return, Black gives you speed, determinism, and freedom from pycodestyle nagging about formatting. You will save time and mental energy for more important matters.
Black makes code review faster by producing the smallest diffs possible. Blackened code looks the same regardless of the project you’re reading. Formatting becomes transparent after a while and you can focus on the content instead."
Types of changes
Feature/Enhancement Scale or Bug Severity
Feature/Enhancement Scale
Bug Severity
Screenshots (if appropriate):
How Has This Been Tested?
First ran
black
on the excluded files.Then ran:
pre-commit run --all-files
and the flake8 test passed.How did you try to break this feature and the system with this change?