Add pylint & shellcheck

This commit is contained in:
d3vyce 2023-03-20 21:33:51 +01:00
commit ed2ca91da6
2 changed files with 39 additions and 0 deletions

25
pylint.yml Normal file
View File

@ -0,0 +1,25 @@
name: Pylint
on: [push]
jobs:
pylint:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up Python 3.11
run: |
apt update
apt install -y python3 python3-pip
- name: Pip version
run: pip --version
- name: Install dependencies
run: |
python3 -m pip install --upgrade pip
pip install pylint
pip install pylint-fail-under
- name: Analysing the code with pylint
run: |
find . -name '*.py' -exec pylint {} \;
- name: Analyse code
run: |
for file in $(find -name '*.py'); do pylint "$file" --fail-under=7.0; done

14
shellcheck.yml Normal file
View File

@ -0,0 +1,14 @@
name: Shellcheck
on: [push]
jobs:
shellcheck:
runs-on: ubuntu-latest
steps:
- name: Check out repository code
uses: actions/checkout@v3
- name: Set up shellcheck
run: |
apt update
apt install -y shellcheck
- name: Analysing the code with shellcheck
run: find . -name '*.sh' -exec shellcheck {} \;