Skip to content

Commit 31c15c6

Browse files
PatOnTheBackstokhos
authored andcommitted
Add Flake8 F4 Tests to .travis.yml (TheAlgorithms#974)
* Add Flake8 F4 Tests to .travis.yml F4 tests check for import errors. Implements issue TheAlgorithms#973 * Remove wildcard imports
1 parent 9c01eec commit 31c15c6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: .travis.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ before_install: pip install --upgrade pip setuptools
66
install: pip install -r requirements.txt
77
before_script:
88
- black --check . || true
9-
- flake8 . --count --select=E9,F401,F63,F7,F82 --show-source --statistics
9+
- flake8 . --count --select=E9,F4,F63,F7,F82 --show-source --statistics
1010
script:
1111
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
1212
- mypy --ignore-missing-imports .

Diff for: linear_algebra/src/tests.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
"""
1010

1111
import unittest
12-
from lib import *
12+
from lib import Matrix, Vector, axpy, squareZeroMatrix, unitBasisVector, zeroVector
1313

1414
class Test(unittest.TestCase):
1515
def test_component(self):

0 commit comments

Comments
 (0)