Skip to content

Java and C# linting fixes and suppressions #165

Java and C# linting fixes and suppressions

Java and C# linting fixes and suppressions #165

Workflow file for this run

name: pylint
on:
push:
branches-ignore: [main]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
pylint:
outputs:
status: ${{ job.status }}
runs-on: ubuntu-latest
strategy:
matrix:
python-version: ["3.9", "3.10", "3.11", "3.12"]
steps:
- uses: actions/checkout@v4
- name: set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
with:
python-version: ${{ matrix.python-version }}
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install pylint
- name: analysing the code with pylint
run: |
# shellcheck disable=SC2046
pylint $(git ls-files '*.py')
slack-notification:
needs: [pylint]
if: ${{ always() && contains(fromJSON('["failure", "cancelled"]'), needs.pylint.outputs.status ) && github.ref_name == github.event.repository.default_branch }}
secrets:
SLACK_BOT_TOKEN: ${{ secrets.SLACK_BOT_TOKEN }}
uses: senzing-factory/build-resources/.github/workflows/build-failure-slack-notification.yaml@v2
with:
job-status: ${{ needs.pylint.outputs.status }}