From 62b9220223b7c6fca22dd5efe6b468f9d0c0c7cd Mon Sep 17 00:00:00 2001 From: foamyguy Date: Wed, 3 Mar 2021 07:41:49 -0600 Subject: [PATCH 1/3] ignore-imports in pylint --- .pylintrc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.pylintrc b/.pylintrc index 54a9d35..3c07cc6 100644 --- a/.pylintrc +++ b/.pylintrc @@ -250,7 +250,7 @@ ignore-comments=yes ignore-docstrings=yes # Ignore imports when computing similarities. -ignore-imports=no +ignore-imports=yes # Minimum lines number of a similarity. min-similarity-lines=4 From 7d3d9c0306c32d0c6c8913fbd572c2cace77a5d5 Mon Sep 17 00:00:00 2001 From: Dylan Herrada <33632497+dherrada@users.noreply.github.com> Date: Wed, 3 Mar 2021 16:42:19 -0500 Subject: [PATCH 2/3] Corrected black and reuse versions --- .pre-commit-config.yaml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index d017d7b..354c761 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -4,11 +4,11 @@ repos: - repo: https://github.com/python/black - rev: 19.10b0 + rev: 20.8b1 hooks: - id: black - repo: https://github.com/fsfe/reuse-tool - rev: latest + rev: v0.12.1 hooks: - id: reuse - repo: https://github.com/pre-commit/pre-commit-hooks From 055e86740b67f480ee0f7389039143f04ed037d8 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Mon, 8 Mar 2021 12:03:20 -0600 Subject: [PATCH 3/3] black code format --- adafruit_pcf8591/pcf8591.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/adafruit_pcf8591/pcf8591.py b/adafruit_pcf8591/pcf8591.py index 1f2159e..fe9997c 100644 --- a/adafruit_pcf8591/pcf8591.py +++ b/adafruit_pcf8591/pcf8591.py @@ -88,7 +88,7 @@ def _half_read(self, channel): def read(self, channel): """Read an analog value from one of the four ADC inputs - param: :channel The single-ended ADC channel to read from, 0 thru 3 + param: :channel The single-ended ADC channel to read from, 0 thru 3 """ if channel < 0 or channel > 3: raise ValueError("channel must be from 0-3") @@ -114,9 +114,9 @@ def dac_enabled(self, enable_dac): def write(self, value): """Writes a uint8_t value to the DAC output - param: :output The value to write: 0 is GND and 65535 is VCC + param: :output The value to write: 0 is GND and 65535 is VCC - """ + """ self._buffer = bytearray(2) if self._dac_enabled: