diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 1bb311c..bfeb6c2 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,4 +3,4 @@ repos: rev: 1.3.1 # The version of Prospector to use, at least 1.1.7 hooks: - id: prospector - language: system + language: python diff --git a/.prospector.yaml b/.prospector.yaml index 0af2a38..56712b4 100644 --- a/.prospector.yaml +++ b/.prospector.yaml @@ -13,3 +13,6 @@ pylint: - C0114 - C0115 - C0116 + - W0603 + - I0011 + - W0511 diff --git a/.pylintrc b/.pylintrc index a945bd1..8ea5eb8 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,6 +1,8 @@ [MASTER] disable= C0114,C0115,C0116,W0603,I0011,W0511 +enable= + C0326 [FORMAT] max-line-length=120 diff --git a/otp/otp.py b/otp/otp.py index 4cf4816..17d6e21 100644 --- a/otp/otp.py +++ b/otp/otp.py @@ -321,7 +321,7 @@ def load_otp(filename="otp.bin"): except ModuleNotFoundError: return RenameUnpickler(input_file).load() except FileNotFoundError: - logger.debug("",exc_info=True) + logger.debug("", exc_info=True) return None diff --git a/web/views.py b/web/views.py index 2ffae08..3965870 100644 --- a/web/views.py +++ b/web/views.py @@ -91,7 +91,7 @@ def create_callback(): # flake8: noqa: C901 def capture_diffs_in_battery_table(timestamp, data, data_previous): # pylint: disable=unused-variable if timestamp is None: raise PreventUpdate - diff_data = diff_dashtable(data, data_previous, "start_at") + diff_data = diff_dashtable(data, data_previous,"start_at") for changed_line in diff_data: if changed_line['column_name'] == 'price': if not Database.set_chargings_price(Database.get_db(),changed_line['start_at'],