mirror of
https://hub.njuu.cf/TheAlgorithms/Python.git
synced 2023-10-11 13:06:12 +08:00
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:
parent
f8e30cfab1
commit
6fa3c0b170
@ -6,7 +6,7 @@ before_install: pip install --upgrade pip setuptools
|
|||||||
install: pip install -r requirements.txt
|
install: pip install -r requirements.txt
|
||||||
before_script:
|
before_script:
|
||||||
- black --check . || true
|
- 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:
|
script:
|
||||||
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
|
- scripts/validate_filenames.py # no uppercase, no spaces, in a directory
|
||||||
- mypy --ignore-missing-imports .
|
- mypy --ignore-missing-imports .
|
||||||
|
@ -9,7 +9,7 @@ This file contains the test-suite for the linear algebra library.
|
|||||||
"""
|
"""
|
||||||
|
|
||||||
import unittest
|
import unittest
|
||||||
from lib import *
|
from lib import Matrix, Vector, axpy, squareZeroMatrix, unitBasisVector, zeroVector
|
||||||
|
|
||||||
class Test(unittest.TestCase):
|
class Test(unittest.TestCase):
|
||||||
def test_component(self):
|
def test_component(self):
|
||||||
|
Loading…
Reference in New Issue
Block a user