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

22 lines
696 B
YAML

name: lint
on: push
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install poetry
uses: abatilo/actions-poetry@v2.0.0
with:
poetry-version: 1.1.12
- name: Install dependencies
run: poetry install
- uses: grantmcconnaughey/lintly-flake8-github-action@v1.0
with:
# 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/*"