Skip to content

Commit 9797c38

Browse files
authored
Merge pull request #8 from FoamyGuy/pylintrc_and_versions
pylintrc ignore imports. black and reuse versions. run black format
2 parents 2da73d7 + d01e8aa commit 9797c38

File tree

5 files changed

+11
-7
lines changed

5 files changed

+11
-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_mcp2515/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -317,7 +317,9 @@ def initialize(self):
317317
self._set_register(_CANINTE, _RX0IF | _RX1IF)
318318
sleep(0.010)
319319
self._mod_register(
320-
_RXB0CTRL, _RXB_RX_MASK | _RXB_BUKT_MASK, _RXB_RX_STDEXT | _RXB_BUKT_MASK,
320+
_RXB0CTRL,
321+
_RXB_RX_MASK | _RXB_BUKT_MASK,
322+
_RXB_RX_STDEXT | _RXB_BUKT_MASK,
321323
)
322324

323325
self._mod_register(_RXB1CTRL, _RXB_RX_MASK, _RXB_RX_STDEXT)

adafruit_mcp2515/canio/__init__.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ class BusState:
181181

182182

183183
class Match:
184-
"""A class representing an ID pattern to match against
185-
"""
184+
"""A class representing an ID pattern to match against"""
186185

187186
def __init__(self, address: int, *, mask: int = 0, extended: bool = False):
188187
"""Describe CAN bus messages to match

setup.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,10 @@
3434
# Author details
3535
author="Adafruit Industries",
3636
author_email="[email protected]",
37-
install_requires=["Adafruit-Blinka", "adafruit-circuitpython-busdevice",],
37+
install_requires=[
38+
"Adafruit-Blinka",
39+
"adafruit-circuitpython-busdevice",
40+
],
3841
# Choose your license
3942
license="MIT",
4043
# See https://pypi.python.org/pypi?%3Aaction=list_classifiers

0 commit comments

Comments
 (0)