Skip to content
Merged
Show file tree
Hide file tree
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
8 changes: 8 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -61,3 +61,11 @@ use_parentheses = true
line_length = 88
known_first_party=["pytest_pystack"]
known_third_party=["pytest"]

[tool.ruff.lint]
ignore = [
"FA100", # Add `from __future__ import annotations` to every file
]

[tool.ruff.lint.isort]
force-single-line = true
1 change: 0 additions & 1 deletion src/pytest_pystack/_debug_detect.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,6 @@ def is_debugging(tracefunc):
This is done by checking if the module that is the origin
of the trace function is in KNOWN_DEBUGGING_MODULES.
"""
global KNOWN_DEBUGGING_MODULES
if tracefunc and inspect.getmodule(tracefunc):
parts = inspect.getmodule(tracefunc).__name__.split(".")
for name in KNOWN_DEBUGGING_MODULES:
Expand Down
3 changes: 2 additions & 1 deletion src/pytest_pystack/_monitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def monitor(config: PystackConfig, pid, queue, debug_detected):
f"new test {new_testcase} should not start before previous {testcase} test finished",
file=sys.__stderr__,
)
raise Exception(
raise RuntimeError(
"new test should not start before previous test finished"
)
except Empty:
Expand All @@ -41,6 +41,7 @@ def monitor(config: PystackConfig, pid, queue, debug_detected):
[*pystack_cmd, str(pid)],
stdout=subprocess.PIPE,
text=True,
check=False,
)
output += proc.stdout
output += "**** PYSTACK ***\n"
Expand Down