Skip to content

Commit

Permalink
Add linting for python files
Browse files Browse the repository at this point in the history
  • Loading branch information
giorio94 committed Nov 24, 2020
1 parent 1003bdf commit f8a71ba
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,29 @@ jobs:
with:
persist-credentials: false

- name: Laboratory Operator - Check linting
- name: Check linting
uses: golangci/golangci-lint-action@v2
with:
version: v1.31
working-directory: operators
args: --timeout=600s --enable gosec,prealloc,gofmt,govet --skip-files "zz_generated.*.go" --skip-dirs "kubeVirt"
args: --timeout=600s --enable gosec,prealloc,gofmt,govet --skip-files "zz_generated.*.go"


python-lint:
name: Lint python files
runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v2
with:
persist-credentials: false

- name: Check linting
uses: grantmcconnaughey/[email protected]
with:
token: ${{ secrets.CI_TOKEN }}
failIf: any


frontend-lint:
Expand Down
2 changes: 2 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
[flake8]
max-line-length=127

0 comments on commit f8a71ba

Please sign in to comment.