Update lint.yml

pull/6/head
Yax 3 years ago committed by GitHub
parent 68ea4204c2
commit 3761b4ee9c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -6,17 +6,21 @@ jobs:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- uses: actions/checkout@v2 - uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
python-version: "3.9.9"
- name: Install poetry - name: Install poetry
uses: abatilo/actions-poetry@v2.0.0 uses: abatilo/actions-poetry@v2.0.0
with: with:
poetry-version: 1.1.12 poetry-version: 1.1.12
- name: Install dependencies - name: Install dependencies
run: poetry install run: poetry install
- uses: usama2490/lintly-flake8-github-action@v1.1 - name: Run flake8
uses: julianwachholz/flake8-action@v2
with: with:
# The GitHub API token to create reviews with checkName: "Python Lint"
token: ${{ secrets.GITHUB_TOKEN }} path: path/to/files
# Fail if "new" violations detected or "any", default "new" plugins: flake8-spellcheck
failIf: new config: flake8.ini
# Additional arguments to be black compliant env:
args: "--max-line-length=88 --extend-ignore=E203 --exclude=*/tests/*" GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Loading…
Cancel
Save