-
Notifications
You must be signed in to change notification settings - Fork 178
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
feat: add --config cli argument #1081
Conversation
Looks like there's a few build failures related to different APIs on different Python versions. Before I fix each of them, is this a contribution you'd be interested in? |
Apart from needing a rebase on Should @reiddraper continue this work? @Nytelife26 @suchow |
Thanks for bringing this to my attention, @carlsmedstad. I'll get to work on bringing it up to date and merging now, since it is a useful feature. We could also put automatically detecting proselintrc files up to the filesystem boundary as part of this PR, too, but that's another thing. |
I'm a proponent of the pattern of having three levels of configuration:
system, user and project scope.
Me too ultimately. The user configuration should check `~/.config` too, though.
|
This is useful for projects that want to provide their own proselintrc which is stored in the repository for the project itself. Further, it's useful for installations where putting a config-file outside of a sandboxed directory is not possible.
c32e60c
to
f599aeb
Compare
Codecov Report
@@ Coverage Diff @@
## main #1081 +/- ##
==========================================
+ Coverage 89.20% 90.19% +0.98%
==========================================
Files 83 83
Lines 1214 1203 -11
==========================================
+ Hits 1083 1085 +2
+ Misses 131 118 -13
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Definitely, I could make a PR tomorrow if you'd like? |
@Nytelife26 The CI run is failing here for one substantive reason (coverage) and one transition-to-Github-actions reason. In particular, something is breaking during the Danger action. |
@Nytelife26 The CI run is failing here for one substantive reason
(coverage) and one transition-to-Github-actions reason. In particular,
something is breaking during the Danger action.
I am aware of the coverage issue. The test suite is not currently very
comprehensive, it seems.
As for the Danger action, I believe that is a result of the force push I
performed following the rebase, given that Danger specifies that as a
potential cause in the error log.
|
4b81c01
to
6b9ef53
Compare
cc: @suchow |
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.
The new test looks good, just need to import subprocess
up top and I think it should be good to go!
b825a57
to
b58254d
Compare
This doesn't resolve #1091, which is about individual checks versus categories. |
This is useful for projects that want to provide their own proselintrc
which is stored in the repository for the project itself. Further, it's
useful for installations where putting a config-file outside of a
sandboxed directory is not possible.
Resolves #356. Resolves #1091.