chore: color and suggest_on_error are now default (3.14rc1+) (#2554)

Signed-off-by: Henry Schreiner <henryschreineriii@gmail.com>
This commit is contained in:
Henry Schreiner
2025-08-14 20:44:05 +02:00
committed by GitHub
parent ff9a284f21
commit 95e827ece1
4 changed files with 5 additions and 21 deletions
+1 -5
View File
@@ -2,7 +2,6 @@
import argparse
import functools
import os
import subprocess
import sys
@@ -13,10 +12,7 @@ if __name__ == "__main__":
# move cwd to the project root
os.chdir(Path(__file__).resolve().parents[1])
make_parser = functools.partial(argparse.ArgumentParser, allow_abbrev=False)
if sys.version_info >= (3, 14):
make_parser = functools.partial(make_parser, color=True, suggest_on_error=True)
parser = make_parser(description="Runs a sample build")
parser = argparse.ArgumentParser(description="Runs a sample build", allow_abbrev=False)
parser.add_argument("project_python_path", nargs="?", default="test.test_0_basic.basic_project")
options = parser.parse_args()