Skip to content

Commit

Permalink
Change to pypi and other tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
justmobilize committed Feb 21, 2024
1 parent d905b5d commit 769e723
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

repos:
- repo: https://github.com/python/black
rev: 23.3.0
rev: 24.2.0
hooks:
- id: black
- repo: https://github.com/fsfe/reuse-tool
Expand Down Expand Up @@ -32,11 +32,11 @@ repos:
types: [python]
files: "^examples/"
args:
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
- --disable=consider-using-f-string,duplicate-code,missing-docstring,invalid-name
- id: pylint
name: pylint (test code)
description: Run pylint rules on "tests/*.py" files
types: [python]
files: "^tests/"
args:
- --disable=missing-docstring,invalid-name,consider-using-f-string,duplicate-code
- --disable=consider-using-f-string,duplicate-code,missing-docstring,invalid-name,protected-access
1 change: 1 addition & 0 deletions adafruit_minimqtt/adafruit_minimqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -481,6 +481,7 @@ def _connect(
is_ssl=self._is_ssl,
ssl_context=self._ssl_context,
)
self._backwards_compatible_sock = not hasattr(self._sock, "recv_into")

fixed_header = bytearray([0x10])

Expand Down
2 changes: 1 addition & 1 deletion requirements.txt
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@
# SPDX-License-Identifier: Unlicense

Adafruit-Blinka
Adafruit-Circuitpython-ConnectionManager@git+https://github.com/justmobilize/Adafruit_CircuitPython_ConnectionManager@connection-manager
Adafruit-Circuitpython-ConnectionManager
5 changes: 3 additions & 2 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
# SPDX-FileCopyrightText: 2023 Vladimír Kotal
# SPDX-FileCopyrightText: 2024 Justin Myers for Adafruit Industries
#
# SPDX-License-Identifier: MIT

Expand All @@ -9,15 +10,15 @@ envlist = py311
description = run tests
deps =
pytest==7.4.3
pytest-subtests==0.11.0
pytest-subtests==0.11.0
commands = pytest

[testenv:coverage]
description = run coverage
deps =
pytest==7.4.3
pytest-cov==4.1.0
pytest-subtests==0.11.0
pytest-subtests==0.11.0
package = editable
commands =
coverage run --source=. --omit=tests/* --branch {posargs} -m pytest
Expand Down

0 comments on commit 769e723

Please sign in to comment.