From 0b1ecae070124f208d8c9cf6c2c96efeaa67ae2a Mon Sep 17 00:00:00 2001 From: Andrey Khrolenok Date: Wed, 8 Feb 2023 22:11:16 +0300 Subject: [PATCH] Update pre-commit config --- .pre-commit-config.yaml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7ad1548..b9db6ed 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -6,11 +6,19 @@ repos: entry: bin/update_manifest language: script files: ^(custom_components/.+/const\.py|requirements\.txt)$ + - repo: https://github.com/charliermarsh/ruff-pre-commit + rev: v0.0.241 + hooks: + - id: ruff + args: + - --fix + files: ^(custom_components|bin|tests)/.+\.py$ - repo: https://github.com/asottile/pyupgrade rev: v3.3.1 hooks: - id: pyupgrade - args: [ --py37-plus ] + args: [ --py310-plus ] + stages: [manual] - repo: https://github.com/psf/black rev: 23.1.0 hooks: @@ -27,6 +35,7 @@ repos: - flake8-docstrings==1.5.0 - pydocstyle==5.0.2 files: ^(custom_components|bin|tests)/.+\.py$ + stages: [manual] - repo: https://github.com/PyCQA/bandit rev: 1.7.4 hooks: