Skip to content

Commit

Permalink
added mypy and eslint
Browse files Browse the repository at this point in the history
  • Loading branch information
agennadi committed Nov 11, 2024
1 parent 1df270e commit 8cabc0b
Showing 1 changed file with 21 additions and 6 deletions.
27 changes: 21 additions & 6 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:
- master

jobs:
black:
lint_and_type_check:
runs-on: ubuntu-latest

steps:
Expand All @@ -19,12 +19,27 @@ jobs:
uses: actions/setup-python@v4
with:
python-version: '3.x'

- name: Install dependencies
run: |
pip install black
- name: Run Black
run: |
black --check .
run: pip install black mypy

- name: Check code formatting with black
run: black --check .

- name: Type check with mypy
run: mypy .

- name: Set up Node.js
uses: actions/setup-node@v3
with:
node-version: '18.x'

- name: Install Node.js dependencies
run: npm ci

- name: Run ESLint
run: npm run lint




Expand Down

0 comments on commit 8cabc0b

Please sign in to comment.