-
Notifications
You must be signed in to change notification settings - Fork 69
60 lines (50 loc) · 1.38 KB
/
code-style.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
name: Code style
on:
workflow_dispatch:
pull_request:
paths:
- 'rekono/**'
jobs:
flake8:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Flake8 check
uses: valentijnscholten/flake8-your-pr@8115e1590de049c223a7b629828cfa9354d8856e
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
mypy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- uses: actions/setup-python@v4
with:
python-version: '3.7'
- name: Install Python dependencies
run: |
python -m pip install -U pip
python -m pip install -r requirements.txt
- name: Install MyPy
run: python3 -m pip install mypy==0.931
- name: MyPy check
run: mypy --namespace-packages --package rekono --install-types --non-interactive
eslint:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0
- name: Install ESLint
working-directory: rekono/frontend
run: |
npm install .
npm install -g eslint
- name: ESLint check
run: eslint rekono/frontend/ --ext .js,.jsx,.ts,.tsx