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