diff --git a/format.py b/format.py index 4b886db0a..2e59418c2 100644 --- a/format.py +++ b/format.py @@ -1,6 +1,6 @@ -import os import glob +import subprocess for filename in glob.glob('./**/*.py', recursive=True): print(filename) - os.system(f"autopep8 --max-line-length 140 --in-place --aggressive --aggressive {filename}") + subprocess.run(['autopep8', '--max-line-length', '140', '--in-place', '--aggressive', '--aggressive', filename])