Skip to content

Commit

Permalink
Update annotation method
Browse files Browse the repository at this point in the history
  • Loading branch information
mdeweerd committed Feb 5, 2024
1 parent edbf74b commit db65225
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 13 deletions.
28 changes: 18 additions & 10 deletions .github/workflows/pre-commit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
cache: pip
python-version: 3.12.1
- run: python -m pip install pre-commit regex
- uses: actions/cache/restore@v3
- uses: actions/cache/restore@v4
with:
path: ~/.cache/pre-commit/
key: pre-commit-4|${{ env.pythonLocation }}|${{ hashFiles('.pre-commit-config.yaml')
Expand All @@ -32,17 +32,25 @@ jobs:
set -o pipefail
pre-commit gc
pre-commit run --show-diff-on-failure --color=always --all-files | tee ${RAW_LOG}
- name: Convert Raw Log to CheckStyle format
if: ${{ failure() }}
run: |
python ${LOG_TO_CS} ${RAW_LOG} ${CS_XML}
- name: Annotate Source Code with Messages
uses: staabm/annotate-pull-request-from-checkstyle-action@v1
- name: Convert Raw Log to annotations
uses: mdeweerd/[email protected]
if: ${{ failure() }}
with:
files: ${{ env.CS_XML }}
notices-as-warnings: true # optional
prepend-filename: true # optional
in: ${{ env.RAW_LOG }}
# Out can be omitted if you do not need the xml output
# out: ${{ env.CS_XML }}

# - name: Convert Raw Log to CheckStyle format
# if: ${{ failure() }}
# run: |
# python ${LOG_TO_CS} ${RAW_LOG} ${CS_XML}
# - name: Annotate Source Code with Messages
# uses: staabm/annotate-pull-request-from-checkstyle-action@v1
# if: ${{ failure() }}
# with:
# files: ${{ env.CS_XML }}
# notices-as-warnings: true # optional
# prepend-filename: true # optional
- uses: actions/cache/save@v3
if: ${{ always() }}
with:
Expand Down
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ repos:
- --show-error-codes
- --show-error-context
additional_dependencies:
- zigpy>=0.43.0
- cryptography==3.3.2 # Compatible/Available on cygwin
- zigpy==0.61.0
# - cryptography==3.3.2 # Compatible/Available on cygwin
#- homeassistant-stubs>=2023.1.7
#- pydantic
2 changes: 1 addition & 1 deletion examples/script_danfoss_ally_configure.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,7 @@ fields:
orientation:
name: TRV orientation
description: >-
- When false, mounted horizontaly, - When true, mounted vertically. This
- When false, mounted horizontally, - When true, mounted vertically. This
selects the temperature gradient measured in the valve on radiator.
default: false
example: false
Expand Down

0 comments on commit db65225

Please sign in to comment.