Skip to content

Commit

Permalink
fix format error for py3.5 (#1764)
Browse files Browse the repository at this point in the history
* 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 99c7ebe.

* Revert "add more commas"

This reverts commit 12099be.

* make py35 happy first

* why is the comma back??

* switch to py34 to go pass pre-commit check

* support more python version
  • Loading branch information
wangchy27 authored Mar 14, 2024
1 parent f975084 commit ef7cb9d
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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]


4 changes: 2 additions & 2 deletions metaflow/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down Expand Up @@ -979,7 +979,7 @@ def start(
pylint=None,
event_logger=None,
monitor=None,
**deco_options,
**deco_options
):
global echo
if quiet:
Expand Down

0 comments on commit ef7cb9d

Please sign in to comment.