From ef7cb9dd1800f8a118017bd8c0d55946a6f65d4d Mon Sep 17 00:00:00 2001 From: Chaoying Wang Date: Thu, 14 Mar 2024 09:12:19 -0700 Subject: [PATCH] fix format error for py3.5 (#1764) * fix format error for py3.5 * add python version for pre-commit * remove comma again * add more commas * aggresively fix all the black * Revert "aggresively fix all the black" This reverts commit 99c7ebe96097f05dd4f767b8ed30dc5b6c530246. * Revert "add more commas" This reverts commit 12099bec0852b157d8a2902bbdcc12d634b8afb1. * make py35 happy first * why is the comma back?? * switch to py34 to go pass pre-commit check * support more python version --- .pre-commit-config.yaml | 4 ++++ metaflow/cli.py | 4 ++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 648aaa7bf51..b56471ba739 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -12,3 +12,7 @@ repos: language_version: python3 exclude: "^metaflow/_vendor/" additional_dependencies: ["click<8.1.0"] + # python3.12 is not supported in black 22.10.0 + args: [-t, py34, -t, py35, -t, py36, -t, py37, -t, py38, -t, py39, -t, py310, -t, py311] + + diff --git a/metaflow/cli.py b/metaflow/cli.py index 2703fd83aaa..e20717940fe 100644 --- a/metaflow/cli.py +++ b/metaflow/cli.py @@ -824,7 +824,7 @@ def run( decospecs=None, run_id_file=None, user_namespace=None, - **kwargs, + **kwargs ): if user_namespace is not None: namespace(user_namespace or None) @@ -979,7 +979,7 @@ def start( pylint=None, event_logger=None, monitor=None, - **deco_options, + **deco_options ): global echo if quiet: