2021-04-05 08:13:32 +08:00
|
|
|
name: Lint
|
2020-12-15 09:01:37 +08:00
|
|
|
|
|
|
|
on: [pull_request]
|
|
|
|
|
2021-12-17 21:48:15 +08:00
|
|
|
concurrency:
|
|
|
|
group: lint-${{ github.event.pull_request.number || github.ref }}
|
|
|
|
cancel-in-progress: true
|
|
|
|
|
2022-06-17 08:32:28 +08:00
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
2020-12-15 09:01:37 +08:00
|
|
|
jobs:
|
2021-04-05 08:13:32 +08:00
|
|
|
lint:
|
2022-06-17 08:32:28 +08:00
|
|
|
permissions:
|
|
|
|
contents: read # for actions/checkout to fetch code
|
|
|
|
statuses: write # for github/super-linter to mark status of each linter run
|
2021-04-05 08:13:32 +08:00
|
|
|
name: Lint
|
2020-12-15 09:01:37 +08:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-06-19 11:43:41 +08:00
|
|
|
- uses: actions/checkout@v3
|
2021-04-06 12:41:14 +08:00
|
|
|
with:
|
|
|
|
fetch-depth: 0
|
2021-04-10 00:35:47 +08:00
|
|
|
- run: mkdir super-linter.report
|
|
|
|
- name: Lint
|
2023-04-17 10:58:56 +08:00
|
|
|
uses: github/super-linter@v5
|
2020-12-30 03:53:05 +08:00
|
|
|
env:
|
2021-04-10 00:35:47 +08:00
|
|
|
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
2021-04-06 12:41:14 +08:00
|
|
|
VALIDATE_ALL_CODEBASE: false
|
2021-04-05 08:13:32 +08:00
|
|
|
VALIDATE_PYTHON_BLACK: true
|
2021-04-10 00:35:47 +08:00
|
|
|
VALIDATE_PYTHON_FLAKE8: true
|
|
|
|
PYTHON_FLAKE8_CONFIG_FILE: setup.cfg
|
|
|
|
VALIDATE_PYTHON_ISORT: true
|
|
|
|
PYTHON_ISORT_CONFIG_FILE: setup.cfg
|
|
|
|
VALIDATE_YAML: true
|