Skip to content

Commit

Permalink
add linting
Browse files Browse the repository at this point in the history
  • Loading branch information
superstes committed Oct 13, 2024
1 parent 431ff8b commit 33cff6c
Show file tree
Hide file tree
Showing 7 changed files with 737 additions and 9 deletions.
54 changes: 54 additions & 0 deletions .github/workflows/lint.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
---

name: Lint

on:
push:
branches: [latest, main]
paths:
- '**.py'
- '**.sh'
- '.github/workflows/lint.yml'
- 'requirements_lint.txt'
pull_request:
branches: [latest, main]
paths:
- '**.py'
- '**.sh'
- '.github/workflows/lint.yml'
- 'requirements_lint.txt'

jobs:
lint:
runs-on: ubuntu-latest
timeout-minutes: 1

steps:
- name: Checkout
uses: actions/checkout@v3
with:
ref: ${{ github.ref }}

- name: Install python
uses: actions/setup-python@v4
with:
python-version: '3.10'

- name: Install dependencies
run: |
pip install -r requirements_lint.txt
apt install shellcheck
shell: bash

- name: Running PyLint
run: |
pylint --version
pylint --recursive=y .
shell: bash

- name: Running Shellcheck
run: |
shellcheck --version
find -type f -name '*.sh' -exec shellcheck -f gcc {} \;
shell: bash

Loading

0 comments on commit 33cff6c

Please sign in to comment.