style: activate string normalization
This commit is contained in:
committed by
Henry Schreiner
parent
d1900f6a05
commit
bda76b21cb
+5
-5
@@ -9,19 +9,19 @@ import sys
|
||||
import tempfile
|
||||
from pathlib import Path
|
||||
|
||||
if __name__ == '__main__':
|
||||
if __name__ == "__main__":
|
||||
# move cwd to the project root
|
||||
os.chdir(Path(__file__).resolve().parents[1])
|
||||
|
||||
parser = argparse.ArgumentParser(description='Runs a sample build')
|
||||
parser.add_argument('project_python_path', nargs='?', default='test.test_0_basic.basic_project')
|
||||
parser = argparse.ArgumentParser(description="Runs a sample build")
|
||||
parser.add_argument("project_python_path", nargs="?", default="test.test_0_basic.basic_project")
|
||||
|
||||
options = parser.parse_args()
|
||||
|
||||
project_dir = tempfile.mkdtemp()
|
||||
subprocess.run(
|
||||
[sys.executable, '-m', 'test.test_projects', options.project_python_path, project_dir],
|
||||
[sys.executable, "-m", "test.test_projects", options.project_python_path, project_dir],
|
||||
check=True,
|
||||
)
|
||||
|
||||
sys.exit(subprocess.run([sys.executable, '-m', 'cibuildwheel'], cwd=project_dir).returncode)
|
||||
sys.exit(subprocess.run([sys.executable, "-m", "cibuildwheel"], cwd=project_dir).returncode)
|
||||
|
||||
Reference in New Issue
Block a user