Skip to content

Commit

Permalink
Bump black from 23.1.0 to 24.4.0 (#311)
Browse files Browse the repository at this point in the history
* Bump black from 23.1.0 to 24.4.0

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

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

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

* make new black happy

---------

Signed-off-by: dependabot[bot] <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: mib1185 <[email protected]>
  • Loading branch information
dependabot[bot] and mib1185 authored Apr 12, 2024
1 parent 553b4cc commit d3a469a
Show file tree
Hide file tree
Showing 37 changed files with 37 additions and 1 deletion.
2 changes: 1 addition & 1 deletion requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
aiohttp
black==23.1.0
black==24.4.0
coverage[toml]
flake8-bandit==4.1.1
flake8-bugbear==24.2.6
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The synologydsm-api library."""

from .synology_dsm import SynologyDSM

__all__ = ["SynologyDSM"]
1 change: 1 addition & 0 deletions src/synology_dsm/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Synology API models."""

from __future__ import annotations

from typing import TYPE_CHECKING, Generic, TypeVar
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/core/external_usb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM external USB device data."""

from __future__ import annotations

from typing import TypedDict, cast
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/core/security.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM Security data."""

from __future__ import annotations

from typing import TypedDict
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/core/share.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Shared Folders data."""

from __future__ import annotations

from typing import TypedDict
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/core/system.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM System data and actions."""

from __future__ import annotations

from typing import Any, TypedDict
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/core/upgrade.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM Upgrade data and actions."""

from __future__ import annotations

from typing import TypedDict
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/core/utilization.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM Utilization data."""

from __future__ import annotations

from typing import TypedDict
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/download_station/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Synology DownloadStation API wrapper."""

from __future__ import annotations

from synology_dsm.api import SynoBaseApi
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/download_station/task.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DownloadStation task."""

from __future__ import annotations

from typing import TypedDict
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/dsm/information.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM Information data."""

from __future__ import annotations

from typing import TypedDict
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/dsm/network.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM Network data."""

from __future__ import annotations

from typing import TypedDict
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/photos/model.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Data models for Synology Photos Module."""

from dataclasses import dataclass


Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/storage/storage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM Storage data."""

from __future__ import annotations

from typing import TypedDict, cast
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/surveillance_station/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Synology SurveillanceStation API wrapper."""

from __future__ import annotations

from typing import TypedDict, cast
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/api/surveillance_station/camera.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""SurveillanceStation camera."""

from __future__ import annotations

from typing import TypedDict
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library constants."""

from typing import Final

# APIs
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/exceptions.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library exceptions."""

from __future__ import annotations

from .const import (
Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Helpers."""

from __future__ import annotations


Expand Down
1 change: 1 addition & 0 deletions src/synology_dsm/synology_dsm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Class to interact with Synology DSM."""

from __future__ import annotations

import asyncio
Expand Down
1 change: 1 addition & 0 deletions tests/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Library tests."""

from json import JSONDecodeError
from urllib.parse import urlencode

Expand Down
1 change: 1 addition & 0 deletions tests/api_data/dsm_5/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM 5 datas."""

from .const_5_api_auth import (
DSM_5_AUTH_LOGIN,
DSM_5_AUTH_LOGIN_2SA,
Expand Down
1 change: 1 addition & 0 deletions tests/api_data/dsm_5/const_5_api_auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM 5 SYNO.API.Auth data."""

from tests.const import DEVICE_TOKEN, ERROR_AUTH_OTP_NOT_SPECIFIED, SESSION_ID

# No synotoken for an unknown reason
Expand Down
1 change: 1 addition & 0 deletions tests/api_data/dsm_5/storage/const_5_storage_storage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM 5 SYNO.Storage.CGI.Storage data."""

from tests.const import UNIQUE_KEY

DSM_5_STORAGE_STORAGE_DS410J_RAID5_4DISKS_1VOL = {
Expand Down
1 change: 1 addition & 0 deletions tests/api_data/dsm_6/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM 6 datas."""

from .const_6_api_auth import (
DSM_6_AUTH_LOGIN,
DSM_6_AUTH_LOGIN_2SA,
Expand Down
1 change: 1 addition & 0 deletions tests/api_data/dsm_6/const_6_api_auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM 6 SYNO.API.Auth data."""

from tests.const import (
DEVICE_TOKEN,
ERROR_AUTH_OTP_NOT_SPECIFIED,
Expand Down
1 change: 1 addition & 0 deletions tests/api_data/dsm_6/storage/const_6_storage_storage.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM 6 SYNO.Storage.CGI.Storage data."""

from tests.const import UNIQUE_KEY

DSM_6_STORAGE_STORAGE_DS1819_PLUS_SHR2_8DISKS_1VOL = {
Expand Down
1 change: 1 addition & 0 deletions tests/api_data/dsm_7/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM 6 datas."""

from .const_7_api_auth import (
DSM_7_AUTH_LOGIN,
DSM_7_AUTH_LOGIN_2SA,
Expand Down
1 change: 1 addition & 0 deletions tests/api_data/dsm_7/const_7_api_auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM 7 SYNO.API.Auth data."""

from tests.const import (
DEVICE_TOKEN,
ERROR_AUTH_OTP_NOT_SPECIFIED,
Expand Down
1 change: 1 addition & 0 deletions tests/api_data/dsm_7/core/const_7_core_external_usb.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""DSM 6 SYNO.Core.ExternalDevice.Storage.USB data."""

DSM_7_CORE_EXTERNAL_USB_DS1821_PLUS_NO_EXTERNAL_USB = {
"data": {"devices": []},
"success": True,
Expand Down
1 change: 1 addition & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Main conftest."""

import pytest

from synology_dsm.synology_dsm import SynologyDSM
Expand Down
1 change: 1 addition & 0 deletions tests/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Test constants."""

# API test data are localized in
# `tests/api_data/dsm_[dsm_major_version]`
# Data constant names should be like :
Expand Down
1 change: 1 addition & 0 deletions tests/test_synology_dsm.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Synology DSM tests."""

# pylint: disable=protected-access
import pytest

Expand Down
1 change: 1 addition & 0 deletions tests/test_synology_dsm_5.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Synology DSM tests."""

# pylint: disable=protected-access
import pytest

Expand Down
1 change: 1 addition & 0 deletions tests/test_synology_dsm_6.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Synology DSM tests."""

# pylint: disable=protected-access
import pytest

Expand Down
1 change: 1 addition & 0 deletions tests/test_synology_dsm_7.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Synology DSM tests."""

# pylint: disable=protected-access
import pytest

Expand Down

0 comments on commit d3a469a

Please sign in to comment.