From 3fc90106fc3b17196e22cacbf9570bfb8caa9792 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Wed, 3 Mar 2021 21:21:08 -0600 Subject: [PATCH 1/2] update black and reuse version. pylintrc --- .pre-commit-config.yaml | 4 ++-- .pylintrc | 2 +- 2 files changed, 3 insertions(+), 3 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 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 6f7014098c516a66011f0f66843820659574c185 Mon Sep 17 00:00:00 2001 From: foamyguy Date: Wed, 3 Mar 2021 21:23:10 -0600 Subject: [PATCH 2/2] black format --- adafruit_as7341.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/adafruit_as7341.py b/adafruit_as7341.py index 28fe7d3..079f0df 100644 --- a/adafruit_as7341.py +++ b/adafruit_as7341.py @@ -200,8 +200,8 @@ class AS7341: # pylint:disable=too-many-instance-attributes """Library for the AS7341 Sensor - :param ~busio.I2C i2c_bus: The I2C bus the AS7341 is connected to. - :param address: The I2C address of the sensor + :param ~busio.I2C i2c_bus: The I2C bus the AS7341 is connected to. + :param address: The I2C address of the sensor """ @@ -583,8 +583,7 @@ def _set_smux(self, smux_addr, smux_out1, smux_out2): @property def gain(self): - """The ADC gain multiplier. Must be a valid `adafruit_as7341.Gain` - """ + """The ADC gain multiplier. Must be a valid `adafruit_as7341.Gain`""" return self._gain @gain.setter