Skip to content

Commit

Permalink
ci: Upgrade black to ~=24.1
Browse files Browse the repository at this point in the history
  • Loading branch information
jabesq committed Mar 26, 2024
1 parent 5309cdd commit 4296c98
Show file tree
Hide file tree
Showing 28 changed files with 32 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,14 @@ exclude: ^(fixtures/)

repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.0.292
rev: v0.3.4
hooks:
- id: ruff
args:
- --fix

- repo: https://github.com/asottile/pyupgrade
rev: v3.15.0
rev: v3.15.2
hooks:
- id: pyupgrade
args: [--py310-plus]
Expand All @@ -31,13 +31,13 @@ repos:
- id: yesqa

- repo: https://github.com/psf/black
rev: 23.9.1
rev: 24.3.0
hooks:
- id: black
language_version: python3

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.9.0
hooks:
- id: mypy
name: mypy
Expand Down
4 changes: 2 additions & 2 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Added

-
-

### Changed

Expand All @@ -25,7 +25,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

### Fixed

-
-

### Security

Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Expose submodules."""

from pyatmo import const, modules
from pyatmo.account import AsyncAccount
from pyatmo.auth import AbstractAsyncAuth
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/account.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for a Netatmo account."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/auth.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Support for Netatmo authentication."""

from __future__ import annotations

from abc import ABC, abstractmethod
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Common constants."""

from __future__ import annotations

from typing import Any
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/event.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to represent a Netatmo event."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/helpers.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Collection of helper functions."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/home.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to represent a Netatmo home."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/modules/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Expose submodules."""

from .base_class import Place
from .bticino import (
BNAB,
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/modules/base_class.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Base class for Netatmo entities."""

from __future__ import annotations

from abc import ABC
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/modules/bticino.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to represent BTicino modules."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/modules/device_types.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Definitions of Netatmo devices types."""

from __future__ import annotations

from enum import Enum
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/modules/idiamant.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to represent iDiamant modules."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/modules/legrand.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to represent Legrand modules."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/modules/module.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to represent a Netatmo module."""

from __future__ import annotations

from datetime import datetime, timezone
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/modules/netatmo.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to represent Netatmo modules."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/modules/smarther.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to represent Smarther modules."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/modules/somfy.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to represent somfy modules."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/person.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to represent a Netatmo person."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/room.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to represent a Netatmo room."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions src/pyatmo/schedule.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module to represent a Netatmo schedule."""

from __future__ import annotations

from dataclasses import dataclass
Expand Down
1 change: 1 addition & 0 deletions tests/common.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define shared test helpers."""

# pylint: disable=redefined-outer-name, protected-access, unused-argument
from __future__ import annotations

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 @@
"""Define shared fixtures."""

# pylint: disable=redefined-outer-name, protected-access
from contextlib import contextmanager
from unittest.mock import AsyncMock, patch
Expand Down
1 change: 1 addition & 0 deletions tests/test_camera.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for camera module."""

import json
from unittest.mock import AsyncMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_climate.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for climate module."""

import json
from unittest.mock import AsyncMock, patch

Expand Down
1 change: 1 addition & 0 deletions tests/test_home.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for home module."""

import datetime as dt
import json
from unittest.mock import AsyncMock, patch
Expand Down
1 change: 1 addition & 0 deletions tests/test_shutter.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Define tests for shutter module."""

import json
from unittest.mock import AsyncMock, patch

Expand Down

0 comments on commit 4296c98

Please sign in to comment.