-
Notifications
You must be signed in to change notification settings - Fork 95
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
Support config files #169
Closed
+742
−17
Closed
Support config files #169
Changes from 1 commit
Commits
Show all changes
17 commits
Select commit
Hold shift + click to select a range
b2d4bbd
add process_pyproject_toml(), process_setup_cfg(), merge_configuratio…
janosh 758cebc
call merge_configuration_file() in nbstripout/_nbstripout.py after pa…
janosh e5cd304
add tests/test_read_config_files.py
janosh 5d45bd0
make type hints py36 compatible
janosh c4e073c
Merge remote-tracking branch 'official/master' into janosh/support-co…
4c500c9
re-design config reading to give command line precedence.
92440f1
fix handling of non_bool values in pyproject.toml
dce4163
fix no file arguments tests
7d02b41
test argument and file precedence
0a75bc1
flake8
4a61903
Merge pull request #1 from arobrien/janosh/support-config-files
janosh c7abff0
Update nbstripout/_utils.py
janosh e8ced46
Update tests/test_read_config_files.py
janosh 08bfc67
Sequential cell ids (#184)
749f431
Add python3.11 classifier to setup.py, remove python3.6 (#186)
wpbonelli 7b065ef
Improve documentation for notebook and cell metadata stripping
kynan 56bcd02
Merge branch 'master' into support-config-files
kynan File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
fix handling of non_bool values in pyproject.toml
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
Not a big fan of reaching into the internals of
ArgumentParser
but also don't have a great idea what to do instead.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.
Yes, I thought that this would still be more robust than keeping an explicit list of Boolean arguments, although that wouldn't be impossible. I looked at a range of options, including shifting to an alternative arguments library, like Click, but that all got too complicated.
I think that this is a reasonable compromise if we keep on top of adding new Python versions to the test suite whenever they become available.
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.
Yep, agree