Skip to content

Commit

Permalink
Bump black from 23.12.1 to 25.1.0 (#784)
Browse files Browse the repository at this point in the history
* Bump black from 23.12.1 to 25.1.0

Bumps [black](https://github.com/psf/black) from 23.12.1 to 25.1.0.
- [Release notes](https://github.com/psf/black/releases)
- [Changelog](https://github.com/psf/black/blob/main/CHANGES.md)
- [Commits](psf/black@23.12.1...25.1.0)

---
updated-dependencies:
- dependency-name: black
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <[email protected]>

* Run black

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Martin Hjelmare <[email protected]>
  • Loading branch information
dependabot[bot] and MartinHjelmare authored Feb 3, 2025
1 parent c1c4d5e commit 2453905
Show file tree
Hide file tree
Showing 37 changed files with 37 additions and 1 deletion.
1 change: 1 addition & 0 deletions async_main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Show how to implement pymysensors async."""

import asyncio
import logging

Expand Down
1 change: 1 addition & 0 deletions main.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example for using pymysensors."""

import logging

from mysensors import mysensors
Expand Down
1 change: 1 addition & 0 deletions mqtt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Example for using pymysensors with mqtt."""

import paho.mqtt.client as mqtt

from mysensors import mysensors
Expand Down
1 change: 1 addition & 0 deletions mysensors/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Python implementation of MySensors API."""

import logging
from pathlib import Path

Expand Down
1 change: 1 addition & 0 deletions mysensors/cli/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implement a command line interface for pymysensors."""

import logging

import click
Expand Down
1 change: 1 addition & 0 deletions mysensors/cli/gateway_mqtt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Start a mqtt gateway."""

import asyncio
from contextlib import contextmanager
import logging
Expand Down
1 change: 1 addition & 0 deletions mysensors/cli/gateway_serial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Start a serial gateway."""

import click

from mysensors.cli.helper import (
Expand Down
1 change: 1 addition & 0 deletions mysensors/cli/gateway_tcp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Start a tcp gateway."""

import click

from mysensors.cli.helper import (
Expand Down
1 change: 1 addition & 0 deletions mysensors/cli/helper.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Offer common helper functions for the CLI."""

import asyncio
import logging
import time
Expand Down
1 change: 1 addition & 0 deletions mysensors/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helpers for const."""

from importlib import import_module

from awesomeversion import AwesomeVersion
Expand Down
1 change: 1 addition & 0 deletions mysensors/const_14.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""MySensors constants for version 1.4 of MySensors."""

from enum import IntEnum

import voluptuous as vol
Expand Down
1 change: 1 addition & 0 deletions mysensors/const_15.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""MySensors constants for version 1.5 of MySensors."""

import binascii

import voluptuous as vol
Expand Down
1 change: 1 addition & 0 deletions mysensors/const_20.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""MySensors constants for version 2.0 of MySensors."""

import voluptuous as vol

from mysensors.const_15 import (
Expand Down
1 change: 1 addition & 0 deletions mysensors/const_21.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""MySensors constants for version 2.1 of MySensors."""

# pylint: disable=unused-import
from mysensors.const_20 import ( # noqa: F401
MAX_NODE_ID,
Expand Down
1 change: 1 addition & 0 deletions mysensors/const_22.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""MySensors constants for version 2.2 of MySensors."""

import voluptuous as vol

# pylint: disable=unused-import
Expand Down
1 change: 1 addition & 0 deletions mysensors/gateway_mqtt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implement an MQTT gateway."""

import logging

from mysensors import BaseAsyncGateway, BaseSyncGateway, Gateway, Message
Expand Down
1 change: 1 addition & 0 deletions mysensors/gateway_serial.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implement a serial gateway."""

import asyncio
import logging
import time
Expand Down
1 change: 1 addition & 0 deletions mysensors/gateway_tcp.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implement a TCP gateway."""

import asyncio
import ipaddress
import logging
Expand Down
1 change: 1 addition & 0 deletions mysensors/handler.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Implement message handlers."""

import calendar
import logging
import time
Expand Down
1 change: 1 addition & 0 deletions mysensors/message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Handle messages."""

import logging

import voluptuous as vol
Expand Down
1 change: 1 addition & 0 deletions mysensors/mysensors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Convenience module for backwards compatibility."""

# flake8: noqa: F401
# pylint: disable=unused-import
from mysensors import Gateway
Expand Down
1 change: 1 addition & 0 deletions mysensors/ota.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Handle MySensors OTA FW updates."""

import binascii
import logging
import os
Expand Down
1 change: 1 addition & 0 deletions mysensors/persistence.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Handle persistence."""

import json
import logging
import os
Expand Down
1 change: 1 addition & 0 deletions mysensors/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Handle sensor classes."""

import logging
from collections import deque

Expand Down
1 change: 1 addition & 0 deletions mysensors/task.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Handle sync and async tasks."""

import asyncio
from collections import deque
import logging
Expand Down
1 change: 1 addition & 0 deletions mysensors/transport.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Organize MySensors transports."""

import asyncio
import logging
import threading
Expand Down
1 change: 1 addition & 0 deletions mysensors/validation.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Expose validators to use in the library."""

import logging

from awesomeversion import AwesomeVersion, AwesomeVersionException
Expand Down
2 changes: 1 addition & 1 deletion requirements_lint.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
black==23.12.1
black==25.1.0
flake8==7.1.1
flake8-docstrings==1.7.0
pylint==3.3.4
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Setup file for mysensors package."""

from pathlib import Path

from setuptools import setup, find_packages
Expand Down
1 change: 1 addition & 0 deletions tests/test_gateway_mqtt.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test mysensors MQTT gateway with unittest."""

import logging
import time
from unittest import mock
Expand Down
1 change: 1 addition & 0 deletions tests/test_message.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test mysensors messages."""

from unittest import mock

import pytest
Expand Down
1 change: 1 addition & 0 deletions tests/test_mysensors.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test mysensors with unittest."""

import logging
import time
from unittest import mock
Expand Down
1 change: 1 addition & 0 deletions tests/test_ota.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test mysensors OTA FW with unittest."""

import binascii
import struct
import tempfile
Expand Down
1 change: 1 addition & 0 deletions tests/test_persistence.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test persistence."""

import json
import os
from collections import deque
Expand Down
1 change: 1 addition & 0 deletions tests/test_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test task module."""

import pytest
import voluptuous

Expand Down
1 change: 1 addition & 0 deletions tests/test_task.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test task module."""

from unittest import mock

from mysensors import Gateway
Expand Down
1 change: 1 addition & 0 deletions tests/test_transport.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test the gateway transport."""

from unittest import mock

import pytest
Expand Down

0 comments on commit 2453905

Please sign in to comment.