Skip to content

Commit a72b98a

Browse files
authored
Merge pull request #467 from rht/F401
Fix all F401 unused imports
2 parents 32ef7cb + 5524a47 commit a72b98a

30 files changed

+17
-37
lines changed

.travis.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,12 @@ branches:
4141
- master
4242

4343
install:
44-
- pip install -U pip nose coveralls coverage numpy scipy pandas numba sympy ipython statsmodels
44+
- pip install -U pip nose coveralls coverage numpy scipy pandas numba sympy ipython statsmodels flake8
4545
- pip install tables
4646
- python setup.py install
4747

4848
script:
49+
- flake8 --select F401 quantecon
4950
- nosetests --with-coverage -a "!slow" --cover-package=quantecon
5051

5152
after_success:

quantecon/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# flake8: noqa
12
"""
23
Import the main names to top level.
34
"""

quantecon/arma.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
66
"""
77
import numpy as np
8-
from numpy import conj, pi
8+
from numpy import conj
99
from .util import check_random_state
1010

1111

quantecon/game_theory/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# flake8: noqa
12
"""
23
Game Theory SubPackage
34

quantecon/game_theory/game_generators/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# flake8: noqa
12
"""
23
game_theory.game_generators
34

quantecon/game_theory/tests/test_repeated_game.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"""
55
import numpy as np
66
from numpy.testing import assert_allclose
7-
from quantecon.game_theory import Player, NormalFormGame, RepeatedGame
7+
from quantecon.game_theory import NormalFormGame, RepeatedGame
88

99

1010
class TestAS():

quantecon/markov/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# flake8: noqa
12
"""
23
Markov Chain SubPackge API
34
"""

quantecon/markov/random.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
"""
55
import numpy as np
66
import scipy.sparse
7-
from numba import jit
87

98
from .core import MarkovChain
109
from .ddp import DiscreteDP

quantecon/markov/tests/test_approximation.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,8 @@
33
44
"""
55
import sys
6-
import os
76
import unittest
87
import numpy as np
9-
from numpy.testing import assert_allclose
108
from quantecon.markov import tauchen, rouwenhorst
119
#from quantecon.markov.approximation import rouwenhorst
1210

quantecon/markov/tests/test_random.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
from numpy.testing import (
77
assert_array_equal, assert_raises, assert_array_almost_equal_nulp
88
)
9-
from nose.tools import eq_, ok_, raises
9+
from nose.tools import eq_, ok_
1010

1111
from quantecon.markov import (
1212
random_markov_chain, random_stochastic_matrix, random_discrete_dp

0 commit comments

Comments
 (0)