Skip to content
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

Format with black #123

Merged
merged 5 commits into from
Nov 6, 2023
Merged

Conversation

HarryMichal
Copy link
Contributor

Helps with #97.

@codecov
Copy link

codecov bot commented Oct 6, 2023

Codecov Report

Attention: 14 lines in your changes are missing coverage. Please review.

Comparison is base (7bb6bdd) 98.61% compared to head (d1bb9a6) 98.61%.

Additional details and impacted files
@@           Coverage Diff           @@
##            devel     #123   +/-   ##
=======================================
  Coverage   98.61%   98.61%           
=======================================
  Files         130      130           
  Lines        8594     8594           
=======================================
  Hits         8475     8475           
  Misses        119      119           
Flag Coverage Δ
coverage-3.10 98.58% <98.67%> (-0.02%) ⬇️
coverage-3.11 98.56% <98.67%> (+0.01%) ⬆️
coverage-3.9 98.61% <98.67%> (+0.01%) ⬆️

Flags with carried forward coverage won't be shown. Click here to find out more.

Files Coverage Δ
perun/check/best_model_order_equality.py 100.00% <100.00%> (ø)
perun/check/factory.py 99.31% <100.00%> (ø)
perun/check/fast_check.py 100.00% <100.00%> (ø)
perun/check/general_detection.py 100.00% <100.00%> (ø)
perun/check/integral_comparison.py 100.00% <100.00%> (ø)
perun/check/local_statistics.py 100.00% <100.00%> (ø)
perun/check/nonparam_helpers.py 100.00% <100.00%> (ø)
perun/check/polynomial_regression.py 100.00% <100.00%> (ø)
perun/cli.py 100.00% <100.00%> (ø)
perun/cli_groups/check_cli.py 100.00% <100.00%> (ø)
... and 111 more

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@JiriPavela
Copy link
Collaborator

Good job, please fix the typing errors first and then I will look into the individual files and see whether we need to custom-format (# fmt: off) some code constructs (typically collections of large number of constants, etc.).

@HarryMichal HarryMichal force-pushed the format-with-black branch 2 times, most recently from 32a7a06 to b200836 Compare November 2, 2023 13:57
HarryMichal and others added 3 commits November 5, 2023 18:15
Also, add a note about the tool in the CONTRIBUTING guidelines.
The line length parameter has been set to 100, as this is the line
length we have been using throughout the development of Perun.
Base black configuration does not format strings that are too long.
A `--experimental-string-processing` flag has been used to format
them properly.
Copy link
Collaborator

@JiriPavela JiriPavela left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I polished the PR and I think we are ready for a merge. There might still be some code blocks that were perhaps formatted too aggressively, but we can solve those ad-hoc as we spot them.

Also, there are some Codacy issues that I believe were in the codebase before this PR, but they were likely triggered again by the formatting changes. I would leave fixing those issues for the #133.

"vcs": ["git"],
"collect": ["trace", "memory", "time"],
"postprocess": ["filter", "normalizer", "regression-analysis"],
"view": [
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't really like how black formatted this.

@tfiedor tfiedor merged commit 542d399 into Perfexionists:devel Nov 6, 2023
12 checks passed
@HarryMichal HarryMichal deleted the format-with-black branch November 7, 2023 13:18
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants