New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix black .
issue
#885
fix black .
issue
#885
Conversation
This GHA also failed, this time in "Python tests on macos-latest" (logs again to big to view in browser):
I downloaded the logs and see the same info about
Searching for
|
It seems like the change by # -*- coding: utf-8 -*-
from metaflow import FlowSpec, step, Parameter, project, IncludeFile, JSONType, current, parallel
from metaflow_test import assert_equals, assert_exception, ExpectationFailed, is_resumed, ResumeFromHere, TestRetry
from metaflow import card
class CardTimeoutTestFlow(FlowSpec):
@card(type="test_timeout_card",timeout=10,options=dict(timeout=20),save_errors=False)
@step
def start(self):
'card(type="test_timeout_card",timeout=10,options=dict(timeout=20),save_errors=False)'
ps(0, ["start"])
step_start(self):
from metaflow import current
self.task = current.pathspec
self.next(self.foreach_split)
@step
def foreach_split(self):
self.arr = [1, 2, 3]
pass
self.next(self.foreach_inner_first, foreach="arr")
@step
def foreach_inner_first(self):
pass
self.next(self.foreach_inner_second)
@step
def foreach_inner_second(self):
pass
self.next(self.foreach_join)
@step
def foreach_join(self, inputs):
pass
self.next(self.end)
@step
def end(self):
pass
if __name__ == '__main__':
CardTimeoutTestFlow() No idea what is going on there, changed this PR to just have |
test/core/tests/card_timeout.py
Outdated
@@ -10,6 +10,7 @@ class CardTimeoutTest(MetaflowTest): | |||
|
|||
PRIORITY = 2 | |||
|
|||
# fmt: off |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you add the equivalent # fmt: on
after L:14?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ah, didn't realize that was necessary, sry
looks like # fmt: skip
at end of line now works (psf/black#1800) so I did that, lmk what you think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
Rebasing #612 and friends,
black .
is showing this unrelated change. I folded it into #661 but the CI is failing there for a reason I'm not sure is due to my changes, so I'm submitting this separately partly to see if I see the same failure here.