-
Notifications
You must be signed in to change notification settings - Fork 386
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
Move the jupytext-config helpers to a subpackage, and add tests #1167
Conversation
@parmentelat does this look fine to you? Thanks! |
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.
looks motly good to me except for the way we can configure the actual config file
src/jupytext_config/labconfig.py
Outdated
self.logger = logger or logging.getLogger(__name__) | ||
self.config = {} | ||
# the state before any changes | ||
self._prior_config = {} | ||
self.settings_file = Path(settings_path) / "default_setting_overrides.json" |
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.
imho if we're to be able to provide the location for the settings, i'td be better if the caller provides the whole path to the config file including its basename
my reason for that is, the configuration scheme within jupyterlab is truly complex, and with for example the overrides.d
scheme, we may someday need to use another filename than this hard-coded default_setting_overrides.json
which amounts to dealing only with a single settings_path
all over the place
ed53fd9
to
1feace3
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## main #1167 +/- ##
==========================================
+ Coverage 97.59% 97.61% +0.02%
==========================================
Files 26 29 +3
Lines 4357 4451 +94
==========================================
+ Hits 4252 4345 +93
- Misses 105 106 +1
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. |
839b83d
to
154b876
Compare
154b876
to
15452de
Compare
Closes #1097