Skip to content

Commit

Permalink
Use clang-format version from requirements_dev file (esphome#6606)
Browse files Browse the repository at this point in the history
  • Loading branch information
jesserockz authored Apr 22, 2024
1 parent 0874440 commit a7fb2ce
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
3 changes: 1 addition & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ permissions:
env:
DEFAULT_PYTHON: "3.9"
PYUPGRADE_TARGET: "--py39-plus"
CLANG_FORMAT_VERSION: "13.0.1"

concurrency:
# yamllint disable-line rule:line-length
Expand Down Expand Up @@ -239,7 +238,7 @@ jobs:
- name: Install clang-format
run: |
. venv/bin/activate
pip install clang-format==${{ env.CLANG_FORMAT_VERSION }}
pip install clang-format -c requirements_dev.txt
- name: Run clang-format
run: |
. venv/bin/activate
Expand Down
6 changes: 3 additions & 3 deletions requirements_dev.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Useful stuff when working in a development environment
clang-format==13.0.1
clang-tidy==14.0.6
yamllint==1.35.1
clang-format==13.0.1 # also change in .pre-commit-config.yaml and Dockerfile when updating
clang-tidy==14.0.6 # When updating clang-tidy, also update Dockerfile
yamllint==1.35.1 # also change in .pre-commit-config.yaml when updating

0 comments on commit a7fb2ce

Please sign in to comment.