Skip to content

Commit

Permalink
call merge_configuration_file() in nbstripout/_nbstripout.py after pa…
Browse files Browse the repository at this point in the history
…rser.parse_args()
  • Loading branch information
janosh committed Oct 2, 2022
1 parent b2d4bbd commit 758cebc
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions nbstripout/_nbstripout.py
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,7 @@
import sys
import warnings

from nbstripout._utils import strip_output, strip_zeppelin_output
from nbstripout._utils import strip_output, strip_zeppelin_output, merge_configuration_file
try:
# Jupyter >= 4
from nbformat import read, write, NO_CONVERT
Expand Down Expand Up @@ -377,7 +377,7 @@ def main():
help='Space separated list of extra keys to strip '
'from metadata, e.g. metadata.foo cell.metadata.bar')
parser.add_argument('--drop-empty-cells', action='store_true',
help='Remove cells where `source` is empty or contains only whitepace')
help='Remove cells where `source` is empty or contains only whitespace')
parser.add_argument('--drop-tagged-cells', default='',
help='Space separated list of cell-tags that remove an entire cell')
parser.add_argument('--strip-init-cells', action='store_true',
Expand All @@ -402,7 +402,8 @@ def main():
help='Prints stripped files to STDOUT')

parser.add_argument('files', nargs='*', help='Files to strip output from')
args = parser.parse_args()

args = merge_configuration_file(parser.parse_args())

git_config = ['git', 'config']

Expand Down

0 comments on commit 758cebc

Please sign in to comment.