Skip to content

Commit

Permalink
chore: update pre-commit checks
Browse files Browse the repository at this point in the history
  • Loading branch information
duhow committed Nov 8, 2024
1 parent c27df50 commit 9a6d02d
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 12 deletions.
2 changes: 1 addition & 1 deletion .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
---
ko_fi: duhow
custom: ["https://paypal.me/duhow"]
custom: [https://paypal.me/duhow]
18 changes: 7 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ default_install_hook_types:
- commit-msg
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
Expand All @@ -17,35 +17,31 @@ repos:
- id: debug-statements
- id: end-of-file-fixer
- repo: https://github.com/myint/docformatter
rev: v1.5.1
rev: eb1df347edd128b30cd3368dddc3aa65edcfac38
hooks:
- id: docformatter
language: python
args: [--in-place]
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
rev: v3.19.0
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/asottile/reorder_python_imports
rev: v3.9.0
hooks:
- id: reorder-python-imports
args: [--py38-plus]
- repo: https://github.com/psf/black
rev: 22.12.0
rev: 24.10.0
hooks:
- id: black
language_version: python3
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
rev: 7.1.1
hooks:
- id: flake8
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0
hooks:
- id: python-use-type-annotations
- repo: https://github.com/jumanjihouse/pre-commit-hook-yamlfmt
rev: 0.2.2
rev: 0.2.3
hooks:
- id: yamlfmt
args: [--mapping, '2', --sequence, '2', --offset, '0']
1 change: 1 addition & 0 deletions custom_components/cover_time_based/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Component to wrap switch entities in entities of other domains."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/cover_time_based/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for Cover Time-based integration."""

from __future__ import annotations

from collections.abc import Mapping
Expand Down
1 change: 1 addition & 0 deletions custom_components/cover_time_based/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for the Cover Time-based integration."""

from typing import Final

DOMAIN: Final = "cover_time_based"
Expand Down
1 change: 1 addition & 0 deletions custom_components/cover_time_based/cover.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Cover support for switch entities."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/cover_time_based/travelcalculator.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
* At time 20 TravelCalculator will return position 70 (final position not reached).
* At time 30 TravelCalculator will return position 60 (final position reached).
"""

from __future__ import annotations

import time
Expand Down

0 comments on commit 9a6d02d

Please sign in to comment.