Updated API URL in Example #1005
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Code Check - Linting using flake8 | |
on: | |
push: | |
paths-ignore: | |
- 'infra/**' | |
branches: | |
- master | |
- develop | |
pull_request: | |
branches: | |
- master | |
- develop | |
workflow_dispatch: | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Set up Python 3.8 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: 3.8 | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install flake8 | |
pip install flake8-docstrings | |
- name: Lint with flake8 for src | |
run: | | |
flake8 src --count --select=E9,F63,F7,F82,D102 --docstring-convention numpy --show-source --statistics --ignore=E501,C901 | |
- name: Lint with flake8 for API | |
run: | | |
flake8 API/ --select=E9,F63,F7,F82,D102 --count --statistics --ignore=E501,C901 |