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.

ReadCustomExcel   A
last analyzed

Complexity

Total Complexity 3

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

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

3 Methods

Rating   Name   Duplication   Size   Complexity  
A activate() 0 2 1
A __init__() 0 3 1
A deactivate() 0 2 1
1
from groundwork_spreadsheets import ExcelValidationPattern
2
from groundwork import App
3
4
5
def Application():
6
    app = App(plugins=[], strict=True)
7
    return app
8
9
10
class ReadCustomExcel(ExcelValidationPattern):
11
    def __init__(self, app, name=None, *args, **kwargs):
12
        self.name = name or self.__class__.__name__
13
        super(ReadCustomExcel, self).__init__(app, *args, **kwargs)
14
15
    def activate(self):
16
        pass
17
18
    def deactivate(self):
19
        pass
20
21
22
if __name__ == '__main__':
23
    app = App(config_files=['configuration.py'], plugins=[], strict=True)
24
    plugin = ReadCustomExcel(app)
25
    data = plugin.excel_validation.read_excel('config.json', 'example.xlsx')
26
    for row in data:
27
        headers = data[row]
28
        for header in headers:
29
            print("Row {0}, Header '{1}': {2}".format(row, header, data[row][header]))
30