Add Flake8 F4 Tests to .travis.yml (#974)

* Add Flake8 F4 Tests to .travis.yml

F4 tests check for import errors. Implements issue #973

* Remove wildcard imports
This commit is contained in:
PatOnTheBack 2019-09-13 12:07:24 +00:00 committed by Christian Clauss
parent f8e30cfab1
commit 6fa3c0b170
2 changed files with 2 additions and 2 deletions

View File

@ -6,7 +6,7 @@ before_install: pip install --upgrade pip setuptools
install: pip install -r requirements.txt
before_script:
- black --check . || true
- flake8 . --count --select=E9,F401,F63,F7,F82 --show-source --statistics
- flake8 . --count --select=E9,F4,F63,F7,F82 --show-source --statistics
script:
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
- mypy --ignore-missing-imports .

View File

@ -9,7 +9,7 @@ This file contains the test-suite for the linear algebra library.
"""
import unittest
from lib import *
from lib import Matrix, Vector, axpy, squareZeroMatrix, unitBasisVector, zeroVector
class Test(unittest.TestCase):
def test_component(self):