-
Notifications
You must be signed in to change notification settings - Fork 125
33 lines (30 loc) · 1.02 KB
/
action_lint.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
name: JARVIS-Tools linting
on: [push, pull_request]
jobs:
build:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [3.7]
steps:
- uses: actions/checkout@v1
- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Lint with pycodestyle
run: |
pip install pycodestyle --upgrade
pycodestyle --ignore E203,W503 --exclude=examples,testfiles jarvis
- name: Lint with flake8
run: |
pip install flake8 --upgrade
flake8 --ignore E203,W503 --exclude=examples,tests --statistics --count --exit-zero jarvis
- name: Lint with pydoctstyle
run: |
pip install pydocstyle --upgrade
pydocstyle --match-dir=core --match-dir=io --match-dir=io --match-dir=ai --match-dir=analysis --match-dir=db --match-dir=tasks --count jarvis