Update lint_python.yml

pull/141/head
Christian Clauss 5 years ago committed by GitHub
parent 9006acc09e
commit 49c70416aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -1,31 +1,11 @@
name: lint_python name: lint_python
on: on: [pull_request, push]
pull_request:
push:
# branches: [master]
jobs: jobs:
lint_python: lint_python:
runs-on: ubuntu-latest runs-on: ubuntu-latest
# strategy:
# matrix:
# os: [ubuntu-latest, macos-latest, windows-latest]
# python-version: [2.7, 3.5, 3.6, 3.7, 3.8] # , pypy3]
steps: steps:
- uses: actions/checkout@master - uses: actions/checkout@v2
- uses: actions/setup-python@master - uses: actions/setup-python@v2
# with: - run: pip install codespell flake8
# python-version: ${{ matrix.python-version }}
- run: pip install black codespell flake8 isort pytest reorder-python-imports
- run: black --check . || true
# - run: black --diff . || true
# - if: matrix.python-version >= 3.6
# run: |
# pip install black
# black --check . || true
- run: codespell --quiet-level=2 || true # --ignore-words-list="" --skip="" - run: codespell --quiet-level=2 || true # --ignore-words-list="" --skip=""
- run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics - run: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# isort and reorder-python-imports are two ways of doing the same thing
- run: isort --recursive . || true
- run: reorder-python-imports . || true
- run: pip install -r requirements.txt || true
- run: pytest . || true

Loading…
Cancel
Save