Skip to content

Commit

Permalink
refactor: update pre-commit hooks (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
palazzem authored Feb 1, 2024
1 parent 7df2fda commit e5879b9
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 9 deletions.
16 changes: 8 additions & 8 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ fail_fast: true

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-ast
- id: check-json
Expand All @@ -15,47 +15,47 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/PyCQA/isort
rev: 5.12.0
rev: 5.13.2
hooks:
- id: isort
exclude: tests/hass/
args: ["--profile", "black"]

- repo: https://github.com/asottile/pyupgrade
rev: v3.10.1
rev: v3.15.0
hooks:
- id: pyupgrade

- repo: https://github.com/psf/black
rev: 23.7.0
rev: 24.1.1
hooks:
- id: black
exclude: tests/hass/
args: [--line-length=120]

- repo: https://github.com/PyCQA/flake8
rev: 6.1.0
rev: 7.0.0
hooks:
- id: flake8
exclude: tests/hass/
args: [--max-line-length=120 ]

- repo: https://github.com/PyCQA/bandit
rev: '1.7.5'
rev: '1.7.7'
hooks:
- id: bandit
exclude: tests/|tests/hass/

- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.0.285
rev: v0.1.15
hooks:
- id: ruff
exclude: tests/hass/
args: [--line-length=120]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.8.0
hooks:
- id: mypy
exclude: tests/|tests/hass/
Expand Down
1 change: 1 addition & 0 deletions custom_components/econnect_metronet/__init__.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The E-connect Alarm integration."""

import asyncio
import logging

Expand Down
1 change: 1 addition & 0 deletions custom_components/econnect_metronet/alarm_control_panel.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""The E-connect Alarm Entity."""

import logging

from homeassistant.components.alarm_control_panel import (
Expand Down
1 change: 1 addition & 0 deletions custom_components/econnect_metronet/binary_sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for e-connect binary sensors (sectors, inputs and alert)."""

from elmo import query as q
from homeassistant.components.binary_sensor import (
BinarySensorDeviceClass,
Expand Down
1 change: 1 addition & 0 deletions custom_components/econnect_metronet/const.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Constants for the E-connect Alarm integration."""

from elmo import systems as s

SUPPORTED_SYSTEMS = {
Expand Down
1 change: 1 addition & 0 deletions custom_components/econnect_metronet/decorators.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Decorators used to share the same logic between functions."""

import functools
import logging

Expand Down
1 change: 1 addition & 0 deletions custom_components/econnect_metronet/sensor.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
"""Module for e-connect sensors (alert) """

from elmo import query as q
from homeassistant.components.sensor import SensorEntity
from homeassistant.config_entries import ConfigEntry
Expand Down
1 change: 0 additions & 1 deletion tests/fixtures/responses.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,6 @@ def test_client_get_sectors_status(server):
# Continue with the test...
"""


LOGIN = """
{
"SessionId": "00000000-0000-0000-0000-000000000000",
Expand Down

0 comments on commit e5879b9

Please sign in to comment.