Skip to content

Commit

Permalink
Enable pdbp debugger via pyproject.toml and remove imports from init …
Browse files Browse the repository at this point in the history
…files
  • Loading branch information
timmens committed Nov 12, 2024
1 parent 7bd08c2 commit 3ec4a32
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 17 deletions.
5 changes: 1 addition & 4 deletions 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", "-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.",
Expand All @@ -196,9 +196,6 @@ norecursedirs = ["docs", ".tools"]
# ======================================================================================
# Misc configuration
# ======================================================================================
[tool.pytask]
infer_latex_dependencies = true

[tool.yamlfix]
line_length = 88
sequence_style = "block_style"
Expand Down
6 changes: 0 additions & 6 deletions src/estimagic/__init__.py
Original file line number Diff line number Diff line change
@@ -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
Expand Down
7 changes: 0 additions & 7 deletions src/optimagic/__init__.py
Original file line number Diff line number Diff line change
@@ -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 (
Expand Down

0 comments on commit 3ec4a32

Please sign in to comment.