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

Add --check, --no-error-on-fix flags #62

Merged
merged 2 commits into from
Oct 30, 2024
Merged

Conversation

ovsds
Copy link
Contributor

@ovsds ovsds commented Jan 8, 2024

Fix pre-commit versions

What do these changes do?

Adds flow control to enable dry-run and disable errors on fix

Are there changes in behavior for the user?

User gets control over linting flow using flags

Related issue number

Fixes #61

Checklist

  • I think the code is well written
  • Unit tests for the changes exist
  • Documentation reflects the changes

@@ -4,11 +4,11 @@ repos:
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/isort
rev: '5.10.1'
rev: '5.13.2'
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Had to update problematic versions to avoid errors on pre-commit

Comment on lines +190 to +195
parser.add_argument("--check", action="store_true")
parser.add_argument("--no-error-on-fix", action="store_true")
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Can also provide some minimal Readme.md to reflect changes

Fix pre-commit versions
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 7.69231% with 12 lines in your changes missing coverage. Please review.

Project coverage is 76.76%. Comparing base (bcb1ad2) to head (a1b04d6).
Report is 1 commits behind head on master.

Files with missing lines Patch % Lines
sort_all.py 7.69% 12 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master      #62      +/-   ##
==========================================
- Coverage   80.14%   76.76%   -3.39%     
==========================================
  Files           1        1              
  Lines         136      142       +6     
==========================================
  Hits          109      109              
- Misses         27       33       +6     
Flag Coverage Δ
unit 76.76% <7.69%> (-3.39%) ⬇️

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

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

@asvetlov
Copy link
Member

Looks good, thanks!
I'll merge the PR and update README separately.

@asvetlov asvetlov merged commit 1008d77 into aio-libs:master Oct 30, 2024
9 of 11 checks passed
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.

Add control flags
2 participants