Skip to content

Commit

Permalink
added linter
Browse files Browse the repository at this point in the history
  • Loading branch information
jason490 committed Jun 8, 2024
1 parent 83c0286 commit 91a70e7
Show file tree
Hide file tree
Showing 3 changed files with 692 additions and 0 deletions.
56 changes: 56 additions & 0 deletions .github/workflows/linter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
name: Linter

on: [push]

jobs:
pylint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./api
strategy:
matrix:
python-version: ["3.11"]
steps:
- uses: actions/checkout@v3
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v3
with:
python-version: ${{ matrix.python-version }}
cache: 'pipenv'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install pipenv
pipenv install --system --ignore-pipfile --dev
- name: Analysing the code with pylint
working-directory: ./api
run: |
pylint $(git ls-files '*.py')
jslint:
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./client

strategy:
matrix:
node-version: [20.x]
# See supported Node.js release schedule at https://nodejs.org/en/about/releases/

steps:
- uses: actions/checkout@v4
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v4
with:
node-version: ${{ matrix.node-version }}
cache: 'npm'
cache-dependency-path: ./client/package-lock.json

- name: Install dependencies
run: npm install

- name: Run eslint
run: npx eslint $(git ls-files '*.jsx')

Loading

0 comments on commit 91a70e7

Please sign in to comment.