8000 Fix black check: Option --check needed. by Spacetown · Pull Request #594 · gcovr/gcovr · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

Fix black check: Option --check needed. #594

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 2 commits into from
Mar 29, 2022

Conversation

Spacetown
Copy link
Member

The option was removed by accident when reformatting all files and apply check to all files. Session isn't failing on error.

@Spacetown Spacetown added Type: Bug QA related to testing, build infrastructure, etc labels Mar 29, 2022
@Spacetown Spacetown added this to the Upcoming release milestone Mar 29, 2022
@codecov
Copy link
codecov bot commented Mar 29, 2022

Codecov Report

Merging #594 (63b88a6) into master (ac3a0c6) will decrease coverage by 1.14%.
The diff coverage is n/a.

@@            Coverage Diff             @@
##           master     #594      +/-   ##
==========================================
- Coverage   95.63%   94.49%   -1.15%     
==========================================
  Files          23       23              
  Lines        3342     3340       -2     
  Branches      611      611              
==========================================
- Hits         3196     3156      -40     
- Misses         73      108      +35     
- Partials       73       76       +3     
Flag Coverage Δ
ubuntu-18.04 94.49% <ø> (ø)
windows-2019 ?

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

Impacted Files Coverage Δ
gcovr/tests/test_html_generator.py 50.00% <0.00%> (-50.00%) ⬇️
gcovr/utils.py 84.27% <0.00%> (-6.99%) ⬇️
gcovr/tests/test_gcovr.py 92.39% <0.00%> (-5.27%) ⬇️
gcovr/gcov.py 80.97% <0.00%> (-0.81%) ⬇️
gcovr/writer/html.py 94.92% <0.00%> (-0.57%) ⬇️
gcovr/workers.py 98.79% <0.00%> (-0.03%) ⬇️

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 ac3a0c6...63b88a6. Read the comment docs.

@Spacetown Spacetown merged commit c9eede1 into gcovr:master Mar 29, 2022
@Spacetown Spacetown deleted the fix_black_check branch March 29, 2022 20:46
@@ -97,7 +97,9 @@ def black(session: nox.Session) -> None:
if session.posargs:
session.run("python", "-m", "black", *session.posargs)
else:
session.run("python", "-m", "black", "--diff", *DEFAULT_LINT_ARGUMENTS)
session.run(
Copy link
Member

Choose a reason for hiding this comment

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

Is the black session supposed to reformat files, or to check for correct formatting? Depending on whether session arguments are provided this will do different things. Instead of adding --check, removing --diff might be a better solution.

- Fix parallel processing of gcov data (:issue:`592`)
- Remove function coverage from sonarcube report. (:issue:`591`)
- Fix parallel processing of gcov data. (:issue:`592`)
- Fix black session to fail on format errors. (:issue:`594`)
Copy link
Member

Choose a reason for hiding this comment

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

This is an internal change, so the changelog entry should be moved to the other section.

@Spacetown Spacetown added the Internal change Internal change not visible to user label Mar 29, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Internal change Internal change not visible to user QA related to testing, build infrastructure, etc Type: Bug
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants