style: apply black via pre-commit run -a
This commit is contained in:
committed by
Henry Schreiner
parent
9cbed6a9be
commit
178aaea6c7
@@ -8,18 +8,28 @@ from pathlib import Path
|
||||
|
||||
def main():
|
||||
parser = ArgumentParser(
|
||||
prog="python -m test.test_projects",
|
||||
description='Generate a test project to check it out'
|
||||
prog="python -m test.test_projects", description='Generate a test project to check it out'
|
||||
)
|
||||
parser.add_argument('--open', action='store_true', help='''
|
||||
parser.add_argument(
|
||||
'--open',
|
||||
action='store_true',
|
||||
help='''
|
||||
Open the generated project in a file explorer
|
||||
''')
|
||||
parser.add_argument('PROJECT', help='''
|
||||
''',
|
||||
)
|
||||
parser.add_argument(
|
||||
'PROJECT',
|
||||
help='''
|
||||
Python path to a project object. E.g. test.test_0_basic.basic_project
|
||||
''')
|
||||
parser.add_argument('OUTPUT', nargs='?', help='''
|
||||
''',
|
||||
)
|
||||
parser.add_argument(
|
||||
'OUTPUT',
|
||||
nargs='?',
|
||||
help='''
|
||||
Path to output dir. If no dir is passed, a tempdir will be generated.
|
||||
''')
|
||||
''',
|
||||
)
|
||||
options = parser.parse_args()
|
||||
|
||||
module, _, name = options.PROJECT.rpartition('.')
|
||||
|
||||
Reference in New Issue
Block a user