Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix warnings in pytest #628

Merged
merged 3 commits into from
Aug 7, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ build-backend = "setuptools.build_meta"

[tool.pytest.ini_options]
filterwarnings = [
'error',
# The following deprecation warnings come from Python 3.12 stdlib modules
"ignore:datetime.datetime.:DeprecationWarning:",
# This one is coming from plumpy
Expand All @@ -16,12 +15,15 @@ filterwarnings = [
"ignore:The default datetime adapter is deprecated as of Python 3.12; see the sqlite3 documentation for suggested replacement recipes:DeprecationWarning:",
# This is needed since SQLAlchemy 2.0, see
# https://github.com/aiidalab/aiidalab-widgets-base/issues/605
'ignore:Object of type .* not in session, .* operation along .* will not proceed:sqlalchemy.exc.SAWarning',
'ignore:Object of type.*not in session,.*operation along.*will not proceed:sqlalchemy.exc.SAWarning',
'ignore::DeprecationWarning:bokeh',
'ignore:Creating AiiDA configuration:UserWarning:aiida',
'ignore:The `Code` class:aiida.common.warnings.AiidaDeprecationWarning:',
'ignore:crystal system:UserWarning:ase.io.cif',
'ignore::DeprecationWarning:ase.atoms',
# This popped up in spglib 2.5. Since we still try to support spglib v1,
# it's not clear if we can get rid of it.
"ignore:dict interface.*is deprecated.Use attribute interface:DeprecationWarning:spglib",
# TODO: This comes from a transitive dependency of ipyoptimade
# Remove this when this issue is addressed:
# https://github.com/CasperWA/ipywidgets-extended/issues/85
Expand All @@ -34,6 +36,7 @@ filterwarnings = [
# This warning is coming from circus (aiida-core dependency):
# https://github.com/circus-tent/circus/issues/1215
"ignore:'pipes' is deprecated and slated for removal in Python 3.13:DeprecationWarning:",
"ignore::cryptography.utils.CryptographyDeprecationWarning:",
]

[tool.ruff]
Expand Down