Skip to content

Commit

Permalink
workflows: add pycodestyle annotations for standalone scripts
Browse files Browse the repository at this point in the history
Add a step to add annotations only for pycodestyle in kci_*
scripts/kci-* standalone scripts.  These files aren't covered by
pylint checks or anything else than pycodestyle.

Signed-off-by: Guillaume Tucker <[email protected]>
  • Loading branch information
gctucker committed Feb 24, 2023
1 parent fb5b9b7 commit f5b6e92
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,3 +82,20 @@ jobs:
use-mypy: false
use-pydocstyle: false
use-vulture: false

- name: Get changed kci scripts between base and head
run: >
echo CHANGED_KCI_FILES=$(echo $(git diff --name-only ${{ github.event.pull_request.base.sha }}..${{ github.event.pull_request.head.sha }} -- | grep -v '.*\.md' | grep '^kci_\|^scripts/kci-')) >> $GITHUB_ENV
- if: env.CHANGED_KCI_FILES
uses: marian-code/python-lint-annotate@v3
name: Run pycodestyle annotations on kci scripts
with:
python-root-list: ${{ env.CHANGED_KCI_FILES }}
use-black: false
use-flake8: false
use-isort: false
use-mypy: false
use-pydocstyle: false
use-pylint: false
use-vulture: false

0 comments on commit f5b6e92

Please sign in to comment.