Skip to content

Commit

Permalink
Use pdbp instead of pdbpp
Browse files Browse the repository at this point in the history
  • Loading branch information
timmens committed Nov 7, 2024
1 parent 15bfec0 commit 0cac064
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 2 deletions.
2 changes: 1 addition & 1 deletion environment.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ dependencies:
- pygmo>=2.19.0 # dev, tests
- jupyterlab # dev, docs
- nlopt # dev, tests, docs
- pdbpp # dev
- pip # dev, tests, docs
- pytest # dev, tests
- pytest-cov # tests
Expand Down Expand Up @@ -51,3 +50,4 @@ dependencies:
- types-jinja2 # dev, tests
- sqlalchemy-stubs # dev, tests
- sphinxcontrib-mermaid # dev, tests, docs
- pdbp # dev
3 changes: 2 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ filterwarnings = [
"ignore:The following exception was caught when calculating",
"ignore:Usage of the parameter log_options",
]
addopts = ["--doctest-modules"]
addopts = ["--doctest-modules", "-s"]
markers = [
"wip: Tests that are work-in-progress.",
"slow: Tests that take a long time to run and are skipped in continuous integration.",
Expand Down Expand Up @@ -380,5 +380,6 @@ module = [
"pathos.pools",
"optimagic._version",
"annotated_types",
"pdbp",
]
ignore_missing_imports = true
6 changes: 6 additions & 0 deletions src/estimagic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import contextlib
import warnings
from dataclasses import dataclass

try:
import pdbp # noqa: F401
except ImportError:
contextlib.suppress(Exception)

from estimagic import utilities
from estimagic.bootstrap import BootstrapResult, bootstrap
from estimagic.estimate_ml import LikelihoodResult, estimate_ml
Expand Down
7 changes: 7 additions & 0 deletions src/optimagic/__init__.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,12 @@
from __future__ import annotations

import contextlib

try:
import pdbp # noqa: F401
except ImportError:
contextlib.suppress(Exception)

from optimagic import constraints, mark, utilities
from optimagic.algorithms import algos
from optimagic.benchmarking.benchmark_reports import (
Expand Down

0 comments on commit 0cac064

Please sign in to comment.