Skip to content

Commit 769e723

Browse files
committed
Change to pypi and other tweaks
1 parent d905b5d commit 769e723

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

.pre-commit-config.yaml

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

55
repos:
66
- repo: https://github.com/python/black
7-
rev: 23.3.0
7+
rev: 24.2.0
88
hooks:
99
- id: black
1010
- repo: https://github.com/fsfe/reuse-tool
@@ -32,11 +32,11 @@ repos:
3232
types: [python]
3333
files: "^examples/"
3434
args:
35-
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
35+
- --disable=consider-using-f-string,duplicate-code,missing-docstring,invalid-name
3636
- id: pylint
3737
name: pylint (test code)
3838
description: Run pylint rules on "tests/*.py" files
3939
types: [python]
4040
files: "^tests/"
4141
args:
42-
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
42+
- --disable=consider-using-f-string,duplicate-code,missing-docstring,invalid-name,protected-access

adafruit_minimqtt/adafruit_minimqtt.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -481,6 +481,7 @@ def _connect(
481481
is_ssl=self._is_ssl,
482482
ssl_context=self._ssl_context,
483483
)
484+
self._backwards_compatible_sock = not hasattr(self._sock, "recv_into")
484485

485486
fixed_header = bytearray([0x10])
486487

requirements.txt

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

55
Adafruit-Blinka
6-
Adafruit-Circuitpython-ConnectionManager@git+https://github.com/justmobilize/Adafruit_CircuitPython_ConnectionManager@connection-manager
6+
Adafruit-Circuitpython-ConnectionManager

tox.ini

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
# SPDX-FileCopyrightText: 2023 Vladimír Kotal
2+
# SPDX-FileCopyrightText: 2024 Justin Myers for Adafruit Industries
23
#
34
# SPDX-License-Identifier: MIT
45

@@ -9,15 +10,15 @@ envlist = py311
910
description = run tests
1011
deps =
1112
pytest==7.4.3
12-
pytest-subtests==0.11.0
13+
pytest-subtests==0.11.0
1314
commands = pytest
1415

1516
[testenv:coverage]
1617
description = run coverage
1718
deps =
1819
pytest==7.4.3
1920
pytest-cov==4.1.0
20-
pytest-subtests==0.11.0
21+
pytest-subtests==0.11.0
2122
package = editable
2223
commands =
2324
coverage run --source=. --omit=tests/* --branch {posargs} -m pytest

0 commit comments

Comments
 (0)