Skip to content

Commit

Permalink
removes redundant linting action
Browse files Browse the repository at this point in the history
  • Loading branch information
bsavitzky committed Nov 14, 2023
1 parent 9785206 commit 0e54406
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 51 deletions.
41 changes: 15 additions & 26 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -1,37 +1,26 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions

name: Lint with flake8
name: Lint with super-linter@v4

on:
push:
branches: [ "dev" ]
pull_request:
branches: [ "dev" ]

permissions:
contents: read

jobs:
build:

run-lint:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install flake8 pytest
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
- name: Lint with flake8
run: |
# stop the build if there are Python syntax errors or undefined names
flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics
# 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: 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

- name: Lint Code Base
uses: github/super-linter@v4
env:
VALIDATE_ALL_CODEBASE: false
VALIDATE_PYTHON_FLAKE8: true
DEFAULT_BRANCH: "dev"
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

25 changes: 0 additions & 25 deletions .github/workflows/superlinter.yml

This file was deleted.

0 comments on commit 0e54406

Please sign in to comment.