Skip to content

Commit 6987992

Browse files
authored
add-black (esphome#1593)
* Add black Update pre commit Update pre commit add empty line * Format with black
1 parent 2b60b0f commit 6987992

File tree

398 files changed

+21845
-12865
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

398 files changed

+21845
-12865
lines changed

.pre-commit-config.yaml

+23-7
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,27 @@
11
# See https://pre-commit.com for more information
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
4-
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v2.4.0
4+
- repo: https://github.com/ambv/black
5+
rev: 20.8b1
66
hooks:
7-
- id: trailing-whitespace
8-
- id: end-of-file-fixer
9-
- id: check-yaml
10-
- id: check-added-large-files
11-
- id: flake8
7+
- id: black
8+
args:
9+
- --safe
10+
- --quiet
11+
files: ^((esphome|script|tests)/.+)?[^/]+\.py$
12+
- repo: https://gitlab.com/pycqa/flake8
13+
rev: 3.8.4
14+
hooks:
15+
- id: flake8
16+
additional_dependencies:
17+
- flake8-docstrings==1.5.0
18+
- pydocstyle==5.1.1
19+
files: ^(esphome|tests)/.+\.py$
20+
- repo: https://github.com/pre-commit/pre-commit-hooks
21+
rev: v3.4.0
22+
hooks:
23+
- id: no-commit-to-branch
24+
args:
25+
- --branch=dev
26+
- --branch=master
27+
- --branch=beta

0 commit comments

Comments
 (0)