name: Lint *.py on: pull_request_target: types: [opened, synchronize, reopened] branches: - master jobs: reviewdog: name: reviewdog runs-on: [ self-hosted ] container: image: docker-hub-mirror.linecorp.com/python:3.8 steps: - uses: actions/checkout@v3 with: ref: ${{ github.event.pull_request.head.sha }} - uses: reviewdog/action-black@v3 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review # GitHub Status Check won't become failure with warning. level: warning workdir: "tests/" black_args: "--skip-string-normalization --exclude=base.py" - uses: dciborow/action-pylint@0.1.0 with: github_token: ${{ secrets.GITHUB_TOKEN }} reporter: github-pr-review # GitHub Status Check won't become failure with warning. level: warning workdir: "tests/" glob_pattern: "**/*.py" pylint_args: "--disable=line-too-long,missing-module-docstring --ignore=base.py"