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 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 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: