Skip to content

Commit 1722e16

Browse files
authored
Merge pull request #11 from FoamyGuy/pylintrc_and_versions
Pylintrc import ignore and reuse, black versions
2 parents 440f3f0 + 6f70140 commit 1722e16

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@
44

55
repos:
66
- repo: https://github.com/python/black
7-
rev: 19.10b0
7+
rev: 20.8b1
88
hooks:
99
- id: black
1010
- repo: https://github.com/fsfe/reuse-tool
11-
rev: latest
11+
rev: v0.12.1
1212
hooks:
1313
- id: reuse
1414
- repo: https://github.com/pre-commit/pre-commit-hooks

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -250,7 +250,7 @@ ignore-comments=yes
250250
ignore-docstrings=yes
251251

252252
# Ignore imports when computing similarities.
253-
ignore-imports=no
253+
ignore-imports=yes
254254

255255
# Minimum lines number of a similarity.
256256
min-similarity-lines=4

adafruit_as7341.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ class AS7341: # pylint:disable=too-many-instance-attributes
200200
"""Library for the AS7341 Sensor
201201
202202
203-
:param ~busio.I2C i2c_bus: The I2C bus the AS7341 is connected to.
204-
:param address: The I2C address of the sensor
203+
:param ~busio.I2C i2c_bus: The I2C bus the AS7341 is connected to.
204+
:param address: The I2C address of the sensor
205205
206206
"""
207207

@@ -583,8 +583,7 @@ def _set_smux(self, smux_addr, smux_out1, smux_out2):
583583

584584
@property
585585
def gain(self):
586-
"""The ADC gain multiplier. Must be a valid `adafruit_as7341.Gain`
587-
"""
586+
"""The ADC gain multiplier. Must be a valid `adafruit_as7341.Gain`"""
588587
return self._gain
589588

590589
@gain.setter

0 commit comments

Comments
 (0)