File tree Expand file tree Collapse file tree 5 files changed +19
-22
lines changed
Expand file tree Collapse file tree 5 files changed +19
-22
lines changed Original file line number Diff line number Diff line change 44name : Latest release
55
66env :
7- CACHE_VERSION : 1
7+ CACHE_VERSION : 3
88 DEFAULT_PYTHON : 3.9
99
1010# Only run on merges
Original file line number Diff line number Diff line change 44name : Latest commit
55
66env :
7- CACHE_VERSION : 11
8- DEFAULT_PYTHON : 3.9
7+ CACHE_VERSION : 16
8+ DEFAULT_PYTHON : " 3.9"
99 PRE_COMMIT_HOME : ~/.cache/pre-commit
1010
1111on :
@@ -45,10 +45,10 @@ jobs:
4545 - name : Create Python virtual environment
4646 if : steps.cache-venv.outputs.cache-hit != 'true'
4747 run : |
48+ pip install virtualenv --upgrade
4849 python -m venv venv
4950 . venv/bin/activate
50- pip install -U pip setuptools
51- pip install -e .
51+ pip install -U pip setuptools wheel
5252 pip install -r requirements_test.txt
5353 - name : Restore pre-commit environment from cache
5454 id : cache-precommit
@@ -156,7 +156,7 @@ jobs:
156156 pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual black
157157 pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual codespell
158158 pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual flake8
159- pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual isort
159+ # pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual isort
160160 pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual mypy
161161 pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual userdata
162162 pre-commit run --show-diff-on-failure --color=always --all-files --hook-stage manual yamllint
@@ -195,7 +195,6 @@ jobs:
195195 python -m venv venv
196196 . venv/bin/activate
197197 pip install -U pip setuptools wheel
198- pip install -e .
199198 pip install -r requirements_test.txt
200199
201200 pytest :
Original file line number Diff line number Diff line change 11repos :
22 # Run manually in CI skipping the branch checks
33 - repo : https://github.com/pre-commit/pre-commit-hooks
4- rev : v3.2 .0
4+ rev : v4.1 .0
55 hooks :
66 - id : check-executables-have-shebangs
77 stages : [manual]
88 - id : no-commit-to-branch
99 args :
1010 - --branch=main
1111 - repo : https://github.com/asottile/pyupgrade
12- rev : v2.7.2
12+ rev : v2.30.0
1313 hooks :
1414 - id : pyupgrade
1515 args : [--py37-plus]
1616 - repo : https://github.com/psf/black
17- rev : 21.10b0
17+ rev : 21.12b0
1818 hooks :
1919 - id : black
2020 args :
2121 - --safe
2222 - --quiet
2323 files : ^((plugwise|tests)/.+)?[^/]+\.py$
2424 - repo : https://github.com/codespell-project/codespell
25- rev : v1.17.1
25+ rev : v2.1.0
2626 hooks :
2727 - id : codespell
2828 args :
@@ -31,28 +31,24 @@ repos:
3131 - --quiet-level=2
3232 exclude_types : [csv, json]
3333 - repo : https://gitlab.com/pycqa/flake8
34- rev : 3.8.4
34+ rev : 3.9.2
3535 hooks :
3636 - id : flake8
3737 additional_dependencies :
3838 - flake8-docstrings==1.5.0
3939 - pydocstyle==5.1.1
4040 files : ^(plugwise|tests)/.+\.py$
4141 - repo : https://github.com/PyCQA/bandit
42- rev : 1.6.2
42+ rev : 1.7.1
4343 hooks :
4444 - id : bandit
4545 args :
4646 - --quiet
4747 - --format=custom
4848 - --configfile=tests/bandit.yaml
4949 files : ^(plugwise|tests)/.+\.py$
50- - repo : https://github.com/PyCQA/isort
51- rev : 5.5.3
52- hooks :
53- - id : isort
5450 - repo : https://github.com/adrienverge/yamllint.git
55- rev : v1.24.2
51+ rev : v1.26.3
5652 hooks :
5753 - id : yamllint
5854 - repo : https://github.com/prettier/prettier
7975 types : [python]
8076 require_serial : true
8177 files : ^plugwise/.+\.py$
78+ # - repo: https://github.com/PyCQA/isort
79+ # rev: 5.10.1
80+ # hooks:
81+ # - id: isort
Original file line number Diff line number Diff line change 11# In addition to Upstream HA (devbranch)
22-r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test.txt
3- # and commit
4- # -r requirements_commit.txt
3+ -r https://raw.githubusercontent.com/home-assistant/core/dev/requirements_test_pre_commit.txt
54# and setup
65-e .
7- #
86# pytest-asyncio
97pytest-cover
108radon
Original file line number Diff line number Diff line change @@ -17,7 +17,7 @@ for venv in venv .venv .; do
1717 . " ${my_path} /${venv} /bin/activate"
1818
1919 # Install testing requirements
20- pip install --upgrade -r requirements_test.txt
20+ pip install --upgrade -r requirements_test.txt
2121 # Install pre-commit hook
2222 ${my_path} /${venv} /bin/pre-commit install
2323 fi
You can’t perform that action at this time.
0 commit comments