Skip to content

Commit

Permalink
Refractor & add env vars to workflows/linting.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
JakubKorytko committed Nov 8, 2023
1 parent b030fe2 commit c32e50e
Showing 1 changed file with 22 additions and 18 deletions.
40 changes: 22 additions & 18 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -1,29 +1,33 @@
---
name: Run Linting

on: [push]
# in quotes to avoid YAMLLint thinking it's a boolean
"on": push

jobs:
lint_code:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Checkout
uses: actions/checkout@v3

- name: Set up Python 3.11.4
uses: actions/setup-python@v3
with:
python-version: '3.11.4'
cache: 'pip'
- name: Set up Python 3.11.4
uses: actions/setup-python@v3
with:
python-version: '3.11.4'
cache: 'pip'

- name: Install pip
run: python -m pip install --upgrade pip
- name: Install pip
run: python -m pip install --upgrade pip

- name: Install dependencies
run: pip install -r requirements.txt
- name: Install dependencies
run: pip install -r requirements.txt

- name: Lint Code Base
uses: super-linter/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: true
DEFAULT_BRANCH: main
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Lint Code Base
uses: super-linter/super-linter@v5
env:
VALIDATE_ALL_CODEBASE: true
FILTER_REGEX_EXCLUDE: 'data_.*.txt'
DEFAULT_BRANCH: main
PYTHON_PYLINT_CONFIG_FILE: .pylintrc
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit c32e50e

Please sign in to comment.