-
Notifications
You must be signed in to change notification settings - Fork 8
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
Conversation
.pre-commit-config.yaml
Outdated
@@ -4,11 +4,11 @@ repos: | |||
hooks: | |||
- id: autopep8 | |||
- repo: https://github.com/PyCQA/isort | |||
rev: '5.10.1' | |||
rev: '5.13.2' |
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.
Had to update problematic versions to avoid errors on pre-commit
parser.add_argument("--check", action="store_true") | ||
parser.add_argument("--no-error-on-fix", action="store_true") |
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.
Can also provide some minimal Readme.md to reflect changes
Fix pre-commit versions
Codecov ReportAttention: Patch coverage is
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
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
Looks good, thanks! |
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