Completed
Push — master ( 2b2ff6...0d93d1 )
by Jerome
01:04
created

Project   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 11
rs 10
wmc 4

1 Method

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 10 4
1
from zipfile import ZipFile
2
3
4
class Project(object):
5
    def __init__(self, *args, path=None, stack=None):
6
        # Project already exists
7
        if path is None:
8
            raise FileNotFoundError
9
        else:
10
            with ZipFile(path) as project_folder:
11
                with project_folder.open("state.yml") as state:
12
                    pass
13
        self.path = path
14
        self.stack = stack
15