Skip to content

Commit

Permalink
chore: update pre-commit hooks (#27)
Browse files Browse the repository at this point in the history
  • Loading branch information
duhow authored Oct 26, 2024
1 parent 9e08bca commit 0dbccc4
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 11 deletions.
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.4.0
rev: v5.0.0
hooks:
- id: trailing-whitespace
- id: check-docstring-first
Expand All @@ -16,35 +16,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/aigues_barcelona/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Integration for Aigues de Barcelona."""

from __future__ import annotations

from homeassistant.config_entries import ConfigEntry
Expand Down
1 change: 1 addition & 0 deletions custom_components/aigues_barcelona/config_flow.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Config flow for integration."""

from __future__ import annotations

import logging
Expand Down
1 change: 1 addition & 0 deletions custom_components/aigues_barcelona/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Platform for sensor integration."""

# from __future__ import annotations
import logging
from datetime import datetime
Expand Down

0 comments on commit 0dbccc4

Please sign in to comment.