mirror of
https://github.com/esphome/esphome.git
synced 2024-11-10 17:27:45 +01:00
Use clang-format version from requirements_dev file (#6606)
This commit is contained in:
parent
0874440a31
commit
a7fb2ce3e1
2 changed files with 4 additions and 5 deletions
3
.github/workflows/ci.yml
vendored
3
.github/workflows/ci.yml
vendored
|
@ -20,7 +20,6 @@ permissions:
|
||||||
env:
|
env:
|
||||||
DEFAULT_PYTHON: "3.9"
|
DEFAULT_PYTHON: "3.9"
|
||||||
PYUPGRADE_TARGET: "--py39-plus"
|
PYUPGRADE_TARGET: "--py39-plus"
|
||||||
CLANG_FORMAT_VERSION: "13.0.1"
|
|
||||||
|
|
||||||
concurrency:
|
concurrency:
|
||||||
# yamllint disable-line rule:line-length
|
# yamllint disable-line rule:line-length
|
||||||
|
@ -239,7 +238,7 @@ jobs:
|
||||||
- name: Install clang-format
|
- name: Install clang-format
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
pip install clang-format==${{ env.CLANG_FORMAT_VERSION }}
|
pip install clang-format -c requirements_dev.txt
|
||||||
- name: Run clang-format
|
- name: Run clang-format
|
||||||
run: |
|
run: |
|
||||||
. venv/bin/activate
|
. venv/bin/activate
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
# Useful stuff when working in a development environment
|
# Useful stuff when working in a development environment
|
||||||
clang-format==13.0.1
|
clang-format==13.0.1 # also change in .pre-commit-config.yaml and Dockerfile when updating
|
||||||
clang-tidy==14.0.6
|
clang-tidy==14.0.6 # When updating clang-tidy, also update Dockerfile
|
||||||
yamllint==1.35.1
|
yamllint==1.35.1 # also change in .pre-commit-config.yaml when updating
|
||||||
|
|
Loading…
Reference in a new issue