2020-01-13 23:35:55 +01:00
|
|
|
# See https://pre-commit.com for more information
|
|
|
|
# See https://pre-commit.com/hooks.html for more hooks
|
|
|
|
repos:
|
2021-03-07 20:03:16 +01:00
|
|
|
- repo: https://github.com/ambv/black
|
2022-06-30 12:42:28 +02:00
|
|
|
rev: 22.6.0
|
2020-01-13 23:35:55 +01:00
|
|
|
hooks:
|
2021-03-07 20:03:16 +01:00
|
|
|
- id: black
|
|
|
|
args:
|
|
|
|
- --safe
|
|
|
|
- --quiet
|
|
|
|
files: ^((esphome|script|tests)/.+)?[^/]+\.py$
|
|
|
|
- repo: https://gitlab.com/pycqa/flake8
|
2022-02-01 10:22:43 +01:00
|
|
|
rev: 4.0.1
|
2021-03-07 20:03:16 +01:00
|
|
|
hooks:
|
|
|
|
- id: flake8
|
|
|
|
additional_dependencies:
|
|
|
|
- flake8-docstrings==1.5.0
|
|
|
|
- pydocstyle==5.1.1
|
|
|
|
files: ^(esphome|tests)/.+\.py$
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v3.4.0
|
|
|
|
hooks:
|
|
|
|
- id: no-commit-to-branch
|
|
|
|
args:
|
|
|
|
- --branch=dev
|
2021-07-02 15:42:36 +02:00
|
|
|
- --branch=release
|
2021-03-07 20:03:16 +01:00
|
|
|
- --branch=beta
|
2022-02-10 09:55:11 +01:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
2022-08-09 03:53:18 +02:00
|
|
|
rev: v2.37.3
|
2022-02-10 09:55:11 +01:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: [--py38-plus]
|