From 5f388a66996cf2f22f2ae9ff0ed3ce92f4cf0606 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Sun, 29 Sep 2024 14:24:35 -0400 Subject: [PATCH 1/3] really remove examples/server/esp32spi_wsgiserver.py --- .pre-commit-config.yaml | 2 +- examples/server/esp32spi_wsgiserver.py | 0 2 files changed, 1 insertion(+), 1 deletion(-) delete mode 100755 examples/server/esp32spi_wsgiserver.py diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 70ade69..374676d 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -18,7 +18,7 @@ repos: - id: end-of-file-fixer - id: trailing-whitespace - repo: https://github.com/pycqa/pylint - rev: v2.17.4 + rev: v3.3.1 hooks: - id: pylint name: pylint (library code) diff --git a/examples/server/esp32spi_wsgiserver.py b/examples/server/esp32spi_wsgiserver.py deleted file mode 100755 index e69de29..0000000 From d82a300e5b3675d7c617bd6277015bd728397e47 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Sun, 29 Sep 2024 14:34:11 -0400 Subject: [PATCH 2/3] really, really remove wsgi server example; update pylint exceptions --- .pre-commit-config.yaml | 2 +- adafruit_esp32spi/adafruit_esp32spi.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 374676d..07a923e 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -24,7 +24,7 @@ repos: name: pylint (library code) types: [python] args: - - --disable=consider-using-f-string + - --disable=consider-using-f-string,too-many-arguments,too-many-positional-arguments exclude: "^(docs/|examples/|tests/|setup.py$)" - id: pylint name: pylint (example code) diff --git a/adafruit_esp32spi/adafruit_esp32spi.py b/adafruit_esp32spi/adafruit_esp32spi.py index 96b806d..346593a 100644 --- a/adafruit_esp32spi/adafruit_esp32spi.py +++ b/adafruit_esp32spi/adafruit_esp32spi.py @@ -416,7 +416,7 @@ def _wait_response_cmd(self, cmd, num_responses=None, *, param_len_16=False): print("Read %d: " % len(responses[0]), responses) return responses - def _send_command_get_response( + def _send_command_get_response( # pylint: disable=too-many-arguments self, cmd, params=None, From 152f3c0db56eed45599337dde38a3ed4efb03e42 Mon Sep 17 00:00:00 2001 From: Dan Halbert Date: Sun, 29 Sep 2024 14:41:11 -0400 Subject: [PATCH 3/3] create non-empty esp32spi_wsgiserver.py so we can delete it! --- examples/server/esp32spi_wsgiserver.py | 3 +++ 1 file changed, 3 insertions(+) create mode 100644 examples/server/esp32spi_wsgiserver.py diff --git a/examples/server/esp32spi_wsgiserver.py b/examples/server/esp32spi_wsgiserver.py new file mode 100644 index 0000000..997bda4 --- /dev/null +++ b/examples/server/esp32spi_wsgiserver.py @@ -0,0 +1,3 @@ +# SPDX-FileCopyrightText: 2024 Dan Halbert for Adafruit Industries +# SPDX-License-Identifier: MIT +# will be empty