Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
P
pytensor
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
testgroup
pytensor
Commits
48064140
提交
48064140
authored
7月 28, 2016
作者:
Frédéric Bastien
提交者:
GitHub
7月 28, 2016
浏览文件
操作
浏览文件
下载
差异文件
Merge pull request #4788 from slefrancois/flake8_new_api
Flake8 new api
上级
5e4a1b6b
2fbbe32a
显示空白字符变更
内嵌
并排
正在显示
8 个修改的文件
包含
19 行增加
和
11 行删除
+19
-11
dev_start_guide.txt
doc/dev_start_guide.txt
+7
-3
setup.py
setup.py
+1
-1
lazylinker_c.py
theano/gof/lazylinker_c.py
+1
-1
test_destroyhandler.py
theano/gof/tests/test_destroyhandler.py
+2
-1
test_link.py
theano/gof/tests/test_link.py
+1
-1
test_opt.py
theano/gof/tests/test_opt.py
+4
-2
test_toolbox.py
theano/gof/tests/test_toolbox.py
+1
-1
test_flake8.py
theano/tests/test_flake8.py
+2
-1
没有找到文件。
doc/dev_start_guide.txt
浏览文件 @
48064140
...
@@ -11,13 +11,13 @@ You want to contribute to Theano? That is great! This page explain our
...
@@ -11,13 +11,13 @@ You want to contribute to Theano? That is great! This page explain our
workflow and some resource for doing so.
workflow and some resource for doing so.
Looking for an idea for a first contribution? Check `github issue
Looking for an idea for a first contribution? Check `github issue
<https://github.com/Theano/Theano/issues?q=is%3Aopen+is%3Aissue+label%3A%22Easy+fix%22>`
<https://github.com/Theano/Theano/issues?q=is%3Aopen+is%3Aissue+label%3A%22Easy+fix%22>`
_
with a label ``easy fix``. They are good starter. It is recommanded
with a label ``easy fix``. They are good starter. It is recommanded
that you write on the issue you want to work on it. This help make
that you write on the issue you want to work on it. This help make
sure it is up to date and see if nobody else is working on it. Also,
sure it is up to date and see if nobody else is working on it. Also,
we can sometimes provides more information about it. There is also
we can sometimes provides more information about it. There is also
the label `NeedSomeoneToFinish
the label `NeedSomeoneToFinish
<https://github.com/Theano/Theano/labels/NeedSomeoneToFinish>` that is
<https://github.com/Theano/Theano/labels/NeedSomeoneToFinish>`
_
that is
interresting to check. The difficulty level is variable.
interresting to check. The difficulty level is variable.
Resources
Resources
...
@@ -126,7 +126,11 @@ To setup VIM:
...
@@ -126,7 +126,11 @@ To setup VIM:
#. Install flake8 (if not already installed) with::
#. Install flake8 (if not already installed) with::
pip install flake8
pip install "flake8<3"
.. warning:: Starting version 3.0.0, flake8 changed its dependancies and
moved its Python API to a legacy module, breaking Theano's flake8 tests.
We recommend using a version prior to 3.
.. note:: You can use ``easy_install`` instead of ``pip``, and ``pep8``
.. note:: You can use ``easy_install`` instead of ``pip``, and ``pep8``
instead of ``flake8`` if you prefer. The important thing is that the
instead of ``flake8`` if you prefer. The important thing is that the
...
...
setup.py
浏览文件 @
48064140
...
@@ -166,7 +166,7 @@ def do_setup():
...
@@ -166,7 +166,7 @@ def do_setup():
install_requires
=
[
'numpy>=1.7.1'
,
'scipy>=0.11'
,
'six>=1.9.0'
],
install_requires
=
[
'numpy>=1.7.1'
,
'scipy>=0.11'
,
'six>=1.9.0'
],
# pygments is a dependency for Sphinx code highlight
# pygments is a dependency for Sphinx code highlight
extras_require
=
{
extras_require
=
{
'test'
:
[
'nose>=1.3.0'
,
'nose-parameterized>=0.5.0'
],
'test'
:
[
'nose>=1.3.0'
,
'nose-parameterized>=0.5.0'
,
'flake8<3'
],
'doc'
:
[
'Sphinx>=0.5.1'
,
'pygments'
]
'doc'
:
[
'Sphinx>=0.5.1'
,
'pygments'
]
},
},
package_data
=
{
package_data
=
{
...
...
theano/gof/lazylinker_c.py
浏览文件 @
48064140
...
@@ -145,4 +145,4 @@ except ImportError:
...
@@ -145,4 +145,4 @@ except ImportError:
release_lock
()
release_lock
()
from
lazylinker_ext.lazylinker_ext
import
*
# noqa
from
lazylinker_ext.lazylinker_ext
import
*
# noqa
assert
force_compile
or
(
version
==
get_version
())
assert
force_compile
or
(
version
==
get_version
())
# noqa
theano/gof/tests/test_destroyhandler.py
浏览文件 @
48064140
...
@@ -5,7 +5,8 @@ from theano.gof.type import Type
...
@@ -5,7 +5,8 @@ from theano.gof.type import Type
from
theano.gof
import
graph
from
theano.gof
import
graph
from
theano.gof.graph
import
Variable
,
Apply
from
theano.gof.graph
import
Variable
,
Apply
from
theano.gof.op
import
Op
from
theano.gof.op
import
Op
from
theano.gof.opt
import
*
# noqa
from
theano.gof.opt
import
(
OpKeyOptimizer
,
PatternSub
,
NavigatorOptimizer
,
TopoOptimizer
,
OpSub
)
from
theano.gof
import
destroyhandler
from
theano.gof
import
destroyhandler
from
theano.gof.fg
import
FunctionGraph
,
InconsistencyError
from
theano.gof.fg
import
FunctionGraph
,
InconsistencyError
...
...
theano/gof/tests/test_link.py
浏览文件 @
48064140
...
@@ -11,7 +11,7 @@ from theano.gof.type import Type
...
@@ -11,7 +11,7 @@ from theano.gof.type import Type
from
theano.gof.op
import
Op
from
theano.gof.op
import
Op
from
theano.gof
import
fg
from
theano.gof
import
fg
from
theano.gof.link
import
*
# noqa
from
theano.gof.link
import
PerformLinker
,
WrapLinker
,
Container
from
theano.compat
import
cmp
from
theano.compat
import
cmp
...
...
theano/gof/tests/test_opt.py
浏览文件 @
48064140
...
@@ -3,9 +3,11 @@ from __future__ import absolute_import, print_function, division
...
@@ -3,9 +3,11 @@ from __future__ import absolute_import, print_function, division
from
theano.gof.type
import
Type
from
theano.gof.type
import
Type
from
theano.gof.graph
import
Variable
,
Apply
,
Constant
from
theano.gof.graph
import
Variable
,
Apply
,
Constant
from
theano.gof.op
import
Op
from
theano.gof.op
import
Op
from
theano.gof.opt
import
*
# noqa
from
theano.gof.opt
import
(
OpKeyOptimizer
,
PatternSub
,
TopoOptimizer
,
OpSub
,
MergeOptimizer
,
config
,
theano
,
EquilibriumOptimizer
,
logging
,
pre_constant_merge
,
pre_greedy_local_optimizer
)
from
theano.gof.fg
import
FunctionGraph
from
theano.gof.fg
import
FunctionGraph
from
theano.gof.toolbox
import
*
# noqa
from
theano
import
tensor
as
T
from
theano
import
tensor
as
T
...
...
theano/gof/tests/test_toolbox.py
浏览文件 @
48064140
...
@@ -5,7 +5,7 @@ from theano.gof.type import Type
...
@@ -5,7 +5,7 @@ from theano.gof.type import Type
from
theano.gof.op
import
Op
from
theano.gof.op
import
Op
from
theano.gof.fg
import
FunctionGraph
from
theano.gof.fg
import
FunctionGraph
from
theano.gof.toolbox
import
*
# noqa
from
theano.gof.toolbox
import
NodeFinder
def
as_variable
(
x
):
def
as_variable
(
x
):
...
...
theano/tests/test_flake8.py
浏览文件 @
48064140
...
@@ -29,7 +29,8 @@ __contact__ = "Saizheng Zhang <saizhenglisa..at..gmail.com>"
...
@@ -29,7 +29,8 @@ __contact__ = "Saizheng Zhang <saizhenglisa..at..gmail.com>"
# - "'absolute_import' present"
# - "'absolute_import' present"
# - "'print_function' present"
# - "'print_function' present"
# Redundant error code generated by flake8-future-import module
# Redundant error code generated by flake8-future-import module
ignore
=
(
'E501'
,
'E123'
,
'E133'
,
'FI12'
,
'FI14'
,
'FI15'
,
'FI16'
,
'FI17'
,
'FI50'
,
'FI51'
,
'FI53'
)
ignore
=
(
'E501'
,
'E123'
,
'E133'
,
'FI12'
,
'FI14'
,
'FI15'
,
'FI16'
,
'FI17'
,
'FI50'
,
'FI51'
,
'FI53'
)
whitelist_flake8
=
[
whitelist_flake8
=
[
"compat/six.py"
,
# This is bundled code that will be deleted, don't fix it
"compat/six.py"
,
# This is bundled code that will be deleted, don't fix it
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论