Ver Fonte

chore: run black

Sam Jaffe há 1 mês atrás
pai
commit
2f5a7dfe62
2 ficheiros alterados com 7 adições e 3 exclusões
  1. 5 3
      src/cipy/__init__.py
  2. 2 0
      src/cipy/workflow.py

+ 5 - 3
src/cipy/__init__.py

@@ -22,9 +22,11 @@ if settings.INTERACTIVE:
 else:
     _handler.setFormatter(CIFormatter("%(asctime)s  %(message)s"))
 
-logging.basicConfig(datefmt="%Y-%m-%dT%H:%M:%S.%fZ",
-                    handlers=[ _handler ],
-                    level=logging.DEBUG if settings.DEBUG else logging.INFO)
+logging.basicConfig(
+    datefmt="%Y-%m-%dT%H:%M:%S.%fZ",
+    handlers=[_handler],
+    level=logging.DEBUG if settings.DEBUG else logging.INFO,
+)
 
 __all__ = [
     "Call",

+ 2 - 0
src/cipy/workflow.py

@@ -9,6 +9,7 @@ from pydantic import BaseModel, PrivateAttr
 
 from cipy.common import Action, Context, Results, Scalar, Status, Value, _validate
 
+
 class Job(BaseModel):
     """A wrapper for a graph node with edges"""
 
@@ -75,6 +76,7 @@ class Matrix(Action):
     """
     Actions that represent running a single Workflow/Action across multiple configurations
     """
+
     name: str = ""
     on: MatrixParams
     uses: Action