mirror of
https://github.com/Cog-Creators/Red-DiscordBot.git
synced 2025-11-07 11:48:55 -05:00
* Update auto_labeler_issues.yml * Update auto_labeler_pr.yml * Update codeql-analysis.yml * Update crowdin_upload_strings.yml * Update lint_python.yaml * Update prepare_release.yml * Update publish_release.yml * Update tests.yml * Update for breaking change in actions/github-script@v5 Co-authored-by: jack1142 <6032823+jack1142@users.noreply.github.com>
27 lines
753 B
YAML
27 lines
753 B
YAML
name: Lint Python
|
|
on:
|
|
pull_request:
|
|
push:
|
|
repository_dispatch:
|
|
types:
|
|
- dispatched_test
|
|
|
|
env:
|
|
ref: ${{ github.event.client_payload.ref || '' }}
|
|
|
|
jobs:
|
|
lint_python:
|
|
name: Lint Python
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: actions/checkout@v3
|
|
with:
|
|
ref: ${{ env.ref }}
|
|
- uses: actions/setup-python@v4
|
|
with:
|
|
python-version: "3.8"
|
|
- run: "python -m pip install git+https://github.com/pycqa/pyflakes@1911c20#egg=pyflakes git+https://github.com/pycqa/pycodestyle@d219c68#egg=pycodestyle git+https://gitlab.com/pycqa/flake8@3.7.9#egg=flake8"
|
|
name: Install Flake8
|
|
- run: "python -m flake8 . --count --select=E9,F7,F82 --show-source"
|
|
name: Flake8 Linting
|