diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 56c1752408f425a87ac3eb07483ac2e35f9000f3..2f2b1ae629abf811792198a03429c39128ee0f9f 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -22,14 +22,14 @@ pylint: allow_failure: true script: - pip install pylint - - pylint -d C0301,R0902,E0611,E0401 ./pyAmakCore --max-parents=9 + - pylint -d C0301,R0902,E0611,E0401,C0413,R0201 ./pyAmakCore/classes --max-parents=9 flake8: stage: Code Analysis allow_failure: true script: - pip install flake8 - - flake8 --verbose --max-line-length=120 --max-complexity 8 ./pyAmakCore + - flake8 --verbose --max-line-length=120 --max-complexity 8 ./pyAmakCore/classes isort: stage: Code Analysis diff --git a/pyAmakCore/classes/tools/loggable.py b/pyAmakCore/classes/tools/loggable.py index 5ac77e22b2350d9b629a4ecce8ca0ed964fc5ec0..97584df4d166bcf7cea1e9d28e5392e4da7b59f4 100644 --- a/pyAmakCore/classes/tools/loggable.py +++ b/pyAmakCore/classes/tools/loggable.py @@ -13,7 +13,7 @@ class Loggable: def __init__(self): self.__do_log = False self.__file_path = None - self.__ignore_attribute = ["_Agent__amas", "_Agent__environment"] + self.__ignore_attribute: List[str] = ["_Agent__amas", "_Agent__environment"] def to_csv(self, cycle: int, var_list: List['Agent']) -> None: """