Commit 04135411 authored by Yuxin Wu's avatar Yuxin Wu

linter actions

parent 9e8e9fb8
name: Linter
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
strategy:
max-parallel: 4
matrix:
python-version: [2.7, 3.5, 3.6, 3.7]
steps:
- uses: actions/checkout
- 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
pip install flake8
flake8 --version
- name: Lint
run: |
flake8 .
- name: Lint Examples
# some examples are py3 only
if: matrix.python-version != 2.7
run: |
cd examples
flake8 .
......@@ -4,3 +4,4 @@ ignore = F403,F405,E402,E741,E742,E743,W504,W605
exclude = private,
FasterRCNN/utils,
__init__.py
show-source = true
......@@ -12,6 +12,7 @@ exclude = .git,
snippet,
examples_v2,
_test.py,
show-source = true
[isort]
line_length=100
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment