Skip to content

Commit

Permalink
add flake8 to pre-commit tests
Browse files Browse the repository at this point in the history
  • Loading branch information
teticio committed Sep 13, 2021
1 parent 90631b5 commit d0fb875
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 deletions.
1 change: 0 additions & 1 deletion backend/test_deejai.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
"""Unit tests using pytest.
"""
import os
import json
import asyncio
from datetime import datetime
Expand Down
10 changes: 6 additions & 4 deletions run_tests.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
#!/bin/sh
export SQLALCHEMY_DATABASE_URL="sqlite:///:memory:"
export CUDA_VISIBLE_DEVICES=""
pipenv run "pytest backend"
export CI=true
pipenv run flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics && \
pipenv run flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics && \
export SQLALCHEMY_DATABASE_URL="sqlite:///:memory:" && \
export CUDA_VISIBLE_DEVICES="" && \
pipenv run "pytest backend" &&\
export CI=true && \
yarn test

0 comments on commit d0fb875

Please sign in to comment.