Skip to content

Update pytest filterwarnings to fail on warnings originating from Parcels code #2413

@VeckoTheGecko

Description

@VeckoTheGecko

Fix warnings in Parcels as a result of the Parcels test suite and update Pytest settings to fail on warnings.

diff --git a/pyproject.toml b/pyproject.toml
index ca43f03b..c87b4d36 100644
--- a/pyproject.toml
+++ b/pyproject.toml
@@ -65,6 +65,7 @@ markers = [ # can be skipped by doing `pytest -m "not slow"` etc.
 
 filterwarnings = [
   "error:.*removed in a future release of Parcels.*:DeprecationWarning", # Have Parcels DeprecationWarnings fail CI (prevents deprecated items being used in internal code)
+  "error:::parcels.*",
 ]
 
 [tool.ruff]

This will ensure that users don't get warnings when running Parcels code, and also makes sure that we're on top of deprecations etc.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    Status

    Backlog

    Status

    Backlog

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions