| Total Complexity | 2 |
| Total Lines | 25 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| 1 | 1 | import os |
|
| 13 | 1 | @yorm.attr(key=yorm.types.String) |
|
| 14 | 1 | @yorm.attr(name=yorm.types.String) |
|
| 15 | 1 | @yorm.attr(default=StringList) |
|
| 16 | 1 | @yorm.attr(link=yorm.types.String) |
|
| 17 | 1 | @yorm.attr(aliases=StringList) |
|
| 18 | 1 | @yorm.attr(regexes=StringList) |
|
| 19 | 1 | @yorm.sync("{self.root}/{self.key}/config.yml") |
|
| 20 | class TemplateModel: |
||
| 21 | """Persistence model for templates.""" |
||
| 22 | |||
| 23 | 1 | def __init__(self, key, root): |
|
| 24 | 1 | self.key = key |
|
| 25 | 1 | self.root = root |
|
| 26 | |||
| 27 | 1 | @property |
|
| 28 | def domain(self): |
||
| 29 | # pylint: disable=no-member |
||
| 30 | 1 | return Template( |
|
| 31 | key=self.key, |
||
| 32 | name=self.name, |
||
| 33 | lines=self.default, |
||
| 34 | aliases=self.aliases, |
||
| 35 | patterns=self.regexes, |
||
| 36 | link=self.link, |
||
| 37 | root=self.root, |
||
| 38 | ) |
||
| 78 |
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.
2. Missing __init__.py files
This error could also result from missing
__init__.pyfiles in your module folders. Make sure that you place one file in each sub-folder.