You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
IIRC there are no obvious errors in the main code left, but there are still many places where pylint is unhappy, and errors in fringe code and sandbox.
$ flake8 statsmodels --exclude="sandbox" | grep F821
statsmodels/__init__.py:26:41: F821 undefined name 'ResourceWarning'
statsmodels/distributions/empirical_distribution.py:143:63: F821 undefined name 'ival'
statsmodels/graphics/utils.py:129:43: F821 undefined name 'series'
statsmodels/iolib/foreign.py:760:38: F821 undefined name 'nvar'
statsmodels/iolib/tests/test_summary_old.py:79:5: F821 undefined name 'test_regression_summary'
statsmodels/miscmodels/count.py:127:30: F821 undefined name 'result'
statsmodels/miscmodels/count.py:130:38: F821 undefined name 'params'
statsmodels/miscmodels/count.py:268:12: F821 undefined name 'MyPoisson'
statsmodels/miscmodels/nonlinls.py:220:68: F821 undefined name 'kw'
statsmodels/miscmodels/try_mlecov.py:123:17: F821 undefined name 'pn'
statsmodels/stats/descriptivestats.py:314:19: F821 undefined name 'data4'
statsmodels/stats/regularized_covariance.py:35:23: F821 undefined name 'ind'
statsmodels/stats/regularized_covariance.py:79:23: F821 undefined name 'ind'
statsmodels/tools/linalg.py:282:8: F821 undefined name 'scipy'
statsmodels/tools/linalg.py:285:10: F821 undefined name 'scipy'
statsmodels/tools/numdiff.py:434:11: F821 undefined name 'approx_hess_old'
statsmodels/tools/numdiff.py:435:10: F821 undefined name 'approx_hess_old'
statsmodels/tools/numdiff.py:443:15: F821 undefined name 'approx_hess_old'
statsmodels/tsa/kalmanf/kalmanfilter.py:334:20: F821 undefined name '_univariatefilter'
statsmodels/tsa/kalmanf/kalmanfilter.py:435:25: F821 undefined name 'optimize'
statsmodels/tsa/vector_ar/irf.py:379:14: F821 undefined name 'svar'
statsmodels/tsa/vector_ar/irf.py:447:14: F821 undefined name 'svar'
statsmodels/tsa/vector_ar/svar_model.py:714:57: F821 undefined name 'opt_B'
statsmodels/tsa/vector_ar/var_model.py:343:21: F821 undefined name 'k_ar'
statsmodels/tsa/vector_ar/tests/example_svar.py:20:11: F821 undefined name 'SVAR'
A few of these have been addressed in recent PRs. In at least one case (sm.tools.linalg), the problem is confined to the __main__ block, which per @bashtage's comment in #3515 should probably be deleted.
Just upgraded flake8 to be sure, and still seeing:
$ flake8 statsmodels | grep undefined
statsmodels/__init__.py:26:41: F821 undefined name 'ResourceWarning'
statsmodels/compat/__init__.py:1:1: F403 'from .python import *' used; unable to detect undefined names
statsmodels/datasets/anes96/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/cancer/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/ccard/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/china_smoking/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/co2/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/committee/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/copper/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/cpunish/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/elnino/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/engel/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/fair/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/fertility/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/grunfeld/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/heart/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/longley/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/macrodata/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/modechoice/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/nile/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/randhie/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/scotland/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/spector/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/stackloss/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/star98/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/statecrime/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/strikes/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/datasets/sunspots/__init__.py:1:1: F403 'from .data import *' used; unable to detect undefined names
statsmodels/distributions/empirical_distribution.py:143:63: F821 undefined name 'ival'
statsmodels/graphics/utils.py:129:43: F821 undefined name 'series'
statsmodels/iolib/foreign.py:760:38: F821 undefined name 'nvar'
statsmodels/iolib/tests/test_foreign.py:8:1: F403 'from numpy.testing import *' used; unable to detect undefined names
statsmodels/iolib/tests/test_foreign.py:37:5: F405 'assert_array_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:58:5: F405 'assert_array_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:70:5: F405 'assert_array_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:81:5: F405 'assert_' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:82:5: F405 'assert_' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:83:5: F405 'assert_' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:87:5: F405 'assert_' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:118:2: F405 'dec' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:128:9: F405 'assert_' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:130:5: F405 'assert_array_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:131:5: F405 'assert_array_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:137:5: F405 'assert_array_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:138:5: F405 'assert_array_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:149:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:152:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:155:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:158:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:161:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:164:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:167:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:170:2: F405 'dec' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_foreign.py:181:5: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/iolib/tests/test_summary_old.py:79:5: F821 undefined name 'test_regression_summary'
statsmodels/miscmodels/count.py:127:30: F821 undefined name 'result'
statsmodels/miscmodels/count.py:130:38: F821 undefined name 'params'
statsmodels/miscmodels/count.py:268:12: F821 undefined name 'MyPoisson'
statsmodels/miscmodels/nonlinls.py:220:68: F821 undefined name 'kw'
statsmodels/miscmodels/try_mlecov.py:123:17: F821 undefined name 'pn'
statsmodels/robust/tests/test_scale.py:7:1: F403 'from numpy.testing import *' used; unable to detect undefined names
statsmodels/robust/tests/test_scale.py:23:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:26:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:29:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:32:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:35:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:41:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:42:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:46:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:47:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:56:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:60:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:69:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:73:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:77:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:81:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:91:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:101:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:105:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:109:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:113:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/robust/tests/test_scale.py:116:5: F405 'run_module_suite' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/bspline.py:664:44: F821 undefined name 'bracket'
statsmodels/sandbox/infotheo.py:355:12: F821 undefined name 'condent'
statsmodels/sandbox/infotheo.py:355:50: F821 undefined name 'condent'
statsmodels/sandbox/infotheo.py:398:19: F821 undefined name 'string'
statsmodels/sandbox/km_class.py:96:44: F821 undefined name 'censoringNum'
statsmodels/sandbox/km_class.py:99:36: F821 undefined name 'eventCounter'
statsmodels/sandbox/km_class.py:102:40: F821 undefined name 'riskChange'
statsmodels/sandbox/sysreg.py:317:50: F821 undefined name 'del_col'
statsmodels/sandbox/archive/linalg_covmat.py:24:16: F821 undefined name 'exp'
statsmodels/sandbox/archive/linalg_covmat.py:28:16: F821 undefined name 'special'
statsmodels/sandbox/archive/linalg_covmat.py:30:16: F821 undefined name 'log'
statsmodels/sandbox/archive/linalg_covmat.py:30:20: F821 undefined name 'special'
statsmodels/sandbox/archive/linalg_covmat.py:32:16: F821 undefined name 'special'
statsmodels/sandbox/archive/linalg_covmat.py:86:9: F821 undefined name 'self'
statsmodels/sandbox/archive/linalg_covmat.py:87:9: F821 undefined name 'self'
statsmodels/sandbox/archive/linalg_covmat.py:88:9: F821 undefined name 'self'
statsmodels/sandbox/archive/tsa.py:45:9: F821 undefined name 'np'
statsmodels/sandbox/distributions/extras.py:1147:5: F821 undefined name 'examples_transf'
statsmodels/sandbox/distributions/gof_new.py:701:22: F821 undefined name 'resu'
statsmodels/sandbox/examples/bayesprior.py:43:17: F821 undefined name 'integrate'
statsmodels/sandbox/examples/example_garch.py:9:1: F403 'from statsmodels.sandbox.tsa.garch import *' used; unable to detect undefined names
statsmodels/sandbox/examples/example_garch.py:21:9: F405 'Garch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/examples/example_garch.py:28:1: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/examples/example_garch.py:40:10: F405 'Garch0' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/examples/example_garch.py:48:10: F405 'optimize' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/examples/example_garch.py:48:40: F405 'loglike_GARCH11' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/examples/example_garch.py:50:7: F405 'loglike_GARCH11' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/examples/example_garch.py:54:10: F405 'Garch0' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/examples/example_garch.py:62:9: F405 'Garch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/examples/example_sysreg.py:7:1: F403 'from statsmodels.sandbox.sysreg import *' used; unable to detect undefined names
statsmodels/sandbox/examples/example_sysreg.py:45:12: F405 'SUR' may be undefined, or defined from star imports: statsmodels.sandbox.sysreg
statsmodels/sandbox/examples/example_sysreg.py:57:13: F405 'SUR' may be undefined, or defined from star imports: statsmodels.sandbox.sysreg
statsmodels/sandbox/examples/example_sysreg.py:112:13: F405 'Sem2SLS' may be undefined, or defined from star imports: statsmodels.sandbox.sysreg
statsmodels/sandbox/examples/example_sysreg.py:178:15: F405 'Sem2SLS' may be undefined, or defined from star imports: statsmodels.sandbox.sysreg
statsmodels/sandbox/examples/thirdparty/try_interchange.py:63:1: F403 'from finance import *' used; unable to detect undefined names
statsmodels/sandbox/examples/thirdparty/try_interchange.py:65:20: F405 'msft' may be undefined, or defined from star imports: finance
statsmodels/sandbox/examples/thirdparty/try_interchange.py:65:34: F405 'msft' may be undefined, or defined from star imports: finance
statsmodels/sandbox/examples/thirdparty/try_interchange.py:65:55: F405 'msft' may be undefined, or defined from star imports: finance
statsmodels/sandbox/examples/thirdparty/try_interchange.py:66:19: F405 'ibm' may be undefined, or defined from star imports: finance
statsmodels/sandbox/examples/thirdparty/try_interchange.py:66:32: F405 'ibm' may be undefined, or defined from star imports: finance
statsmodels/sandbox/examples/thirdparty/try_interchange.py:66:52: F405 'ibm' may be undefined, or defined from star imports: finance
statsmodels/sandbox/examples/thirdparty/try_interchange.py:67:28: F405 'msft' may be undefined, or defined from star imports: finance
statsmodels/sandbox/examples/thirdparty/try_interchange.py:67:40: F405 'ibm' may be undefined, or defined from star imports: finance
statsmodels/sandbox/examples/thirdparty/try_interchange.py:67:55: F405 'ibm' may be undefined, or defined from star imports: finance
statsmodels/sandbox/examples/thirdparty/try_interchange.py:67:75: F405 'ibm' may be undefined, or defined from star imports: finance
statsmodels/sandbox/nonparametric/kdecovclass.py:22:29: F821 undefined name 'sqrt'
statsmodels/sandbox/nonparametric/kdecovclass.py:33:29: F821 undefined name 'sqrt'
statsmodels/sandbox/panel/correlation_structures.py:133:20: F821 undefined name 'self'
statsmodels/sandbox/panel/correlation_structures.py:134:9: F821 undefined name '_x'
statsmodels/sandbox/panel/correlation_structures.py:134:22: F821 undefined name '_x'
statsmodels/sandbox/panel/correlation_structures.py:136:12: F821 undefined name '_x'
statsmodels/sandbox/panel/correlation_structures.py:136:15: F821 undefined name 'self'
statsmodels/sandbox/panel/correlation_structures.py:165:9: F821 undefined name 'toeplitz'
statsmodels/sandbox/panel/correlation_structures.py:165:18: F821 undefined name 'r'
statsmodels/sandbox/panel/correlation_structures.py:167:30: F821 undefined name 'r'
statsmodels/sandbox/panel/correlation_structures.py:168:15: F821 undefined name 'r'
statsmodels/sandbox/panel/correlation_structures.py:168:23: F821 undefined name 'r'
statsmodels/sandbox/panel/correlation_structures.py:205:16: F821 undefined name 'cov2corr'
statsmodels/sandbox/panel/correlation_structures.py:205:25: F821 undefined name 'corr'
statsmodels/sandbox/panel/panel_short.py:33:9: F821 undefined name 'self'
statsmodels/sandbox/panel/panel_short.py:34:9: F821 undefined name 'self'
statsmodels/sandbox/panel/panelmod.py:292:14: F821 undefined name 's'
statsmodels/sandbox/panel/sandwich_covariance.py:6:1: F403 'from statsmodels.stats.sandwich_covariance import *' used; unable to detect undefined names
statsmodels/sandbox/panel/sandwich_covariance.py:11:54: F405 'weights_bartlett' may be undefined, or defined from star imports: statsmodels.stats.sandwich_covariance
statsmodels/sandbox/panel/sandwich_covariance.py:13:9: F405 'cov_hac' may be undefined, or defined from star imports: statsmodels.stats.sandwich_covariance
statsmodels/sandbox/panel/sandwich_covariance.py:15:15: F405 'se_cov' may be undefined, or defined from star imports: statsmodels.stats.sandwich_covariance
statsmodels/sandbox/regression/onewaygls.py:294:25: F821 undefined name 'self'
statsmodels/sandbox/regression/runmnl.py:157:23: F821 undefined name 'logsumexpxp'
statsmodels/sandbox/regression/runmnl.py:164:18: F821 undefined name 'branches'
statsmodels/sandbox/regression/runmnl.py:165:25: F821 undefined name 'loglike_leafbranch'
statsmodels/sandbox/regression/runmnl.py:172:30: F821 undefined name 'sumexpxb'
statsmodels/sandbox/regression/tools.py:170:80: F821 undefined name 'pi'
statsmodels/sandbox/stats/multicomp.py:253:7: F821 undefined name 'std'
statsmodels/sandbox/stats/multicomp.py:1401:21: F821 undefined name 'meandiffs_'
statsmodels/sandbox/stats/multicomp.py:1402:21: F821 undefined name 'std_pairs_'
statsmodels/sandbox/stats/stats_mstats_short.py:318:32: F821 undefined name 'data'
statsmodels/sandbox/tests/maketests_mlabwrap.py:194:39: F821 undefined name 'res_armarep'
statsmodels/sandbox/tests/maketests_mlabwrap.py:194:55: F821 undefined name 'res_armarep'
statsmodels/sandbox/tests/maketests_mlabwrap.py:195:39: F821 undefined name 'res_armarep'
statsmodels/sandbox/tests/maketests_mlabwrap.py:195:55: F821 undefined name 'res_armarep'
statsmodels/sandbox/tests/maketests_mlabwrap.py:196:31: F821 undefined name 'res_armarep'
statsmodels/sandbox/tests/maketests_mlabwrap.py:198:32: F821 undefined name 'res_armarep'
statsmodels/sandbox/tests/test_formula.py:10:1: F403 'from numpy.testing import *' used; unable to detect undefined names
statsmodels/sandbox/tests/test_formula.py:16:16: F405 'TestCase' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:52:19: F405 'TestCase' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:76:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:79:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:85:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:86:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:90:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:91:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:95:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:96:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:136:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:158:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:159:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:166:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:173:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:181:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:189:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:208:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:214:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:246:9: F405 'assert_almost_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:253:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:256:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:257:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:258:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:266:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:267:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:268:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:269:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:276:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:277:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:278:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:279:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:294:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:297:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:300:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:303:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:308:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:311:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_formula.py:314:9: F405 'assert_equal' may be undefined, or defined from star imports: numpy.testing
statsmodels/sandbox/tests/test_pca.py:16:1: F403 'from .datamlw import *' used; unable to detect undefined names
statsmodels/sandbox/tests/test_pca.py:37:6: F405 'data' may be undefined, or defined from star imports: .datamlw
statsmodels/sandbox/tests/test_pca.py:41:32: F405 'princomp1' may be undefined, or defined from star imports: .datamlw
statsmodels/sandbox/tests/test_pca.py:43:32: F405 'princomp2' may be undefined, or defined from star imports: .datamlw
statsmodels/sandbox/tests/test_pca.py:45:32: F405 'princomp3' may be undefined, or defined from star imports: .datamlw
statsmodels/sandbox/tests/test_pca.py:47:32: F405 'princomp3' may be undefined, or defined from star imports: .datamlw
statsmodels/sandbox/tools/__init__.py:10:1: F403 'from .tools_pca import *' used; unable to detect undefined names
statsmodels/sandbox/tools/mctools.py:147:32: F821 undefined name 'repl'
statsmodels/sandbox/tsa/__init__.py:51:1: F403 'from .movstat import *' used; unable to detect undefined names
statsmodels/sandbox/tsa/example_arma.py:402:1: F821 undefined name 'plotacf'
statsmodels/sandbox/tsa/example_arma.py:405:1: F821 undefined name 'plotacf'
statsmodels/sandbox/tsa/example_arma.py:407:1: F821 undefined name 'plotacf'
statsmodels/sandbox/tsa/garch.py:660:12: F821 undefined name 'paramsclass'
statsmodels/sandbox/tsa/garch.py:741:13: F821 undefined name 'Jacobian'
statsmodels/sandbox/tsa/garch.py:757:13: F821 undefined name 'Hessian'
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:73:1: F403 'from statsmodels.sandbox.tsa.garch import *' used; unable to detect undefined names
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:79:13: F405 'generate_kindofgarch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:92:13: F405 'generate_garch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:104:5: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:105:5: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:109:25: F405 'generate_gjrgarch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:111:5: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:112:5: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:115:27: F405 'generate_gjrgarch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:117:5: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:118:5: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:121:28: F405 'generate_gjrgarch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:123:5: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:124:5: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:127:28: F405 'generate_gjrgarch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:130:5: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:131:5: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:135:28: F405 'generate_gjrgarch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:138:5: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:148:10: F405 'miso_lfilter' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:160:24: F405 'generate_gjrgarch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:163:1: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:164:9: F405 'Garch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:170:1: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:172:10: F405 'Garch0' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:180:10: F405 'Garch0' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:189:10: F405 'optimize' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:189:40: F405 'loglike_GARCH11' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:191:7: F405 'loglike_GARCH11' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:206:13: F405 'Arma' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:209:14: F405 'Arma' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:216:13: F405 'Garch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:223:14: F405 'optimize' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:223:44: F405 'loglike_GARCH11' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:225:11: F405 'loglike_GARCH11' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:228:5: F405 'garchplot' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/ex_mle_garch.py:314:18: F405 'generate_gjrgarch' may be undefined, or defined from star imports: statsmodels.sandbox.tsa.garch
statsmodels/sandbox/tsa/examples/try_ld_nitime.py:37:30: F821 undefined name 'pacf'
statsmodels/stats/descriptivestats.py:314:19: F821 undefined name 'data4'
statsmodels/stats/regularized_covariance.py:35:23: F821 undefined name 'ind'
statsmodels/stats/regularized_covariance.py:79:23: F821 undefined name 'ind'
statsmodels/tools/linalg.py:282:8: F821 undefined name 'scipy'
statsmodels/tools/linalg.py:285:10: F821 undefined name 'scipy'
statsmodels/tools/numdiff.py:434:11: F821 undefined name 'approx_hess_old'
statsmodels/tools/numdiff.py:435:10: F821 undefined name 'approx_hess_old'
statsmodels/tools/numdiff.py:443:15: F821 undefined name 'approx_hess_old'
statsmodels/tsa/api.py:13:1: F403 'from .stattools import *' used; unable to detect undefined names
statsmodels/tsa/kalmanf/kalmanfilter.py:334:20: F821 undefined name '_univariatefilter'
statsmodels/tsa/kalmanf/kalmanfilter.py:435:25: F821 undefined name 'optimize'
statsmodels/tsa/vector_ar/irf.py:379:14: F821 undefined name 'svar'
statsmodels/tsa/vector_ar/irf.py:447:14: F821 undefined name 'svar'
statsmodels/tsa/vector_ar/svar_model.py:714:57: F821 undefined name 'opt_B'
statsmodels/tsa/vector_ar/var_model.py:343:21: F821 undefined name 'k_ar'
statsmodels/tsa/vector_ar/tests/example_svar.py:20:11: F821 undefined name 'SVAR'
Activity
josef-pkt commentedon Jan 10, 2013
I have several branches busy right now, but I would like to get to this ASAP.
MAINT: make Dataset pylint inspectable see statsmodels#613
TST test_rlm.py cleanup so pylint can work (has no red) see statsmode…
josef-pkt commentedon Aug 8, 2013
moving milestone to 0.6
IIRC there are no obvious errors in the main code left, but there are still many places where pylint is unhappy, and errors in fringe code and sandbox.
josef-pkt commentedon Aug 15, 2013
remove prio-high tag
josef-pkt commentedon Aug 17, 2014
Still ongoing, although few errors outside experimental modules left
MAINT: make Dataset pylint inspectable see statsmodels#613
TST test_rlm.py cleanup so pylint can work (has no red) see statsmode…
jbrockmendel commentedon May 28, 2017
A few of these have been addressed in recent PRs. In at least one case (
sm.tools.linalg), the problem is confined to the__main__block, which per @bashtage's comment in #3515 should probably be deleted.Related: from #695 a +1 goes to:
bashtage commentedon May 28, 2017
Is this still true? Pretty sure flake8 detects this correctly.
jbrockmendel commentedon May 28, 2017
Just upgraded flake8 to be sure, and still seeing:
bashtage commentedon May 28, 2017
Oops, you are right, missed the
*there, which is generally a bad idea except in special places likeapimodules.josef-pkt commentedon Jun 2, 2017
some flake/pylint fixes are in closed but not merged PR #3515
jbrockmendel commentedon Sep 2, 2018
Should we resurrect #3515?
bashtage commentedon May 10, 2019
This is a WIP, and at this point, PEP8 violations are by design.