for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
from __future__ import (
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
class SomeClass: def some_method(self): """Do x and return foo."""
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.
absolute_import,
division,
print_function
)
import enum
class StateStatus(enum.Enum):
"""Enumeration of the possible :class:`State` statuses."""
#: Pristin empty status.
init = 0
#: Input has been set and Steps are running or ready.
running = 1
#: All Steps are in the completed status or one was aborted.
completed = 2
#: All steps completed as successful.
succeeded = completed | 4
#: Step completed in failure.
failed = completed | 8
def means(self, status):
# E1101: Instance of 'StateStatus' has no 'value' member
# pylint: disable=E1101
return (self.value & status.value) == status.value
class StepStateStatus(enum.Enum):
"""Enumeration of the possible :class:`StepState` statuses."""
#: Step is not started yet (may be waiting on dependencies).
pending = 0
#: Step is ready to be started
ready = 1
#: Step is running
running = 2
#: Step was either completed (sucess OR failure) or skipped.
completed = 4
#: Step resulted in a permanent error.
aborted = 8
#: Step completed as successful.
succeeded = completed | 16
failed = completed | 32
#: Step was skipped (will not be run).
skipped = completed | 64
# E1101: Instance of 'StepStateStatus' has no 'value' member
The coding style of this project requires that you add a docstring to this code element. Below, you find an example for methods:
If you would like to know more about docstrings, we recommend to read PEP-257: Docstring Conventions.