Skip to content

Commit de679a6

Browse files
committed
Merge branch 'main' into settings_dot_toml
2 parents 1da654e + 40b9096 commit de679a6

20 files changed

+56
-14
lines changed

.pre-commit-config.yaml

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

55
repos:
66
- repo: https://github.com/python/black
7-
rev: 22.3.0
7+
rev: 23.3.0
88
hooks:
99
- id: black
1010
- repo: https://github.com/fsfe/reuse-tool
11-
rev: v0.14.0
11+
rev: v1.1.2
1212
hooks:
1313
- id: reuse
1414
- repo: https://github.com/pre-commit/pre-commit-hooks
15-
rev: v4.2.0
15+
rev: v4.4.0
1616
hooks:
1717
- id: check-yaml
1818
- id: end-of-file-fixer
1919
- id: trailing-whitespace
2020
- repo: https://github.com/pycqa/pylint
21-
rev: v2.15.5
21+
rev: v2.17.4
2222
hooks:
2323
- id: pylint
2424
name: pylint (library code)

.pylintrc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -396,4 +396,4 @@ min-public-methods=1
396396

397397
# Exceptions that will emit a warning when being caught. Defaults to
398398
# "Exception"
399-
overgeneral-exceptions=Exception
399+
overgeneral-exceptions=builtins.Exception

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,6 @@ def __init__(
191191
connect_retries: int = 5,
192192
user_data=None,
193193
) -> None:
194-
195194
self._socket_pool = socket_pool
196195
self._ssl_context = ssl_context
197196
self._sock = None

adafruit_minimqtt/matcher.py

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -70,11 +70,10 @@ def __delitem__(self, key: str) -> None:
7070
node.content = None
7171
except KeyError:
7272
raise KeyError(key) from None
73-
else: # cleanup
74-
for parent, k, node in reversed(lst):
75-
if node.children or node.content is not None:
76-
break
77-
del parent.children[k]
73+
for parent, k, node in reversed(lst):
74+
if node.children or node.content is not None:
75+
break
76+
del parent.children[k]
7877

7978
def iter_match(self, topic: str):
8079
"""Return an iterator on all values associated with filters

docs/conf.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@
1717
# ones.
1818
extensions = [
1919
"sphinx.ext.autodoc",
20+
"sphinxcontrib.jquery",
2021
"sphinx.ext.intersphinx",
2122
"sphinx.ext.napoleon",
2223
"sphinx.ext.todo",

docs/requirements.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,3 +3,4 @@
33
# SPDX-License-Identifier: Unlicense
44

55
sphinx>=4.0.0
6+
sphinxcontrib-jquery

examples/cellular/minimqtt_adafruitio_cellular.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636

3737
### Code ###
3838

39+
3940
# Define callback methods which are called when events occur
4041
# pylint: disable=unused-argument, redefined-outer-name
4142
def connected(client, userdata, flags, rc):

examples/cellular/minimqtt_simpletest_cellular.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,7 @@
3838

3939
### Code ###
4040

41+
4142
# Define callback methods which are called when events occur
4243
# pylint: disable=unused-argument, redefined-outer-name
4344
def connect(client, userdata, flags, rc):

examples/cpython/minimqtt_adafruitio_cpython.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
### Code ###
2727

28+
2829
# Define callback methods which are called when events occur
2930
# pylint: disable=unused-argument, redefined-outer-name
3031
def connected(client, userdata, flags, rc):

examples/cpython/minimqtt_simpletest_cpython.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525
# Use this topic if you'd like to connect to io.adafruit.com
2626
# mqtt_topic = secrets["aio_username"] + "/feeds/temperature"
2727

28+
2829
### Code ###
2930
# Define callback methods which are called when events occur
3031
# pylint: disable=unused-argument, redefined-outer-name

0 commit comments

Comments
 (0)