GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( be813a...3d8811 )
by P.R.
06:43 queued 46s
created

kerapu.style.KerapuStyle   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 40
Duplicated Lines 0 %

Test Coverage

Coverage 92.86%

Importance

Changes 0
Metric Value
eloc 15
dl 0
loc 40
ccs 13
cts 14
cp 0.9286
rs 10
c 0
b 0
f 0
wmc 4

2 Methods

Rating   Name   Duplication   Size   Complexity  
A KerapuStyle.text() 0 8 3
A KerapuStyle.__init__() 0 14 1
1
"""
2
PyStratum
3
"""
4 1
from typing import Union
5
6 1
from cleo import Input, Output
7 1
from cleo.styles import CleoStyle
8
9
10 1
class KerapuStyle(CleoStyle):
11
    """
12
    Output style for Kerapu.
13
    """
14
15
    # ------------------------------------------------------------------------------------------------------------------
16 1
    def __init__(self, input: Input, output: Output):
17
        """
18
        Object constructor.
19
20
        :param Input input: The input object.
21
        :param Output output: The output object.
22
        """
23 1
        CleoStyle.__init__(self, input, output)
24
25
        # Create style notes.
26 1
        output.get_formatter().add_style('note', 'yellow', None, ['bold'])
27
28
        # Create style for file and directory names.
29 1
        output.get_formatter().add_style('fso', 'white', None, ['bold'])
30
31
    # ------------------------------------------------------------------------------------------------------------------
32 1
    def text(self, message: Union[str, list, None]):
33 1
        if isinstance(message, list):
34
            messages = message
35
        else:
36 1
            messages = [message]
37
38 1
        for line in messages:
39 1
            self.writeln(' {0}'.format(line))
40
41
# ----------------------------------------------------------------------------------------------------------------------
42