This repository was archived by the owner on Jun 22, 2021. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Expand file tree Collapse file tree 2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -28,8 +28,6 @@ Sample complex `.pre-commit-config.yaml`
2828 - id: graphene-django-hook
2929 stages: [commit]
3030 args: [
31- '--python-version',
32- '3.6', # Defaults to: 3.6
3331 '--managepy-path',
3432 '/path/to/manage.py', # Defaults to: manage.py
3533 '--settings',
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ def run_command(command: str) -> int:
2828
2929def main (argv : Optional [Sequence [str ]] = None ) -> int :
3030 parser = argparse .ArgumentParser ()
31- parser .add_argument ('--python-version' , default = '3.6' )
3231 parser .add_argument ('--indent' , default = None )
3332 parser .add_argument ('--out' , default = None )
3433 parser .add_argument ('--schema' , default = None )
@@ -37,7 +36,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
3736 parser .add_argument ('--settings' , default = None )
3837 args = parser .parse_args (argv )
3938
40- command = 'python {} {} graphql_schema' .format (args . python_version , args .managepy_path )
39+ command = '{} {} graphql_schema' .format (sys . executable , args .managepy_path )
4140
4241 if args .settings is not None :
4342 command += ' --settings={}' .format (args .settings )
You can’t perform that action at this time.
0 commit comments