Skip to content

Commit

Permalink
Move pytest.ini to pyproject.toml and add filterwarnings
Browse files Browse the repository at this point in the history
  • Loading branch information
mwtoews committed Jun 16, 2023
1 parent a236b40 commit c80f2cb
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 7 deletions.
13 changes: 9 additions & 4 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,16 @@ test = [
Documentation = "https://mwtoews.github.io/surface-water-network/"
Source = "https://github.com/mwtoews/surface-water-network"

[tool.setuptools.packages.find]
include = [
"swn",
"swn.*",
[tool.pytest.ini_options]
minversion = "6.0"
testpaths = ["tests"]
filterwarnings = [
"ignore:.*distutils Version classes.*:DeprecationWarning",
"ignore:.*More than 20 figures have been opened.*:RuntimeWarning",
]

[tool.setuptools.packages.find]
include = ["swn", "swn.*"]

[tool.setuptools_scm]
write_to = "swn/_version.py"
3 changes: 0 additions & 3 deletions pytest.ini

This file was deleted.

0 comments on commit c80f2cb

Please sign in to comment.