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-04-05 11:50:51 +02:00
|
|
|
rev: 22.3.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-04-04 20:06:42 +02:00
|
|
|
rev: v2.31.1
|
2022-02-10 09:55:11 +01:00
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: [--py38-plus]
|