Skip to content

Commit

Permalink
Ignore warnings in tests. (#2620)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jasper authored Feb 7, 2023
1 parent f2823b1 commit 306fcc0
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 5 deletions.
5 changes: 4 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,17 @@ line-length = 79
minversion = "6.0"
timeout = 60
addopts = """
-v
--doctest-modules
--ignore src/gluonts/block.py
--ignore src/gluonts/distribution.py
--ignore src/gluonts/kernels.py
--ignore src/gluonts/representation.py
--ignore src/gluonts/trainer.py
"""
doctest_optionflags = "NORMALIZE_WHITESPACE"

testpaths = "test"
filterwarnings = "ignore"

[tool.ruff]
line-length = 79
Expand Down
4 changes: 0 additions & 4 deletions setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,5 @@ source-dir = docs
build-dir = docs/_build
all_files = 1

[tool:pytest]
testpaths = test
addopts = -v --doctest-modules --color=yes

[mypy]
plugins = pydantic.mypy

0 comments on commit 306fcc0

Please sign in to comment.