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.
Passed
Push — master ( 7d14f7...4afba2 )
by P.R.
41s
created

BootstrapCommand.handle()   A

Complexity

Conditions 1

Size

Total Lines 12

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
c 1
b 0
f 0
dl 0
loc 12
ccs 0
cts 6
cp 0
crap 2
rs 9.4285
1
"""
2
Enarksh
3
4
Copyright 2013-2016 Set Based IT Consultancy
5
6
Licence MIT
7
"""
8
# ----------------------------------------------------------------------------------------------------------------------
9
import os
10
11
from cleo import Command
12
13
import enarksh
14
from enarksh.Bootsrap import Bootstrap
15
from enarksh.style.EnarkshStyle import EnarkshStyle
16
17
18
# ----------------------------------------------------------------------------------------------------------------------
19
class BootstrapCommand(Command):
20
    """
21
    Executes bootstrap.
22
    """
23
24
    name = 'bootstrap'
25
26
    # ------------------------------------------------------------------------------------------------------------------
27
    def handle(self):
28
        """
29
        Executes the bootstrap command.
30
        """
31
        self._io = EnarkshStyle(self.input, self.output)
0 ignored issues
show
Coding Style introduced by
The attribute _io was defined outside __init__.

It is generally a good practice to initialize all attributes to default values in the __init__ method:

class Foo:
    def __init__(self, x=None):
        self.x = x
Loading history...
32
33
        os.chdir(enarksh.HOME)
34
35
        bootstrap = Bootstrap()
36
        ret = bootstrap.main()
37
38
        exit(ret)
39
40
# ----------------------------------------------------------------------------------------------------------------------
41