Skip to content

Align configurations of black and isort. #768

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

Merged
merged 1 commit into from
Oct 20, 2021

Conversation

dblock
Copy link
Member

@dblock dblock commented Oct 20, 2021

Signed-off-by: dblock [email protected]

Description

Adds a pyproject.toml with black and isort configurations aligned, and on the same line length as flake8. With this change one does not attempt to auto-correct the other. Ran the auto-formatter on all of the source once which is all the other changes.

Extracted from #767.

Check List

  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

@dblock dblock requested review from VachaShah and gaiksaya October 20, 2021 14:34
@codecov-commenter
Copy link

codecov-commenter commented Oct 20, 2021

Codecov Report

Merging #768 (42dfa6e) into main (8af675b) will not change coverage.
The diff coverage is 84.95%.

Impacted file tree graph

@@           Coverage Diff           @@
##             main     #768   +/-   ##
=======================================
  Coverage   91.30%   91.30%           
=======================================
  Files          75       75           
  Lines        1990     1990           
=======================================
  Hits         1817     1817           
  Misses        173      173           
Impacted Files Coverage Δ
src/run_bwc_test.py 93.75% <ø> (ø)
src/run_ci.py 82.35% <0.00%> (ø)
src/run_perf_test.py 0.00% <0.00%> (ø)
src/system/config_file.py 93.02% <ø> (ø)
src/system/properties_file.py 97.36% <ø> (ø)
src/test_workflow/test_recorder/test_recorder.py 46.26% <0.00%> (ø)
...rc/test_workflow/test_recorder/test_result_data.py 100.00% <ø> (ø)
src/test_workflow/test_result/test_result.py 88.88% <0.00%> (ø)
..._workflow/opensearch/build_artifact_check_maven.py 94.73% <50.00%> (ø)
src/run_build.py 85.00% <50.00%> (ø)
... and 38 more

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 6bef043...42dfa6e. Read the comment docs.


[tool.isort]
profile = "black"
line_length = 160
Copy link
Member

Choose a reason for hiding this comment

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

What is the difference between line 7 and line 2

Copy link
Member Author

Choose a reason for hiding this comment

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

They apply to two different tools (isort vs. black).

@dblock dblock merged commit 60345d6 into opensearch-project:main Oct 20, 2021
@dblock dblock deleted the black-line-length branch October 20, 2021 18:23
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.

5 participants