From d52d47f2bc576c8f00e7735d394870d3e1c441b3 Mon Sep 17 00:00:00 2001 From: Marcos Prieto Date: Fri, 27 Sep 2024 09:53:33 +0200 Subject: [PATCH] Include too-many-positional-arguments disable after pylint upgrade (#50) --- src/h_api/model/json_api.py | 4 ++-- tests/unit/h_api/bulk_api/command_processor_test.py | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/h_api/model/json_api.py b/src/h_api/model/json_api.py index 4f867b0..4f2f159 100644 --- a/src/h_api/model/json_api.py +++ b/src/h_api/model/json_api.py @@ -20,7 +20,7 @@ def create(cls, error_bodies): class JSONAPIErrorBody(Model): """A JSON API error body.""" - # pylint: disable=too-many-arguments + # pylint: disable=too-many-arguments,too-many-positional-arguments # I know pylint... I know @classmethod @@ -53,7 +53,7 @@ class JSONAPIData(Model): # This would be nice but introduces a circular dependency with # Schema as it needs the error stuff above via SchemaValidationError - # pylint: disable=too-many-arguments + # pylint: disable=too-many-arguments,too-many-positional-arguments @classmethod def create( diff --git a/tests/unit/h_api/bulk_api/command_processor_test.py b/tests/unit/h_api/bulk_api/command_processor_test.py index 6a9ee44..7d34f87 100644 --- a/tests/unit/h_api/bulk_api/command_processor_test.py +++ b/tests/unit/h_api/bulk_api/command_processor_test.py @@ -43,7 +43,7 @@ def test_it_fails_with_too_few_commands(self, command_processor, commands): command_processor.process(commands) def test_id_references_are_dereferenced( - # pylint: disable=too-many-arguments + # pylint: disable=too-many-arguments,too-many-positional-arguments self, command_processor, config_command, @@ -152,7 +152,7 @@ def test_we_require_a_report_for_each_object( commands, bad_reports, exception, - ): # pylint: disable=too-many-arguments + ): # pylint: disable=too-many-arguments,too-many-positional-arguments executor.execute_batch.side_effect = None executor.execute_batch.return_value = bad_reports