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/amas.py b/pyAmakCore/classes/amas.py index ccb253d24e3b68a397f61dd7ed9fc80c02b52379..81ea8f3a8d17229b0b5857e4f9078c19450cff4c 100644 --- a/pyAmakCore/classes/amas.py +++ b/pyAmakCore/classes/amas.py @@ -111,4 +111,3 @@ class Amas(Schedulable, Loggable): This method is called at the end of __init__() """ ToOverrideWarning("on_initial_agents_creation") - diff --git a/pyAmakCore/classes/scheduler.py b/pyAmakCore/classes/scheduler.py index a1bdcc2a94b241639de149b967c458455fb94f0e..a7d486c08c84fb6f4137fa3a372e83de3742ce18 100644 --- a/pyAmakCore/classes/scheduler.py +++ b/pyAmakCore/classes/scheduler.py @@ -170,4 +170,3 @@ class Scheduler: amas_object = pickle.load(handle) return cls(amas_object) - 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: """