You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
stacosys/.github/workflows/lint.yml

31 lines
972 B
YAML

3 years ago
name: lint
3 years ago
on: push
jobs:
flake8_py3:
3 years ago
strategy:
fail-fast: false
matrix:
python-version: [3.9.9]
poetry-version: [1.1.12]
os: [ubuntu-18.04]
runs-on: ${{ matrix.os }}
steps:
3 years ago
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
with:
3 years ago
python-version: ${{ matrix.python-version }}
- name: Run image
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: ${{ matrix.poetry-version }}
- name: Install dependencies
run: poetry install
3 years ago
- uses: grantmcconnaughey/lintly-flake8-github-action@v1.0
with:
3 years ago
# The GitHub API token to create reviews with
token: ${{ secrets.GITHUB_TOKEN }}
# Fail if "new" violations detected or "any", default "new"
failIf: new
# Additional arguments to be black compliant
args: "--max-line-length=88 --extend-ignore=E203 --exclude=*/tests/*"