Skip to content

Commit

Permalink
Enable warnings during testing
Browse files Browse the repository at this point in the history
  • Loading branch information
ma-sadeghi committed Mar 11, 2024
1 parent 58eaf5e commit 21d0bf5
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -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"]

0 comments on commit 21d0bf5

Please sign in to comment.