forked from chainer/chainer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsetup.cfg
30 lines (28 loc) · 1.28 KB
/
setup.cfg
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
[flake8]
exclude = .eggs,*.egg,build,caffe_pb2.py,caffe_pb3.py,docs,.git
# TODO(niboshi): Fix violating code and remove E241 and E226
ignore = E741,W503,E241,E226
[pep8]
exclude = .eggs,*.egg,build,caffe_pb2.py,caffe_pb3.py,docs,.git
[tool:pytest]
filterwarnings= ignore::FutureWarning
error::DeprecationWarning
# Theano 0.8 causes DeprecationWarnings. It is fixed in 0.9.
ignore::DeprecationWarning:theano.configparser
# Theano 1.0.2 passes a deprecated argument to distutils during
# importing ``theano.gof`` module.
# Without this configuration, the DeprecationWarning would be
# treated as an exception, and therefore the import would fail,
# causing AttributeError in the subsequent uses of
# ``theano.gof``. (#4810)
ignore::DeprecationWarning:theano.gof.cmodule
# ChainerMN depends on `add_link`. Although it is marked
# as 'deprecated', it is planned to make the function active again
# in #4250.
ignore::DeprecationWarning:chainermn
testpaths = tests docs
python_files = test_*.py
python_classes = Test
python_functions = test
minversion = 2.9
addopts = --doctest-modules