Completed
Push — master ( f46766...a9fd17 )
by Jace
8s
created

ProgramConfig   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 0
Metric Value
c 4
b 0
f 0
dl 0
loc 9
ccs 7
cts 7
cp 1
rs 10
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A __init__() 0 4 1
1
"""Data structures for all settings."""
2
3 1
import logging
4
5 1
import yorm
0 ignored issues
show
Configuration introduced by
The import yorm could not be resolved.

This can be caused by one of the following:

1. Missing Dependencies

This error could indicate a configuration issue of Pylint. Make sure that your libraries are available by adding the necessary commands.

# .scrutinizer.yml
before_commands:
    - sudo pip install abc # Python2
    - sudo pip3 install abc # Python3
Tip: We are currently not using virtualenv to run pylint, when installing your modules make sure to use the command for the correct version.

2. Missing __init__.py files

This error could also result from missing __init__.py files in your module folders. Make sure that you place one file in each sub-folder.

Loading history...
6
7 1
from .application import Applications
8 1
from .computer import Computers
9
10
11 1
log = logging.getLogger(__name__)
12
13
14 1
@yorm.attr(computers=Computers)
15 1
@yorm.attr(applications=Applications)
16 1
class ProgramConfig(yorm.types.AttributeDictionary):
17
    """Dictionary of program configuration settings."""
18
19 1
    def __init__(self, applications=None, computers=None):
20 1
        super().__init__()
21 1
        self.applications = applications or Applications()
22
        self.computers = computers or Computers()
23