Skip to content
This repository has been archived by the owner on Aug 5, 2022. It is now read-only.

Commit

Permalink
Added the ingored errors to setup.cfg file
Browse files Browse the repository at this point in the history
  • Loading branch information
Sentient07 committed Mar 23, 2016
1 parent 4fbf554 commit e29d6ce
Show file tree
Hide file tree
Showing 9 changed files with 14 additions and 25 deletions.
2 changes: 1 addition & 1 deletion setup.cfg
Expand Up @@ -3,4 +3,4 @@ match=^test
nocapture=1

[flake8]
ignore=E501,E123,E133
ignore=E501,E123,E133,FI12,FI14,FI15,FI50,FI51,FI53
1 change: 0 additions & 1 deletion theano/compile/tests/test_misc.py
Expand Up @@ -2,7 +2,6 @@

import numpy
import unittest
import numpy, theano, unittest

from theano.compile.pfunc import pfunc
from theano.compile.sharedvalue import shared
Expand Down
1 change: 1 addition & 0 deletions theano/sandbox/cuda/tests/test_abstractconv.py
@@ -1,5 +1,6 @@
from __future__ import absolute_import, print_function, division

import numpy
import theano
from theano.tensor.nnet.tests import test_abstract_conv
from theano.sandbox.cuda import float32_shared_constructor as gpu_shared
Expand Down
9 changes: 4 additions & 5 deletions theano/sparse/tests/test_utils.py
@@ -1,12 +1,11 @@
from __future__ import absolute_import, print_function, division
from theano.sparse.utils import hash_from_sparse
from theano.sparse.tests.test_basic import as_sparse_format
from nose.plugins.skip import SkipTest
import numpy
import theano.sparse
if not theano.sparse.enable_sparse:
raise SkipTest('Optional package sparse disabled')

from nose.plugins.skip import SkipTest
import numpy
from theano.sparse.utils import hash_from_sparse
from theano.sparse.tests.test_basic import as_sparse_format



Expand Down
1 change: 0 additions & 1 deletion theano/tensor/blas_c.py
@@ -1,5 +1,4 @@
from __future__ import absolute_import, print_function, division
import numpy

from theano import config
from theano.tensor.opt import in2out
Expand Down
1 change: 1 addition & 0 deletions theano/tests/record.py
@@ -1,4 +1,5 @@
from __future__ import absolute_import, print_function, division
from theano.compile import Mode
import theano
from theano.printing import hex_digest

Expand Down
1 change: 0 additions & 1 deletion theano/tests/test_2nd_order_grads.py
Expand Up @@ -2,7 +2,6 @@
Test for jacobian/hessian functions in Theano
"""
from __future__ import absolute_import, print_function, division
import unittest
from six.moves import xrange
from theano.tests import unittest_tools as utt
import theano
Expand Down
22 changes: 7 additions & 15 deletions theano/tests/test_flake8.py
Expand Up @@ -22,6 +22,13 @@
# too complex to do with the C code
# - "closing bracket does not match indentation of opening bracket's line"
# ignored by default by pep8
# - "'with_statement' missing"
# - "'unicode_literals' missing"
# - "'generator_stop' missing"
# - "'division' present"
# - "'absolute_import' present"
# - "'print_function' present"
# Redundant error code generated by flake8-future-import module
ignore = ('E501', 'E123', 'E133', 'FI12', 'FI14', 'FI15', 'FI50', 'FI51', 'FI53')

whitelist_flake8 = [
Expand All @@ -32,15 +39,6 @@
"compile/profiling.py",
"compile/sandbox/__init__.py",
"compile/tests/__init__.py",
"compile/tests/test_builders.py",
"compile/tests/test_misc.py",
"compile/tests/test_monitormode.py",
"compile/tests/test_function_module.py",
"compile/tests/test_shared.py",
"compile/tests/test_ops.py",
"compile/tests/test_pfunc.py",
"compile/tests/test_debugmode.py",
"compile/tests/test_profiling.py",
"typed_list/__init__.py",
"typed_list/tests/__init__.py",
"tensor/__init__.py",
Expand Down Expand Up @@ -152,12 +150,6 @@
"scan_module/tests/test_scan_opt.py",
"misc/__init__.py",
"misc/tests/__init__.py",
"misc/tests/test_may_share_memory.py",
"misc/tests/test_pycuda_theano_simple.py",
"misc/tests/test_gnumpy_utils.py",
"misc/tests/test_pycuda_utils.py",
"misc/tests/test_cudamat_utils.py",
"misc/tests/test_pycuda_example.py",
"misc/hooks/reindent.py",
"misc/hooks/check_whitespace.py",
"sparse/__init__.py",
Expand Down
1 change: 0 additions & 1 deletion theano/tests/test_record.py
@@ -1,5 +1,4 @@
from __future__ import absolute_import, print_function, division
from theano.tests.record import *
from theano.tests.record import Record, MismatchError, RecordMode
from theano import function
from six.moves import xrange, StringIO
Expand Down

0 comments on commit e29d6ce

Please sign in to comment.