From a66bc1755490a8afc2327bdc7e40343a55683506 Mon Sep 17 00:00:00 2001
From: Bo-Chun Louis Chen <louistw@uab.edu>
Date: Thu, 19 May 2022 11:48:18 -0500
Subject: [PATCH] Add pylint to pre commit and Github Action

---
 .github/workflows/linting.yaml | 7 +++++--
 .pre-commit-config.yaml        | 4 ++++
 2 files changed, 9 insertions(+), 2 deletions(-)

diff --git a/.github/workflows/linting.yaml b/.github/workflows/linting.yaml
index 1ccfdf9..90c5dbc 100644
--- a/.github/workflows/linting.yaml
+++ b/.github/workflows/linting.yaml
@@ -26,10 +26,10 @@ jobs:
           #options: "--check --diff"
           #src: "."
           version: "22.3.0"
-      - name: Install flake8
+      - name: Install tools
         run: |
           python -m pip install --upgrade pip
-          pip install flake8
+          pip install flake8 pylint
           #if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
       - name: Lint with flake8
         run: |
@@ -38,3 +38,6 @@ jobs:
           flake8 .
           # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
           #flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
+      - name: Lint with pylint
+        run: |
+          pylint app *.py
diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml
index e57ca6a..29e52b7 100644
--- a/.pre-commit-config.yaml
+++ b/.pre-commit-config.yaml
@@ -13,3 +13,7 @@ repos:
     rev: 4.0.1
     hooks:
       - id: flake8
+  - repo: https://github.com/PyCQA/pylint
+    rev: v2.13.8
+    hooks:
+      - id: pylint
-- 
GitLab