diff --git a/pyproject.toml b/pyproject.toml index 442daa7e7..818055a02 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -184,7 +184,7 @@ filterwarnings = [ "ignore:The following exception was caught when calculating", "ignore:Usage of the parameter log_options", ] -addopts = ["--doctest-modules", "-s"] +addopts = ["--doctest-modules", "--pdbcls=pdbp:Pdb"] markers = [ "wip: Tests that are work-in-progress.", "slow: Tests that take a long time to run and are skipped in continuous integration.", @@ -196,9 +196,6 @@ norecursedirs = ["docs", ".tools"] # ====================================================================================== # Misc configuration # ====================================================================================== -[tool.pytask] -infer_latex_dependencies = true - [tool.yamlfix] line_length = 88 sequence_style = "block_style" diff --git a/src/estimagic/__init__.py b/src/estimagic/__init__.py index 056f823e4..44a640486 100644 --- a/src/estimagic/__init__.py +++ b/src/estimagic/__init__.py @@ -1,12 +1,6 @@ -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 diff --git a/src/optimagic/__init__.py b/src/optimagic/__init__.py index e1cbd6a3c..28e912234 100644 --- a/src/optimagic/__init__.py +++ b/src/optimagic/__init__.py @@ -1,12 +1,5 @@ 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 (