提交 fbd14ed8 authored 作者: ricardoV94's avatar ricardoV94 提交者: Ricardo Vieira

Fix pytest config in pyproject.toml

上级 b28a3a79
...@@ -78,7 +78,7 @@ jobs: ...@@ -78,7 +78,7 @@ jobs:
install-jax: [0] install-jax: [0]
install-torch: [0] install-torch: [0]
part: part:
- "--doctest-modules --ignore=pytensor/misc/check_duplicate_key.py pytensor --ignore=pytensor/link" - "--doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
- "tests --ignore=tests/tensor --ignore=tests/scan --ignore=tests/sparse" - "tests --ignore=tests/tensor --ignore=tests/scan --ignore=tests/sparse"
- "tests/scan" - "tests/scan"
- "tests/sparse" - "tests/sparse"
...@@ -97,9 +97,9 @@ jobs: ...@@ -97,9 +97,9 @@ jobs:
part: "tests/tensor/test_math.py" part: "tests/tensor/test_math.py"
- fast-compile: 1 - fast-compile: 1
float32: 1 float32: 1
- part: "--doctest-modules --ignore=pytensor/misc/check_duplicate_key.py pytensor --ignore=pytensor/link" - part: "--doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
float32: 1 float32: 1
- part: "--doctest-modules --ignore=pytensor/misc/check_duplicate_key.py pytensor --ignore=pytensor/link" - part: "--doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
fast-compile: 1 fast-compile: 1
include: include:
- install-numba: 1 - install-numba: 1
......
...@@ -116,9 +116,9 @@ versionfile_source = "pytensor/_version.py" ...@@ -116,9 +116,9 @@ versionfile_source = "pytensor/_version.py"
versionfile_build = "pytensor/_version.py" versionfile_build = "pytensor/_version.py"
tag_prefix = "rel-" tag_prefix = "rel-"
[tool.pytest] [tool.pytest.ini_options]
addopts = "--durations=50 --doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link" addopts = "--durations=50 --doctest-modules --ignore=pytensor/link --ignore=pytensor/misc/check_duplicate_key.py"
testpaths = "tests/" testpaths = ["pytensor/", "tests/"]
[tool.ruff] [tool.ruff]
line-length = 88 line-length = 88
......
...@@ -27,8 +27,8 @@ def fetch_seed(pseed=None): ...@@ -27,8 +27,8 @@ def fetch_seed(pseed=None):
None, which is equivalent to seeding with a random seed. None, which is equivalent to seeding with a random seed.
Useful for seeding RandomState or Generator objects. Useful for seeding RandomState or Generator objects.
>>> rng = np.random.RandomState(unittest_tools.fetch_seed()) >>> rng = np.random.RandomState(fetch_seed())
>>> rng = np.random.default_rng(unittest_tools.fetch_seed()) >>> rng = np.random.default_rng(fetch_seed())
""" """
seed = pseed or config.unittests__rseed seed = pseed or config.unittests__rseed
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论