Skip to content

Commit db65225

Browse files
committed
Update annotation method
1 parent edbf74b commit db65225

File tree

3 files changed

+21
-13
lines changed

3 files changed

+21
-13
lines changed

.github/workflows/pre-commit.yml

+18-10
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
cache: pip
2121
python-version: 3.12.1
2222
- run: python -m pip install pre-commit regex
23-
- uses: actions/cache/restore@v3
23+
- uses: actions/cache/restore@v4
2424
with:
2525
path: ~/.cache/pre-commit/
2626
key: pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml')
@@ -32,17 +32,25 @@ jobs:
3232
set -o pipefail
3333
pre-commit gc
3434
pre-commit run --show-diff-on-failure --color=always --all-files | tee ${RAW_LOG}
35-
- name: Convert Raw Log to CheckStyle format
36-
if: ${{ failure() }}
37-
run: |
38-
python ${LOG_TO_CS} ${RAW_LOG} ${CS_XML}
39-
- name: Annotate Source Code with Messages
40-
uses: staabm/annotate-pull-request-from-checkstyle-action@v1
35+
- name: Convert Raw Log to annotations
36+
uses: mdeweerd/[email protected]
4137
if: ${{ failure() }}
4238
with:
43-
files: ${{ env.CS_XML }}
44-
notices-as-warnings: true # optional
45-
prepend-filename: true # optional
39+
in: ${{ env.RAW_LOG }}
40+
# Out can be omitted if you do not need the xml output
41+
# out: ${{ env.CS_XML }}
42+
43+
# - name: Convert Raw Log to CheckStyle format
44+
# if: ${{ failure() }}
45+
# run: |
46+
# python ${LOG_TO_CS} ${RAW_LOG} ${CS_XML}
47+
# - name: Annotate Source Code with Messages
48+
# uses: staabm/annotate-pull-request-from-checkstyle-action@v1
49+
# if: ${{ failure() }}
50+
# with:
51+
# files: ${{ env.CS_XML }}
52+
# notices-as-warnings: true # optional
53+
# prepend-filename: true # optional
4654
- uses: actions/cache/save@v3
4755
if: ${{ always() }}
4856
with:

.pre-commit-config.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ repos:
163163
- --show-error-codes
164164
- --show-error-context
165165
additional_dependencies:
166-
- zigpy>=0.43.0
167-
- cryptography==3.3.2 # Compatible/Available on cygwin
166+
- zigpy==0.61.0
167+
# - cryptography==3.3.2 # Compatible/Available on cygwin
168168
#- homeassistant-stubs>=2023.1.7
169169
#- pydantic

examples/script_danfoss_ally_configure.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -189,7 +189,7 @@ fields:
189189
orientation:
190190
name: TRV orientation
191191
description: >-
192-
- When false, mounted horizontaly, - When true, mounted vertically. This
192+
- When false, mounted horizontally, - When true, mounted vertically. This
193193
selects the temperature gradient measured in the valve on radiator.
194194
default: false
195195
example: false

0 commit comments

Comments
 (0)