| Total Complexity | 1 |
| Total Lines | 24 |
| Duplicated Lines | 0 % |
| Changes | 3 | ||
| Bugs | 1 | Features | 0 |
| 1 | from __future__ import ( |
||
| 29 | class StepStateStatus(enum.Enum): |
||
| 30 | """Enumeration of the possible :class:`StepState` statuses.""" |
||
| 31 | |||
| 32 | #: Step is not started yet (may be waiting on dependencies). |
||
| 33 | pending = 0 |
||
| 34 | #: Step is ready to be started |
||
| 35 | ready = 1 |
||
| 36 | #: Step is running |
||
| 37 | running = 2 |
||
| 38 | #: Step was either completed (sucess OR failure) or skipped. |
||
| 39 | completed = 4 |
||
| 40 | #: Step resulted in a permanent error. |
||
| 41 | aborted = 8 |
||
| 42 | #: Step completed as successful. |
||
| 43 | succeeded = completed | 16 |
||
| 44 | #: Step completed in failure. |
||
| 45 | failed = completed | 32 |
||
| 46 | #: Step was skipped (will not be run). |
||
| 47 | skipped = completed | 64 |
||
| 48 | |||
| 49 | def means(self, status): |
||
| 50 | # E1101: Instance of 'StepStateStatus' has no 'value' member |
||
| 51 | # pylint: disable=E1101 |
||
| 52 | return (self.value & status.value) == status.value |
||
| 53 |
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.