Skip to content
This repository has been archived by the owner on May 24, 2023. It is now read-only.

Commit

Permalink
Update lint.yml
Browse files Browse the repository at this point in the history
Fail pull request with pylint below total score of 8
  • Loading branch information
ptrdtznr committed Apr 8, 2021
1 parent 7d277ef commit 44ef3d9
Showing 1 changed file with 6 additions and 21 deletions.
27 changes: 6 additions & 21 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,14 @@
# This is a basic workflow to help you get started with Actions

name: Lint

on: [pull_request]


# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
gitHubActionForPylint:
name: GitHub Action for pylint
Pylint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: ricardochaves/python-lint@v1.3.0
with:
python-root-list: "."
use-pylint: true
use-pycodestyle: false
use-flake8: false
use-black: false
use-mypy: false
use-isort: false
extra-pylint-options: ""
extra-pycodestyle-options: ""
extra-flake8-options: ""
extra-black-options: ""
extra-mypy-options: ""
extra-isort-options: ""
- uses: actions/checkout@v1
- uses: actions/setup-python@v1
- run: pip3 install pylint
- run: pip3 install -r requirements.txt
- run: pylint **/*.py --fail-under 8

0 comments on commit 44ef3d9

Please sign in to comment.