Skip to content

Commit f20ac17

Browse files
authored
Merge pull request #328 from home-assistant/dev
0.9.0
2 parents d311511 + f650e6c commit f20ac17

File tree

14 files changed

+1246
-514
lines changed

14 files changed

+1246
-514
lines changed

.hound.yml

Lines changed: 0 additions & 2 deletions
This file was deleted.

.isort.cfg

Lines changed: 0 additions & 2 deletions
This file was deleted.

.pre-commit-config.yaml

Lines changed: 64 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,66 @@
11
repos:
2-
- repo: https://github.com/ambv/black
3-
rev: stable
4-
hooks:
5-
- id: black
6-
language_version: python3.7
7-
- repo: https://github.com/pre-commit/mirrors-isort
8-
rev: master # Use the revision sha / tag you want to point at
9-
hooks:
10-
- id: isort
11-
- repo: https://github.com/pre-commit/pre-commit-hooks
12-
rev: v2.0.0
13-
hooks:
14-
- id: flake8
15-
- repo: local
16-
hooks:
17-
- id: pylint
18-
name: pylint
19-
entry: python3 -m pylint.__main__
20-
language: system
21-
types: [python]
22-
- repo: git://github.com/luismayta/pre-commit-mypy
23-
sha: '0.1.1' # Use the sha you want to point at
24-
hooks:
25-
- id: mypy
2+
- repo: https://github.com/asottile/pyupgrade
3+
rev: v2.1.0
4+
hooks:
5+
- id: pyupgrade
6+
args: [--py37-plus]
7+
- repo: https://github.com/psf/black
8+
rev: 19.10b0
9+
hooks:
10+
- id: black
11+
args:
12+
- --safe
13+
- --quiet
14+
files: ^((homeassistant|script|tests)/.+)?[^/]+\.py$
15+
- repo: https://github.com/codespell-project/codespell
16+
rev: v1.16.0
17+
hooks:
18+
- id: codespell
19+
args:
20+
- --ignore-words-list=hass,alot,datas,dof,dur,farenheit,hist,iff,ines,ist,lightsensor,mut,nd,pres,referer,ser,serie,te,technik,ue,uint,visability,wan,wanna,withing
21+
- --skip="./.*,*.json"
22+
- --quiet-level=2
23+
exclude_types: [json]
24+
- repo: https://gitlab.com/pycqa/flake8
25+
rev: 3.7.9
26+
hooks:
27+
- id: flake8
28+
additional_dependencies:
29+
- flake8-docstrings==1.5.0
30+
- pydocstyle==5.0.2
31+
files: ^(homeassistant|script|tests)/.+\.py$
32+
- repo: https://github.com/PyCQA/bandit
33+
rev: 1.6.2
34+
hooks:
35+
- id: bandit
36+
args:
37+
- --quiet
38+
- --format=custom
39+
- --configfile=tests/bandit.yaml
40+
files: ^(homeassistant_cli|tests)/.+\.py$
41+
- repo: https://github.com/pre-commit/mirrors-isort
42+
rev: v4.3.21
43+
hooks:
44+
- id: isort
45+
- repo: https://github.com/pre-commit/pre-commit-hooks
46+
rev: v2.4.0
47+
hooks:
48+
- id: check-executables-have-shebangs
49+
stages: [manual]
50+
- id: check-json
51+
- id: no-commit-to-branch
2652
args:
27-
- --ignore-missing-imports
53+
#- --branch=dev
54+
- --branch=master
55+
- --branch=rc
56+
- id: trailing-whitespace
57+
- id: end-of-file-fixer
58+
- repo: https://github.com/adrienverge/yamllint.git
59+
rev: v1.21.0
60+
hooks:
61+
- id: yamllint
62+
- repo: https://github.com/prettier/prettier
63+
rev: 2.0.4
64+
hooks:
65+
- id: prettier
66+
stages: [manual]

0 commit comments

Comments
 (0)