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
6 changes: 1 addition & 5 deletions package.nix
Original file line number Diff line number Diff line change
Expand Up @@ -126,17 +126,13 @@ python3.pkgs.buildPythonApplication {
with python3.pkgs;
[
pytestCheckHook
pytest-cov
pytest-cov-stub
versionCheckHook
]
++ runtimeDeps;

versionCheckProgramArg = "--version";

pytestFlagsArray = [
"--no-cov"
];

passthru = {
# helpful to easily add these to a nix-shell environment
inherit runtimeDeps;
Expand Down
11 changes: 3 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ dev = [
"atheris>=2.3,<3.0; sys_platform == 'linux' and python_version < '3.12'",
"pre-commit>=3.5,<5.0",
"pyright>=1.1.349",
"pytest-cov>=3,<7",
"pytest-cov>=7,<8",
"pytest>=8.0.0",
"pyyaml>=6.0.1",
"ruff==0.12.12",
Expand Down Expand Up @@ -151,7 +151,7 @@ parametrize-names-type = "csv"
"attr".msg = "Use `attrs` (with an 's') instead"

[tool.pytest.ini_options]
addopts = "--cov=unblob --cov=tests --cov-branch --cov-fail-under=90"
addopts = "--cov --cov-fail-under=90"
norecursedirs = """
*.egg
*_extract
Expand All @@ -162,15 +162,10 @@ norecursedirs = """
tests/integration
"""

[tool.coverage.paths]
source = ["tests", "unblob"]

[tool.coverage.run]
branch = true
concurrency = ["multiprocessing"]
parallel = true
sigterm = true
source = ["tests", "unblob"]
source = ["python", "tests"]

[tool.coverage.report]
fail_under = 90
Expand Down
4 changes: 0 additions & 4 deletions python/unblob/testing.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@
import pytest
from lark.lark import Lark
from lark.visitors import Discard, Transformer
from pytest_cov.embed import cleanup_on_sigterm

from unblob.finder import build_hyperscan_database
from unblob.logging import configure_logger
Expand All @@ -24,9 +23,6 @@ def configure_logging(tmp_path_factory):
log_path = tmp_path_factory.mktemp("logs") / "unblob.log"
configure_logger(verbosity_level=3, extract_root=extract_root, log_path=log_path)

# https://pytest-cov.readthedocs.io/en/latest/subprocess-support.html#if-you-use-multiprocessing-process
cleanup_on_sigterm()


def gather_integration_tests(test_data_path: Path):
# Path.glob() trips on some invalid files
Expand Down
8 changes: 4 additions & 4 deletions uv.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading