Skip to content

Commit

Permalink
Create python-linting.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JMante1 authored Jun 11, 2021
0 parents commit a374bd0
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions workflow-templates/python-linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Repository Linting

on:
pull_request:
branches: [ $default-branch ]

jobs:
linting_job:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- uses: grantmcconnaughey/[email protected]
with:
# The GitHub API token to create reviews with
token: ${{ secrets.GITHUB_TOKEN }}
# Fail if "new" violations detected or "any", default "new"
failIf: any
# Additional arguments to pass to flake8, default "." (current directory)
# E501 is lines that are too long
args: "--ignore=E501 ."

0 comments on commit a374bd0

Please sign in to comment.