Commit 87cc4b3e authored by Gmodena's avatar Gmodena
Browse files

Add linting to build CI

parent 142e4066
......@@ -17,10 +17,17 @@ jobs:
uses: actions/setup-python@v1
with:
python-version: ${{ matrix.python-version }}
- name: Install dependencies
- name: Install build dependencies
run: |
pip install -r requirements.txt
pip install -e .
- name: Lint code with flake8
run: |
pip install flake8==3.8
# stop the build if there are Python syntax errors or undefined names in *.py files
flake8 *.py etl/ tests/ --count --select=E9,F63,F7,F82 --show-source --statistics
# exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide
flake8 *.py etl/ tests/ --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics
- uses: olafurpg/setup-scala@v10
with:
java-version: adopt@1.8
......
![](https://github.com/mirrys/ImageMatching/workflows/build/badge.svg)
![](https://github.com/mirrys/ImageMatching/workflows/build/badge.svg?branch=main)
# ImageMatching
Image recommendation for unillustrated Wikipedia articles
......
Supports Markdown
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