From 716024ebd7abd802c233a960ce2158761dd5d50a Mon Sep 17 00:00:00 2001 From: Lewis John McGibbney Date: Sun, 21 May 2023 16:24:00 -0700 Subject: [PATCH 1/5] ISSUE-266 Replace Black linter with Super-Linter --- .github/workflows/black.yml | 14 --------- .github/workflows/linter.yml | 57 ++++++++++++++++++++++++++++++++++++ 2 files changed, 57 insertions(+), 14 deletions(-) delete mode 100644 .github/workflows/black.yml create mode 100644 .github/workflows/linter.yml diff --git a/.github/workflows/black.yml b/.github/workflows/black.yml deleted file mode 100644 index 8aa37fc..0000000 --- a/.github/workflows/black.yml +++ /dev/null @@ -1,14 +0,0 @@ -name: Black Lint - -on: [push, pull_request] - -jobs: - lint: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v3 - - uses: psf/black@stable -# with: -# #options: "--check --verbose" -# #src: "." -# #version: "22.1.0" diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml new file mode 100644 index 0000000..e1fcebc --- /dev/null +++ b/.github/workflows/linter.yml @@ -0,0 +1,57 @@ +--- +################################# +################################# +## Super Linter GitHub Actions ## +################################# +################################# +name: Lint Code Base + +############################# +# Start the job on all push # +############################# +on: + push: + pull_request: + branches: [main] + +############### +# Set the Job # +############### +jobs: + build: + # Name the Job + name: Lint Code Base + # Set the agent to run on + runs-on: ubuntu-latest + + ############################################ + # Grant status permission for MULTI_STATUS # + ############################################ + permissions: + contents: read + packages: read + statuses: write + + ################## + # Load all steps # + ################## + steps: + ########################## + # Checkout the code base # + ########################## + - name: Checkout Code + uses: actions/checkout@v3 + with: + # Full git history is needed to get a proper + # list of changed files within `super-linter` + fetch-depth: 0 + + ################################ + # Run Linter against code base # + ################################ + - name: Lint Code Base + uses: github/super-linter@v5 + env: + VALIDATE_ALL_CODEBASE: false + DEFAULT_BRANCH: main + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From 4f95e615a91f24cc9edda66749ec1137b1e349fb Mon Sep 17 00:00:00 2001 From: Lewis John McGibbney Date: Sun, 21 May 2023 16:36:55 -0700 Subject: [PATCH 2/5] ISSUE-266 Replace Black linter with Super-Linter --- .github/workflows/linter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index e1fcebc..72363f1 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -50,8 +50,8 @@ jobs: # Run Linter against code base # ################################ - name: Lint Code Base - uses: github/super-linter@v5 + uses: super-linter/super-linter:slim-v5 env: - VALIDATE_ALL_CODEBASE: false + VALIDATE_ALL_CODEBASE: true DEFAULT_BRANCH: main GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file From e129a293f6a1b725354f2f3e8ab1b26f85431664 Mon Sep 17 00:00:00 2001 From: Lewis John McGibbney Date: Sun, 21 May 2023 16:40:12 -0700 Subject: [PATCH 3/5] ISSUE-266 Replace Black linter with Super-Linter --- .github/workflows/linter.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 72363f1..7538bb3 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -49,8 +49,8 @@ jobs: ################################ # Run Linter against code base # ################################ - - name: Lint Code Base - uses: super-linter/super-linter:slim-v5 + - name: Super-Linter + uses: super-linter/super-linter@v5.0.0 env: VALIDATE_ALL_CODEBASE: true DEFAULT_BRANCH: main From 0261a0a0c0c4469a08121270b2deb6b6b05a3453 Mon Sep 17 00:00:00 2001 From: Lewis John McGibbney Date: Sun, 21 May 2023 16:45:26 -0700 Subject: [PATCH 4/5] ISSUE-266 Replace Black linter with Super-Linter --- .github/workflows/linter.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 7538bb3..71377d6 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -50,7 +50,7 @@ jobs: # Run Linter against code base # ################################ - name: Super-Linter - uses: super-linter/super-linter@v5.0.0 + uses: super-linter/super-linter@slim-latest env: VALIDATE_ALL_CODEBASE: true DEFAULT_BRANCH: main From 54e7989e6bea37ba092291575d7689c3dcd0962f Mon Sep 17 00:00:00 2001 From: Lewis John McGibbney Date: Sun, 21 May 2023 16:49:19 -0700 Subject: [PATCH 5/5] ISSUE-266 Replace Black linter with Super-Linter --- .github/workflows/linter.yml | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/linter.yml b/.github/workflows/linter.yml index 71377d6..e13e49a 100644 --- a/.github/workflows/linter.yml +++ b/.github/workflows/linter.yml @@ -50,8 +50,12 @@ jobs: # Run Linter against code base # ################################ - name: Super-Linter - uses: super-linter/super-linter@slim-latest + uses: super-linter/super-linter@v5.0.0 env: VALIDATE_ALL_CODEBASE: true DEFAULT_BRANCH: main - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} \ No newline at end of file + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + VALIDATE_PYTHON_FLAKE8: false + VALIDATE_PYTHON_ISORT: false + VALIDATE_PYTHON_MYPY: false + VALIDATE_PYTHON_PYLINT: false \ No newline at end of file