Skip to content

Commit

Permalink
Fix pytest config in pyproject.toml
Browse files Browse the repository at this point in the history
  • Loading branch information
ricardoV94 committed Oct 8, 2024
1 parent 628e974 commit 2623c05
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ jobs:
install-jax: [0]
install-torch: [0]
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/scan"
- "tests/sparse"
Expand All @@ -97,9 +97,9 @@ jobs:
part: "tests/tensor/test_math.py"
- fast-compile: 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
- 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
include:
- install-numba: 1
Expand Down
6 changes: 3 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -116,9 +116,9 @@ versionfile_source = "pytensor/_version.py"
versionfile_build = "pytensor/_version.py"
tag_prefix = "rel-"

[tool.pytest]
addopts = "--durations=50 --doctest-modules pytensor --ignore=pytensor/misc/check_duplicate_key.py --ignore=pytensor/link"
testpaths = "tests/"
[tool.pytest.ini_options]
addopts = "--durations=50 --doctest-modules --ignore=pytensor/link --ignore=pytensor/misc/check_duplicate_key.py"
testpaths = ["pytensor/", "tests/"]

[tool.ruff]
line-length = 88
Expand Down
4 changes: 2 additions & 2 deletions tests/unittest_tools.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@ def fetch_seed(pseed=None):
None, which is equivalent to seeding with a random seed.
Useful for seeding RandomState or Generator objects.
>>> rng = np.random.RandomState(unittest_tools.fetch_seed())
>>> rng = np.random.default_rng(unittest_tools.fetch_seed())
>>> rng = np.random.RandomState(fetch_seed())
>>> rng = np.random.default_rng(fetch_seed())
"""

seed = pseed or config.unittests__rseed
Expand Down

0 comments on commit 2623c05

Please sign in to comment.