Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 914f6f1

Browse files
Merge pull request #757 from custom-components/pre-commit-ci-update-config
[pre-commit.ci] pre-commit autoupdate Will fix errors after merge
2 parents 4acb52e + ab3fcd3 commit 914f6f1

File tree

6 files changed

+19
-12
lines changed

6 files changed

+19
-12
lines changed

‎.pre-commit-config.yaml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
repos:
22
- repo: https://github.com/psf/black
3-
rev: 22.12.0
3+
rev: 25.1.0
44
hooks:
55
- id: black
66
args:
77
- --safe
88
- --quiet
99
files: ^((custom_components|tests)/.+)?[^/]+\.py$
1010
- repo: https://github.com/codespell-project/codespell
11-
rev: v2.2.2
11+
rev: v2.4.1
1212
hooks:
1313
- id: codespell
1414
args:
@@ -17,34 +17,34 @@ repos:
1717
- --quiet-level=2
1818
exclude_types: [csv, json]
1919
- repo: https://github.com/pycqa/flake8
20-
rev: 5.0.4
20+
rev: 7.3.0
2121
hooks:
2222
- id: flake8
2323
additional_dependencies:
2424
- flake8-docstrings==1.6.0
2525
- pydocstyle==6.1.1
2626
files: ^(custom_components|tests)/.+\.py$
2727
- repo: https://github.com/PyCQA/bandit
28-
rev: 1.7.4
28+
rev: 1.8.6
2929
hooks:
3030
- id: bandit
3131
args:
3232
- --quiet
3333
- --format=custom
3434
- --configfile=tests/bandit.yaml
3535
files: ^(custom_components|tests)/.+\.py$
36-
- repo: https://github.com/pre-commit/mirrors-isort
37-
rev: v5.9.3
36+
- repo: https://github.com/PyCQA/isort
37+
rev: 6.0.1
3838
hooks:
3939
- id: isort
4040
- repo: https://github.com/pre-commit/pre-commit-hooks
41-
rev: v4.3.0
41+
rev: v6.0.0
4242
hooks:
4343
- id: check-executables-have-shebangs
4444
stages: [manual]
4545
- id: check-json
4646
- repo: https://github.com/adrienverge/yamllint.git
47-
rev: v1.28.0
47+
rev: v1.37.1
4848
hooks:
4949
- id: yamllint
5050
- repo: local
@@ -56,7 +56,7 @@ repos:
5656
language: system
5757
files: ^(custom_components|tests)/.+\.py$
5858
- repo: https://github.com/pre-commit/mirrors-mypy
59-
rev: v0.991
59+
rev: v1.17.1
6060
hooks:
6161
- id: mypy
6262
name: mypy

‎custom_components/pyscript/config_flow.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Config flow for pyscript."""
2+
23
import json
34
from typing import Any, Dict
45

‎custom_components/pyscript/entity.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Entity Classes."""
2+
23
from homeassistant.const import STATE_UNKNOWN
34
from homeassistant.helpers.restore_state import RestoreEntity
45
from homeassistant.helpers.typing import StateType

‎custom_components/pyscript/logbook.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Describe logbook events."""
2+
23
import logging
34

45
from homeassistant.core import callback

‎custom_components/pyscript/requirements.py‎

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Requirements helpers for pyscript."""
2+
23
import glob
34
import logging
45
import os
@@ -298,9 +299,11 @@ async def install_requirements(hass, config_entry, pyscript_folder):
298299
hass,
299300
DOMAIN,
300301
[
301-
f"{package}=={pkg_info[ATTR_VERSION]}"
302-
if pkg_info[ATTR_VERSION] != UNPINNED_VERSION
303-
else package
302+
(
303+
f"{package}=={pkg_info[ATTR_VERSION]}"
304+
if pkg_info[ATTR_VERSION] != UNPINNED_VERSION
305+
else package
306+
)
304307
for package, pkg_info in requirements_to_install.items()
305308
],
306309
)

‎tests/test_init.py‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""Test the pyscript component."""
2+
23
from ast import literal_eval
34
import asyncio
45
from datetime import datetime as dt

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /