diff --git a/pyproject.toml b/pyproject.toml index 1383fb8c4..40058dc7e 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -118,9 +118,8 @@ packages = ["src/porespy"] [tool.pytest.ini_options] minversion = "6.0" -# addopts = "-ra -v -p no:warnings" addopts = [ - "-ra -v -p no:warnings", + "-ra -v", "--ignore=docs/conf.py", "--ignore=examples/generators/reference/fractal_noise.ipynb", "--ignore=examples/networks/reference/diffusive_size_factor_AI.ipynb", @@ -132,9 +131,11 @@ python_classes = "*Test" python_functions = "test_*" testpaths = ["test", "examples"] norecursedirs = [".git", ".github", ".ipynb_checkpoints", "build", "dist"] +# filterwarnings = ["error", "ignore::UserWarning", "ignore::DeprecationWarning"] +# -p no:warnings [tool.ruff] exclude = [".git", ".github", ".venv", "build", "docs", "examples", "test"] line-length = 92 [tool.ruff.lint.per-file-ignores] -"__init__.py" = ["E402","F401", "F403"] +"__init__.py" = ["E402", "F401", "F403"]