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`
28
28
- id: graphene-django-hook
29
29
stages: [commit]
30
30
args: [
31
- '--python-version',
32
- '3.6', # Defaults to: 3.6
33
31
'--managepy-path',
34
32
'/path/to/manage.py', # Defaults to: manage.py
35
33
'--settings',
Original file line number Diff line number Diff line change @@ -28,7 +28,6 @@ def run_command(command: str) -> int:
28
28
29
29
def main (argv : Optional [Sequence [str ]] = None ) -> int :
30
30
parser = argparse .ArgumentParser ()
31
- parser .add_argument ('--python-version' , default = '3.6' )
32
31
parser .add_argument ('--indent' , default = None )
33
32
parser .add_argument ('--out' , default = None )
34
33
parser .add_argument ('--schema' , default = None )
@@ -37,7 +36,7 @@ def main(argv: Optional[Sequence[str]] = None) -> int:
37
36
parser .add_argument ('--settings' , default = None )
38
37
args = parser .parse_args (argv )
39
38
40
- command = 'python {} {} graphql_schema' .format (args . python_version , args .managepy_path )
39
+ command = '{} {} graphql_schema' .format (sys . executable , args .managepy_path )
41
40
42
41
if args .settings is not None :
43
42
command += ' --settings={}' .format (args .settings )
You can’t perform that action at this time.
0 commit comments