-
Notifications
You must be signed in to change notification settings - Fork 178
refactor: modernise config #1394
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
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1394 +/- ##
==========================================
+ Coverage 91.80% 92.07% +0.26%
==========================================
Files 83 84 +1
Lines 1013 1009 -4
==========================================
- Hits 930 929 -1
+ Misses 83 80 -3
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
@drainpixie review ping :) |
Currently, _deepmerge_dicts is fallible when base contains a non-dictionary entry if overrides contains a dictionary entry of the same key. This commit updates the test for deepmerge to include that path.
Fixes a bug where deepmerge was fallible for instances where a non-dictionary entry existed in base that existed as a dictionary in overrides. This rewrite also avoids reassignments, as suggested in review. Co-authored-by: drainpixie <[email protected]>
Co-authored-by: drainpixie <[email protected]>
Co-authored-by: drainpixie <[email protected]>
This outsources path validation to the CLI (click). Co-authored-by: drainpixie <[email protected]>
Co-authored-by: drainpixie <[email protected]>
Co-authored-by: drainpixie <[email protected]>
config_paths = paths.config_paths + ([config_path] if config_path else []) | ||
|
||
for path in config_paths: | ||
if path.is_file(): |
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.
This is technically a re-validation for the case where path = config_path
via the CLI, but this only occurs once, and I don't think there's a clean way to avoid that.
proselint.tools
intoproselint.config
Path
instead ofos
functionsdefault.json
)