Fix pre-commit

Signed-off-by: Pedro Algarvio <palgarvio@vmware.com>
This commit is contained in:
Pedro Algarvio 2023-11-27 22:05:30 +00:00 committed by Pedro Algarvio
parent 126cbc30fb
commit 737a18edc6
2 changed files with 5 additions and 2 deletions

View file

@ -1,7 +1,7 @@
--constraint=../pkg/py{py_version}/{platform}.txt
attrs
python-tools-scripts >= 0.18.5
python-tools-scripts >= 0.18.6
boto3
pyyaml
jinja2

View file

@ -939,7 +939,7 @@ def get_pr_test_labels(
ctx.exit(1)
if "pull_request" not in gh_event:
ctx.warning("The 'pull_request' key was not found on the event payload.")
ctx.warn("The 'pull_request' key was not found on the event payload.")
ctx.exit(1)
pr = gh_event["pull_request"]["number"]
@ -1160,6 +1160,9 @@ def upload_coverage(ctx: Context, reports_path: pathlib.Path, commit_sha: str =
ctx.error("Could not find the path to the 'codecov' binary")
ctx.exit(1)
if TYPE_CHECKING:
assert commit_sha is not None
codecov_args = [
codecov,
"--nonZero",