schema_version
int64
3
3
instance_id
stringclasses
30 values
spec
dict
mask_patch
stringclasses
30 values
gold_patch
stringclasses
30 values
mutant_patch
stringlengths
295
1.33k
test_patch
stringclasses
30 values
proof
dict
metadata
dict
3
pydantic__pydantic.e1dcaf9e.test_titles.e806bda8.lv1
{ "spec_id": "S4", "text": "Convert a Pydantic FieldInfo object to a standard library dataclasses.Field object.\n\nThis function transforms a Pydantic field definition into a format that can be understood by the standard library's dataclasses module. It preserves important field attributes like description, kw_only...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..71aa69bfe 100644 --- a/pydantic/_internal/_dataclasses.py +++ b/pydantic/_internal/_dataclasses.py @@ -205,22 +205,22 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: return '__dat...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..71aa69bfe 100644 +++ a/pydantic/_internal/_dataclasses.py --- b/pydantic/_internal/_dataclasses.py @@ -205,22 +205,22 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: return '__dat...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..3ef2564d0 100644 --- a/pydantic/_internal/_dataclasses.py +++ b/pydantic/_internal/_dataclasses.py @@ -213,7 +213,7 @@ def as_dataclass_field(pydantic_field: FieldInfo) -> dataclasses.Field[Any]: field_args['d...
diff --git a/tests/test_titles.py b/tests/test_titles.py deleted file mode 100644 index be894d717..000000000 --- a/tests/test_titles.py +++ /dev/null @@ -1,493 +0,0 @@ -import re -import typing -from typing import Any, Callable - -import pytest -import typing_extensions - -import pydantic -from pydantic import BaseMode...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S7", "shared_functions": 1, "shared_lines": 3 }, { "spec_id": "S8", "shared_functions": 1, "shared_lines": 3 }, { "spec_id": "S5", "shared_functions": 1, "shared_lines": 1 } ] }
3
pydantic__pydantic.e1dcaf9e.test_titles.e806bda8.lv1
{ "spec_id": "S5", "text": "The original pydantic_field is set as the default value of the dataclass field", "category": "behavioral", "code_mapping": [ { "file": "/testbed/pydantic/_internal/_dataclasses.py", "lines": "209", "function": "as_dataclass_field" } ] }
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..71aa69bfe 100644 --- a/pydantic/_internal/_dataclasses.py +++ b/pydantic/_internal/_dataclasses.py @@ -205,22 +205,22 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: return '__dat...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..71aa69bfe 100644 +++ a/pydantic/_internal/_dataclasses.py --- b/pydantic/_internal/_dataclasses.py @@ -205,22 +205,22 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: return '__dat...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..60e843001 100644 --- a/pydantic/_internal/_dataclasses.py +++ b/pydantic/_internal/_dataclasses.py @@ -206,7 +206,8 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: def as_dataclas...
diff --git a/tests/test_titles.py b/tests/test_titles.py deleted file mode 100644 index be894d717..000000000 --- a/tests/test_titles.py +++ /dev/null @@ -1,493 +0,0 @@ -import re -import typing -from typing import Any, Callable - -import pytest -import typing_extensions - -import pydantic -from pydantic import BaseMode...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S4", "shared_functions": 1, "shared_lines": 1 }, { "spec_id": "S7", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S8", "shared_functions": 1, "shared_lines": 0 } ] }
3
pydantic__pydantic.e1dcaf9e.test_titles.e806bda8.lv1
{ "spec_id": "S16", "text": "description: Description to use when including this computed field in JSON Schema, defaults to the function's docstring", "category": "structural", "code_mapping": [ { "file": "/testbed/pydantic/fields.py", "lines": "1805-1807", "function": "computed_field" ...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..71aa69bfe 100644 --- a/pydantic/_internal/_dataclasses.py +++ b/pydantic/_internal/_dataclasses.py @@ -205,22 +205,22 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: return '__dat...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..71aa69bfe 100644 +++ a/pydantic/_internal/_dataclasses.py --- b/pydantic/_internal/_dataclasses.py @@ -205,22 +205,22 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: return '__dat...
diff --git a/pydantic/fields.py b/pydantic/fields.py index ea010d044..995dd04cd 100644 --- a/pydantic/fields.py +++ b/pydantic/fields.py @@ -1802,9 +1802,6 @@ def computed_field( nonlocal description, deprecated, return_type, alias_priority unwrapped = _decorators.unwrap_wrapped_function(f) - ...
diff --git a/tests/test_titles.py b/tests/test_titles.py deleted file mode 100644 index be894d717..000000000 --- a/tests/test_titles.py +++ /dev/null @@ -1,493 +0,0 @@ -import re -import typing -from typing import Any, Callable - -import pytest -import typing_extensions - -import pydantic -from pydantic import BaseMode...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S14", "shared_functions": 1, "shared_lines": 3 }, { "spec_id": "S17", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S19", "shared_functions": 1, "shared_lines": 0 }, { "spec_id"...
3
pydantic__pydantic.e1dcaf9e.test_titles.e806bda8.lv1
{ "spec_id": "S17", "text": "deprecated: A deprecation message (or an instance of `warnings.deprecated` or the `typing_extensions.deprecated` backport). to be emitted when accessing the field. Or a boolean. This will automatically be set if the property is decorated with the `deprecated` decorator.", "category": ...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..71aa69bfe 100644 --- a/pydantic/_internal/_dataclasses.py +++ b/pydantic/_internal/_dataclasses.py @@ -205,22 +205,22 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: return '__dat...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..71aa69bfe 100644 +++ a/pydantic/_internal/_dataclasses.py --- b/pydantic/_internal/_dataclasses.py @@ -205,22 +205,22 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: return '__dat...
diff --git a/pydantic/fields.py b/pydantic/fields.py index ea010d044..d5197d2f2 100644 --- a/pydantic/fields.py +++ b/pydantic/fields.py @@ -1805,9 +1805,6 @@ def computed_field( if description is None and unwrapped.__doc__: description = inspect.cleandoc(unwrapped.__doc__) - if deprecate...
diff --git a/tests/test_titles.py b/tests/test_titles.py deleted file mode 100644 index be894d717..000000000 --- a/tests/test_titles.py +++ /dev/null @@ -1,493 +0,0 @@ -import re -import typing -from typing import Any, Callable - -import pytest -import typing_extensions - -import pydantic -from pydantic import BaseMode...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S14", "shared_functions": 1, "shared_lines": 3 }, { "spec_id": "S16", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S19", "shared_functions": 1, "shared_lines": 0 }, { "spec_id"...
3
pydantic__pydantic.e1dcaf9e.test_titles.e806bda8.lv1
{ "spec_id": "S19", "text": "repr: whether to include this computed field in model repr. Default is `False` for private properties and `True` for public properties.\n\nPrivate properties decorated with `@computed_field` have `repr=False` by default.\n\nManage private vs public property visibility and representation...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..71aa69bfe 100644 --- a/pydantic/_internal/_dataclasses.py +++ b/pydantic/_internal/_dataclasses.py @@ -205,22 +205,22 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: return '__dat...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..71aa69bfe 100644 +++ a/pydantic/_internal/_dataclasses.py --- b/pydantic/_internal/_dataclasses.py @@ -205,22 +205,22 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: return '__dat...
diff --git a/pydantic/fields.py b/pydantic/fields.py index ea010d044..a778d2a30 100644 --- a/pydantic/fields.py +++ b/pydantic/fields.py @@ -1813,7 +1813,7 @@ def computed_field( alias_priority = (alias_priority or 2) if alias is not None else None if repr is None: - repr_: bool = not _wr...
diff --git a/tests/test_titles.py b/tests/test_titles.py deleted file mode 100644 index be894d717..000000000 --- a/tests/test_titles.py +++ /dev/null @@ -1,493 +0,0 @@ -import re -import typing -from typing import Any, Callable - -import pytest -import typing_extensions - -import pydantic -from pydantic import BaseMode...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S9", "shared_functions": 1, "shared_lines": 10 }, { "spec_id": "S14", "shared_functions": 1, "shared_lines": 4 }, { "spec_id": "S10", "shared_functions": 1, "shared_lines": 2 }, { "spec_id"...
3
pydantic__pydantic.e1dcaf9e.test_titles.e806bda8.lv1
{ "spec_id": "S23", "text": "Field Metadata Management: Handle computed field configuration including aliases, titles, descriptions, deprecation warnings, and JSON schema extras", "category": "behavioral", "code_mapping": [ { "file": "/testbed/pydantic/fields.py", "lines": "1822-1833", "fu...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..71aa69bfe 100644 --- a/pydantic/_internal/_dataclasses.py +++ b/pydantic/_internal/_dataclasses.py @@ -205,22 +205,22 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: return '__dat...
diff --git a/pydantic/_internal/_dataclasses.py b/pydantic/_internal/_dataclasses.py index 869286b2d..71aa69bfe 100644 +++ a/pydantic/_internal/_dataclasses.py --- b/pydantic/_internal/_dataclasses.py @@ -205,22 +205,22 @@ def is_stdlib_dataclass(cls: type[Any], /) -> TypeIs[type[StandardDataclass]]: return '__dat...
diff --git a/pydantic/fields.py b/pydantic/fields.py index ea010d044..7a30ec06d 100644 --- a/pydantic/fields.py +++ b/pydantic/fields.py @@ -1566,8 +1566,6 @@ class ComputedFieldInfo: title_generator = self.field_title_generator or config_wrapper.field_title_generator if title_generator is not None an...
diff --git a/tests/test_titles.py b/tests/test_titles.py deleted file mode 100644 index be894d717..000000000 --- a/tests/test_titles.py +++ /dev/null @@ -1,493 +0,0 @@ -import re -import typing -from typing import Any, Callable - -import pytest -import typing_extensions - -import pydantic -from pydantic import BaseMode...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S14", "shared_functions": 1, "shared_lines": 12 }, { "spec_id": "S16", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S17", "shared_functions": 1, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S2", "text": "Raises SystemExit: Called via self.abort() when: Command resolution fails", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/cli/application.py", "lines": "54-58", "function": "run_shell_commands" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..db1b3cc0 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -55,7 +55,8 @@ class Application(Terminal): try: resolved_commands = list(context.env.resolve_commands(context.s...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S1", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S3", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S4", "shared_functions": 1, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S3", "text": "Command display is shown when verbose mode is enabled or when multiple commands are being executed (unless hide_commands is True); source: Source identifier for command display; hide_commands: Whether to suppress command display", "category": "behavioral", "code_mapping": [ { ...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..8c975247 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -58,7 +58,7 @@ class Application(Terminal): self.abort(str(e)) first_error_code = None - should_dis...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S1", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S7", "shared_functions": 1, "shared_lines": 3 }, { "spec_id": "S2", "shared_functions": 1, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S4", "text": "Commands prefixed with \"- \" will continue execution on error regardless of the force_continue setting", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/cli/application.py", "lines": "66-70", "function": "run_shell_commands" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..4c2ebee3 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -66,7 +66,6 @@ class Application(Terminal): command = raw_command continue_on_error = context.force_continue...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S1", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S7", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S2", "shared_functions": 1, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S7", "text": "If force_continue is True, execution continues through errors but will still abort with the first error code encountered after all commands complete; Raises SystemExit: Called via self.abort() when: All commands complete but force_continue is True and errors occurred", "category": "beh...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..8aa4a319 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -73,7 +73,7 @@ class Application(Terminal): sys.stdout.flush() sys.stderr.flush() if proces...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S1", "shared_functions": 1, "shared_lines": 22 }, { "spec_id": "S4", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S3", "shared_functions": 1, "shared_lines": 3 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S8", "text": "Initialize a BuildTargetConfig instance for a specific build target. Signature: `def __init__(self, name: str, config: dict[str, Any], global_config: BuildConfig) -> None`. name : str — The name of the build target (e.g., 'wheel', 'sdist', or custom target names). config : dict[str, Any]...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/config.py b/src/hatch/project/config.py index 81f3e6b6..87206572 100644 --- a/src/hatch/project/config.py +++ b/src/hatch/project/config.py @@ -582,9 +582,9 @@ class BuildConfig: class BuildTargetConfig: - def __init__(self, name: str, config: dict[str, Any], global_config: BuildC...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S9", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S10", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S9", "text": "The constructor stores references to the provided parameters as private attributes for use by cached properties that lazily load and validate configuration values; Target-specific configuration takes precedence over global configuration; Configuration validation is deferred to the cached...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/config.py b/src/hatch/project/config.py index 81f3e6b6..8a902b89 100644 --- a/src/hatch/project/config.py +++ b/src/hatch/project/config.py @@ -587,6 +587,11 @@ class BuildTargetConfig: self.__config = config self.__global_config = global_config + # Resolve conf...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S8", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S10", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S10", "text": "Attributes: root: The root directory path of the project; config: Raw configuration dictionary from pyproject.toml; plugin_manager: Plugin manager instance for handling extensions and collectors. Initialize with project root and parsed config: ProjectConfig(root=..., config=..., plugin_...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/config.py b/src/hatch/project/config.py index 81f3e6b6..aa5c5dda 100644 --- a/src/hatch/project/config.py +++ b/src/hatch/project/config.py @@ -17,10 +17,10 @@ if TYPE_CHECKING: class ProjectConfig: - def __init__(self, root, config, plugin_manager=None): + def __init__(self, r...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S11", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S12", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S13", "shared_functions": 0, "shared_lines": 0 }, { "spec_id"...
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S11", "text": "build: BuildConfig instance containing build-related settings including targets, dependencies, and hooks", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/config.py", "lines": "38-45", "function": "ProjectConfig.build" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/config.py b/src/hatch/project/config.py index 81f3e6b6..1ecebf69 100644 --- a/src/hatch/project/config.py +++ b/src/hatch/project/config.py @@ -42,7 +42,7 @@ class ProjectConfig: message = "Field `tool.hatch.build` must be a table" raise TypeError(message) - ...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S12", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S13", "shared_functions": 0, "shared_lines": 0 }, { "spec_id"...
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S12", "text": "env: Base environment configuration dictionary from tool.hatch.env", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/config.py", "lines": "47-57", "function": "ProjectConfig.env" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/config.py b/src/hatch/project/config.py index 81f3e6b6..e1cbe335 100644 --- a/src/hatch/project/config.py +++ b/src/hatch/project/config.py @@ -52,7 +52,9 @@ class ProjectConfig: message = "Field `tool.hatch.env` must be a table" raise TypeError(message) ...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S13", "shared_functions": 0, "shared_lines": 0 }, { "spec_id"...
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S13", "text": "env_requires: List of environment requirement strings", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/config.py", "lines": "90-95", "function": "ProjectConfig.env_requires" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/config.py b/src/hatch/project/config.py index 81f3e6b6..9d6d5c8d 100644 --- a/src/hatch/project/config.py +++ b/src/hatch/project/config.py @@ -86,7 +86,7 @@ class ProjectConfig: @property def env_requires(self): if self._env_requires is None: - self._env_req...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S12", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S14", "text": "env_requires_complex: List of parsed Dependency objects for environment requirements", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/config.py", "lines": "59-88", "function": "ProjectConfig.env_requires_complex" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/config.py b/src/hatch/project/config.py index 81f3e6b6..407c5b85 100644 --- a/src/hatch/project/config.py +++ b/src/hatch/project/config.py @@ -74,7 +74,7 @@ class ProjectConfig: raise TypeError(message) try: - requires_complex.ap...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S12", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S16", "text": "envs: Dictionary of all resolved environment configurations (excluding internal environments)", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/config.py", "lines": "145-430", "function": "ProjectConfig.envs" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/config.py b/src/hatch/project/config.py index 81f3e6b6..a77ab077 100644 --- a/src/hatch/project/config.py +++ b/src/hatch/project/config.py @@ -432,7 +432,10 @@ class ProjectConfig: self._internal_envs = {} for internal_name in get_internal_env_config(): ...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S20", "shared_functions": 1, "shared_lines": 191 }, { "spec_id": "S23", "shared_functions": 1, "shared_lines": 183 }, { "spec_id": "S22", "shared_functions": 1, "shared_lines": 26 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S18", "text": "matrices: Dictionary containing matrix configuration data for environment generation", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/config.py", "lines": "117-122", "function": "ProjectConfig.matrices" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/config.py b/src/hatch/project/config.py index 81f3e6b6..152f9897 100644 --- a/src/hatch/project/config.py +++ b/src/hatch/project/config.py @@ -112,9 +112,6 @@ class ProjectConfig: @property def matrices(self): - if self._matrices is None: - _ = self.envs - ...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S12", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S23", "text": "Comprehensive validation with detailed error messages", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/config.py", "lines": "148-330", "function": "ProjectConfig.envs" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/config.py b/src/hatch/project/config.py index 81f3e6b6..a160e539 100644 --- a/src/hatch/project/config.py +++ b/src/hatch/project/config.py @@ -325,8 +325,6 @@ class ProjectConfig: ) raise ValueError(message) - ...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S16", "shared_functions": 1, "shared_lines": 183 }, { "spec_id": "S20", "shared_functions": 1, "shared_lines": 101 }, { "spec_id": "S22", "shared_functions": 1, "shared_lines": 26 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S24", "text": "internal_matrices: Dictionary of matrix configurations for internal environments", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/config.py", "lines": "138-143", "function": "ProjectConfig.internal_matrices" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/config.py b/src/hatch/project/config.py index 81f3e6b6..6801a2f9 100644 --- a/src/hatch/project/config.py +++ b/src/hatch/project/config.py @@ -435,7 +435,7 @@ class ProjectConfig: self._internal_envs[internal_name] = self._envs.pop(internal_name) # M...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S12", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S25", "text": "publish: Dictionary of publishing configuration for different publishers", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/config.py", "lines": "432-447", "function": "ProjectConfig.publish" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/config.py b/src/hatch/project/config.py index 81f3e6b6..000b381e 100644 --- a/src/hatch/project/config.py +++ b/src/hatch/project/config.py @@ -454,7 +454,7 @@ class ProjectConfig: message = f"Field `tool.hatch.publish.{publisher}` must be a table" ...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S12", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S31", "text": "Get an environment instance by name. Signature: `def get_environment(self, env_name: str | None = None) -> EnvironmentInterface`. env_name : str or None, optional — The name of the environment to retrieve. If None, uses the application's current environment (self.app.env).", "category...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..60fe5948 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -141,7 +141,7 @@ class Project: def get_environment(self, env_name: str | None = None) -> EnvironmentInterface: if env_name is None: - ...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S32", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S33", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S34", "shared_functions": 1, "shared_lines": 0 }, { "spec_id"...
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S32", "text": "It handles both internal and user-defined environments. The environment name should correspond to either an internal environment or a user-defined environment in the project configuration. Raises SystemExit: Raised via self.app.abort() if the specified environment name is not found in e...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..9e2042d0 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -148,7 +148,7 @@ class Project: elif env_name in self.config.envs: config = self.config.envs[env_name] else: - s...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S31", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S33", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S34", "shared_functions": 1, "shared_lines": 0 }, { "spec_id"...
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S34", "text": "The method automatically determines the appropriate data directories based on whether the project location is a file or if the environment is isolated", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/core.py", "lines": "158-166", "func...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..34a05503 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -158,7 +158,7 @@ class Project: from hatch.env.internal import is_isolated_environment if self.location.is_file(): - data_d...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S31", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S32", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S33", "shared_functions": 1, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S35", "text": "Environment configuration is finalized with option type validation before creating the environment instance", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/core.py", "lines": "168-168", "function": "Project.get_environment" }, ...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..1034cbda 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -165,9 +165,7 @@ class Project: data_directory = self.app.get_env_directory(environment_type) isolated_data_directory = self.app...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S31", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S32", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S33", "shared_functions": 1, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S37", "text": "Get the effective location path for the project. Returns: Path: The effective project location path. This will be: The explicitly set path (via set_path()) if available; The discovered project root directory (containing pyproject.toml or setup.py) if found; The original path provided du...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..14b22bb2 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -71,7 +71,7 @@ class Project: @property def location(self) -> Path: - return self._explicit_path or self.root or self._path + re...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S29", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S30", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S31", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S38", "text": "Property that provides access to the project's metadata information. Returns: ProjectMetadata: An instance of ProjectMetadata from hatchling.metadata.core. The metadata is initialized with the project location, plugin manager, and raw configuration data.", "category": "behavioral", ...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..9ec77a23 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -380,7 +380,7 @@ class Project: if self._metadata is None: from hatchling.metadata.core import ProjectMetadata - self._...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S39", "shared_functions": 1, "shared_lines": 7 }, { "spec_id": "S29", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S30", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S39", "text": "This property is cached using @cached_property, so the ProjectMetadata instance is created only once per Project instance", "category": "implementation_constraint", "code_mapping": [ { "file": "src/hatch/project/core.py", "lines": "379-385", "function": "Projec...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..74a9e095 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -377,10 +377,9 @@ class Project: @property def metadata(self): - if self._metadata is None: - from hatchling.metadata.core i...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S38", "shared_functions": 1, "shared_lines": 7 }, { "spec_id": "S29", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S30", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S42", "text": "Prepare and set up a Python environment for the project. If the environment doesn't exist, it will be created from scratch. Signature: `def prepare_environment(self, environment: EnvironmentInterface)`. Returns: None: This method performs side effects on the environment but does not ret...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..8ac36088 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -233,6 +233,8 @@ class Project: self.env_metadata.update_dependency_hash(environment, new_dep_hash) + return new_dep_hash + d...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S43", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S44", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S45", "shared_functions": 1, "shared_lines": 0 }, { "spec_id"...
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S43", "text": "Installation can be skipped entirely if environment.skip_install is True", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/core.py", "lines": "187-187", "function": "Project.prepare_environment" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..0f5aebab 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -189,7 +189,7 @@ class Project: with environment.app_status_creation(): environment.create() - if not environme...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S42", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S44", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S45", "shared_functions": 1, "shared_lines": 0 }, { "spec_id"...
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S44", "text": "Pre-install and post-install commands are executed if configured", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/core.py", "lines": "188-217", "function": "Project.prepare_environment" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..eabe966c 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -207,7 +207,7 @@ class Project: else: environment.install_project() - if environment.post_i...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S45", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S42", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S43", "shared_functions": 1, "shared_lines": 0 }, { "spec_id"...
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S45", "text": "The method handles both development mode and regular installation modes", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/core.py", "lines": "203-207", "function": "Project.prepare_environment" } ] }
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..cdf04a9c 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -205,7 +205,7 @@ class Project: if environment.dev_mode: environment.install_project_dev_mode() ...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S44", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S42", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S43", "shared_functions": 1, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S46", "text": "Dependency synchronization is performed automatically when dependencies are out of sync; Environment metadata is updated to track dependency states; keeping dependencies in sync", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/project/core.py", "lin...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..6e633ce2 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -231,7 +231,7 @@ class Project: environment.sync_dependencies() new_dep_hash = environment.dependency_hash() -...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S42", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S43", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S44", "shared_functions": 1, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S48", "text": "Get the raw configuration data for the project. Returns: dict: The raw configuration dictionary containing project metadata and settings. If no pyproject.toml file is found or the project root cannot be located, returns a minimal default configuration with just the project name derived ...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..1f73250a 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -389,7 +389,7 @@ class Project: if self._raw_config is None: if self.root is None or self._project_file_path is None: ...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S50", "shared_functions": 1, "shared_lines": 8 }, { "spec_id": "S49", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S29", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S50", "text": "The configuration is loaded lazily and cached after the first access; Uses the TOML format parser to load the pyproject.toml file", "category": "implementation_constraint", "code_mapping": [ { "file": "src/hatch/project/core.py", "lines": "388-404", "function":...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..fb2710fd 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -398,7 +398,7 @@ class Project: if "project" not in raw_config: raw_config["project"] = {"name": self.location.name}...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S48", "shared_functions": 1, "shared_lines": 8 }, { "spec_id": "S49", "shared_functions": 1, "shared_lines": 7 }, { "spec_id": "S29", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S53", "text": "The search is performed only once and the result is cached for subsequent calls; The search is performed lazily - only when this property is first accessed; The result is cached after the first search to avoid repeated filesystem operations", "category": "implementation_constraint", ...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/project/core.py b/src/hatch/project/core.py index 0beabb5f..c8036520 100644 --- a/src/hatch/project/core.py +++ b/src/hatch/project/core.py @@ -65,7 +65,6 @@ class Project: def root(self) -> Path | None: if not self._root_searched: self._root = self.find_project_root() ...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S29", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S30", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S31", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S58", "text": "Raises ModuleNotFoundError if the specified module cannot be found or imported; ImportError if there are issues importing the module (e.g., circular imports, syntax errors in the module)", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/utils/platform.py",...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/utils/platform.py b/src/hatch/utils/platform.py index e56e7fe0..90355630 100644 --- a/src/hatch/utils/platform.py +++ b/src/hatch/utils/platform.py @@ -291,6 +291,9 @@ class Platform: class LazilyLoadedModules: def __getattr__(self, name: str) -> ModuleType: - module = import_modul...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S56", "shared_functions": 1, "shared_lines": 1 }, { "spec_id": "S57", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S59", "shared_functions": 0, "shared_lines": 0 }, { "spec_id"...
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S61", "text": "Accessor for lazily loading modules that either take multiple milliseconds to import (like `shutil` and `subprocess`) or are not used on all platforms (like `shlex`). Returns: LazilyLoadedModules: An instance that provides lazy access to commonly used modules such as subprocess, shutil,...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/utils/platform.py b/src/hatch/utils/platform.py index e56e7fe0..6a478da4 100644 --- a/src/hatch/utils/platform.py +++ b/src/hatch/utils/platform.py @@ -49,7 +49,7 @@ class Platform: Accessor for lazily loading modules that either take multiple milliseconds to import (like `shuti...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S56", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S57", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S58", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S62", "text": "Cross-platform command execution and process management; Platform-agnostic shell command formatting and execution; Handle cross-platform differences in command execution and path handling", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/utils/platform.py"...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/utils/platform.py b/src/hatch/utils/platform.py index e56e7fe0..3c07e8d0 100644 --- a/src/hatch/utils/platform.py +++ b/src/hatch/utils/platform.py @@ -68,7 +68,7 @@ class Platform: new_command.extend(command[1:]) return new_command elif not shell and is...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S56", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S57", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S58", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S65", "text": "Initialize a StaticAnalysisEnvironment instance. Signature: `def __init__(self, env: EnvironmentInterface) -> None`. env : EnvironmentInterface — The Hatch environment interface that provides access to the project's configuration, metadata, file system paths, and other environment-speci...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/fmt/core.py b/src/hatch/cli/fmt/core.py index bf682ee4..34d97f96 100644 --- a/src/hatch/cli/fmt/core.py +++ b/src/hatch/cli/fmt/core.py @@ -9,8 +9,8 @@ if TYPE_CHECKING: class StaticAnalysisEnvironment: - def __init__(self, env: EnvironmentInterface) -> None: - self.env = env +...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S66", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S67", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S68", "shared_functions": 0, "shared_lines": 0 }, { "spec_id"...
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S66", "text": "Get the default command-line arguments for the static analysis tool. Returns: list[str]: A list of command-line arguments. If no custom config path is set via the 'config-path' environment configuration, returns a list containing ['--config', '<path_to_config_file>'] where the config fi...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/fmt/core.py b/src/hatch/cli/fmt/core.py index bf682ee4..da1c1617 100644 --- a/src/hatch/cli/fmt/core.py +++ b/src/hatch/cli/fmt/core.py @@ -19,9 +19,7 @@ class StaticAnalysisEnvironment: def get_default_args(self) -> list[str]: default_args = [] if not self.config_path:...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S65", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S67", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S68", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S72", "text": "Parameters: preview (bool): Whether to include preview/experimental rules in the configuration. If True, adds PREVIEW_RULES to the stable rule set.", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/cli/fmt/core.py", "lines": "43-47", "function"...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/fmt/core.py b/src/hatch/cli/fmt/core.py index bf682ee4..d11da3a7 100644 --- a/src/hatch/cli/fmt/core.py +++ b/src/hatch/cli/fmt/core.py @@ -43,7 +43,7 @@ class StaticAnalysisEnvironment: # Selected rules rules = list(STABLE_RULES) - if preview or self.linter_preview...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S73", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S74", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S65", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S73", "text": "This method generates and writes a configuration file containing linting and formatting rules. The configuration includes stable rules and optionally preview rules, per-file ignores, and tool-specific settings for flake8-tidy-imports, isort, and flake8-pytest-style.", "category": "beh...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/fmt/core.py b/src/hatch/cli/fmt/core.py index bf682ee4..09f09bd1 100644 --- a/src/hatch/cli/fmt/core.py +++ b/src/hatch/cli/fmt/core.py @@ -53,10 +53,11 @@ class StaticAnalysisEnvironment: # Ignored rules lines.append("[lint.per-file-ignores]") - for glob, ignored_r...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S72", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S74", "shared_functions": 1, "shared_lines": 3 }, { "spec_id": "S65", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S74", "text": "The generated configuration includes project-specific settings like the package name for isort's known-first-party setting, derived from the environment metadata.", "category": "behavioral", "code_mapping": [ { "file": "src/hatch/cli/fmt/core.py", "lines": "68-70", ...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/fmt/core.py b/src/hatch/cli/fmt/core.py index bf682ee4..749dad18 100644 --- a/src/hatch/cli/fmt/core.py +++ b/src/hatch/cli/fmt/core.py @@ -65,7 +65,7 @@ class StaticAnalysisEnvironment: 'ban-relative-imports = "all"', "", "[lint.isort]", - f'...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S73", "shared_functions": 1, "shared_lines": 3 }, { "spec_id": "S72", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S65", "shared_functions": 0, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S76", "text": "This constructor calls the parent TemplateInterface.__init__ method. Parameters: *args: Variable length argument list passed to the parent constructor. **kwargs: Arbitrary keyword arguments passed to the parent constructor.", "category": "behavioral", "code_mapping": [ { "...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/template/default.py b/src/hatch/template/default.py index 21bfbaa6..29c04d7e 100644 --- a/src/hatch/template/default.py +++ b/src/hatch/template/default.py @@ -8,7 +8,8 @@ class DefaultTemplate(TemplateInterface): PLUGIN_NAME = "default" def __init__(self, *args, **kwargs): - s...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S77", "shared_functions": 1, "shared_lines": 0 } ] }
3
pypa__hatch.ff4b4040.test_fmt.782c88a8.lv1
{ "spec_id": "S77", "text": "sets up default configuration values for the template plugin. It configures three main template features: continuous integration, source layout structure, and test generation. The following default plugin configuration values are set: \"ci\": False - Disables continuous integration file...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 --- a/src/hatch/cli/application.py +++ b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/cli/application.py b/src/hatch/cli/application.py index 9ac31076..2856fe0c 100644 +++ a/src/hatch/cli/application.py --- b/src/hatch/cli/application.py @@ -50,40 +50,40 @@ class Application(Terminal): def prepare_environment(self, environment: EnvironmentInterface): self.project.pre...
diff --git a/src/hatch/template/default.py b/src/hatch/template/default.py index 21bfbaa6..f81e6703 100644 --- a/src/hatch/template/default.py +++ b/src/hatch/template/default.py @@ -11,7 +11,7 @@ class DefaultTemplate(TemplateInterface): super().__init__(*args, **kwargs) self.plugin_config.setdefau...
diff --git a/tests/cli/fmt/test_fmt.py b/tests/cli/fmt/test_fmt.py deleted file mode 100644 index 82ed528b..00000000 --- a/tests/cli/fmt/test_fmt.py +++ /dev/null @@ -1,969 +0,0 @@ -from __future__ import annotations - -import pytest - -from hatch.config.constants import ConfigEnvVars -from hatch.project.core import Pr...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S76", "shared_functions": 1, "shared_lines": 0 } ] }
3
pytest-dev__pytest.68016f0e.raises_group.c28bf36a.lv1
{ "spec_id": "S3", "text": "This function specifically unescapes the following characters when they are preceded by a backslash: {}()+-.*?^$[]\\s (curly braces, parentheses, plus, minus, dot, asterisk, question mark, caret, dollar sign, square brackets, whitespace, and backslash itself).", "category": "behavioral...
diff --git a/src/_pytest/assertion/util.py b/src/_pytest/assertion/util.py index f35d83a6f..e1ec22ab4 100644 --- a/src/_pytest/assertion/util.py +++ b/src/_pytest/assertion/util.py @@ -43,12 +43,12 @@ class _HighlightFunc(Protocol): """Apply highlighting to the given source.""" -def dummy_highlighter(sourc...
diff --git a/src/_pytest/assertion/util.py b/src/_pytest/assertion/util.py index f35d83a6f..e1ec22ab4 100644 +++ a/src/_pytest/assertion/util.py --- b/src/_pytest/assertion/util.py @@ -43,12 +43,12 @@ class _HighlightFunc(Protocol): """Apply highlighting to the given source.""" +def dummy_highlighter(sourc...
diff --git a/src/_pytest/raises.py b/src/_pytest/raises.py index 2a53a5a14..4137a233c 100644 --- a/src/_pytest/raises.py +++ b/src/_pytest/raises.py @@ -370,7 +370,7 @@ def is_fully_escaped(s: str) -> bool: def unescape(s: str) -> str: - return re.sub(r"\\([{}()+-.*?^$\[\]\s\\])", r"\1", s) + return re.sub(r...
diff --git a/testing/python/raises_group.py b/testing/python/raises_group.py deleted file mode 100644 index e911ba52c..000000000 --- a/testing/python/raises_group.py +++ /dev/null @@ -1,1358 +0,0 @@ -from __future__ import annotations - -# several expected multi-line strings contain long lines. We don't wanna break the...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S1", "shared_functions": 1, "shared_lines": 2 }, { "spec_id": "S2", "shared_functions": 1, "shared_lines": 2 }, { "spec_id": "S4", "shared_functions": 1, "shared_lines": 2 } ] }
3
pytest-dev__pytest.68016f0e.raises_group.c28bf36a.lv1
{ "spec_id": "S4", "text": "Args:\n s (str): The escaped regular expression string to unescape.\n\nReturns:\n str: The unescaped string with backslash escapes removed from metacharacters.", "category": "structural", "code_mapping": [ { "file": "src/_pytest/raises.py", "lines": "372-373", ...
diff --git a/src/_pytest/assertion/util.py b/src/_pytest/assertion/util.py index f35d83a6f..e1ec22ab4 100644 --- a/src/_pytest/assertion/util.py +++ b/src/_pytest/assertion/util.py @@ -43,12 +43,12 @@ class _HighlightFunc(Protocol): """Apply highlighting to the given source.""" -def dummy_highlighter(sourc...
diff --git a/src/_pytest/assertion/util.py b/src/_pytest/assertion/util.py index f35d83a6f..e1ec22ab4 100644 +++ a/src/_pytest/assertion/util.py --- b/src/_pytest/assertion/util.py @@ -43,12 +43,12 @@ class _HighlightFunc(Protocol): """Apply highlighting to the given source.""" +def dummy_highlighter(sourc...
diff --git a/src/_pytest/raises.py b/src/_pytest/raises.py index 2a53a5a14..b8a44b06e 100644 --- a/src/_pytest/raises.py +++ b/src/_pytest/raises.py @@ -369,8 +369,8 @@ def is_fully_escaped(s: str) -> bool: ) -def unescape(s: str) -> str: - return re.sub(r"\\([{}()+-.*?^$\[\]\s\\])", r"\1", s) +def unescape...
diff --git a/testing/python/raises_group.py b/testing/python/raises_group.py deleted file mode 100644 index e911ba52c..000000000 --- a/testing/python/raises_group.py +++ /dev/null @@ -1,1358 +0,0 @@ -from __future__ import annotations - -# several expected multi-line strings contain long lines. We don't wanna break the...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S1", "shared_functions": 1, "shared_lines": 2 }, { "spec_id": "S2", "shared_functions": 1, "shared_lines": 2 }, { "spec_id": "S3", "shared_functions": 1, "shared_lines": 2 } ] }
3
python__mypy.8e2ce962.testconstraints.db380fe7.lv1
{ "spec_id": "S1", "text": "Check equality between two Constraint objects. Two constraints are considered equal if they have the same type variable ID, the same operation (SUBTYPE_OF or SUPERTYPE_OF), and the same target type. Returns: bool: True if the other object is a Constraint with identical type_var, op, and ...
diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index 03ebc5058..edb6d4fc2 100644 --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -161,49 +161,49 @@ from mypy.typeops import ( tuple_fallback, type_object_type, ) -from mypy.types import ( - LITERAL_TYPE_NAMES, - TUPLE_LIKE_INSTANCE_NAMES, - Any...
diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index 03ebc5058..edb6d4fc2 100644 +++ a/mypy/checkexpr.py --- b/mypy/checkexpr.py @@ -161,49 +161,49 @@ from mypy.typeops import ( tuple_fallback, type_object_type, ) +from mypy.types import ( + LITERAL_TYPE_NAMES, + TUPLE_LIKE_INSTANCE_NAMES, + Any...
diff --git a/mypy/constraints.py b/mypy/constraints.py index 96c0c7cca..a848ee73a 100644 --- a/mypy/constraints.py +++ b/mypy/constraints.py @@ -104,7 +104,9 @@ class Constraint: def __eq__(self, other: object) -> bool: if not isinstance(other, Constraint): return False - return (self....
diff --git a/mypy/test/testconstraints.py b/mypy/test/testconstraints.py deleted file mode 100644 index 277694a32..000000000 --- a/mypy/test/testconstraints.py +++ /dev/null @@ -1,134 +0,0 @@ -from __future__ import annotations - -from mypy.constraints import SUBTYPE_OF, SUPERTYPE_OF, Constraint, infer_constraints -fro...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S2", "shared_functions": 1, "shared_lines": 3 }, { "spec_id": "S3", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S4", "shared_functions": 0, "shared_lines": 0 } ] }
3
python__mypy.8e2ce962.testconstraints.db380fe7.lv1
{ "spec_id": "S3", "text": "Hash Consistency: Ensure hash values are consistent with equality semantics for use in collections and constraint solving. Maintain hash-equality contract for constraint deduplication.", "category": "behavioral", "code_mapping": [ { "file": "mypy/constraints.py", "lin...
diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index 03ebc5058..edb6d4fc2 100644 --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -161,49 +161,49 @@ from mypy.typeops import ( tuple_fallback, type_object_type, ) -from mypy.types import ( - LITERAL_TYPE_NAMES, - TUPLE_LIKE_INSTANCE_NAMES, - Any...
diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index 03ebc5058..edb6d4fc2 100644 +++ a/mypy/checkexpr.py --- b/mypy/checkexpr.py @@ -161,49 +161,49 @@ from mypy.typeops import ( tuple_fallback, type_object_type, ) +from mypy.types import ( + LITERAL_TYPE_NAMES, + TUPLE_LIKE_INSTANCE_NAMES, + Any...
diff --git a/mypy/constraints.py b/mypy/constraints.py index 96c0c7cca..5e4c5cb3c 100644 --- a/mypy/constraints.py +++ b/mypy/constraints.py @@ -99,7 +99,7 @@ class Constraint: return f"{self.type_var} {op_str} {self.target}" def __hash__(self) -> int: - return hash((self.type_var, self.op, self....
diff --git a/mypy/test/testconstraints.py b/mypy/test/testconstraints.py deleted file mode 100644 index 277694a32..000000000 --- a/mypy/test/testconstraints.py +++ /dev/null @@ -1,134 +0,0 @@ -from __future__ import annotations - -from mypy.constraints import SUBTYPE_OF, SUPERTYPE_OF, Constraint, infer_constraints -fro...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S4", "shared_functions": 0, "shared_lines": 2 }, { "spec_id": "S1", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S2", "shared_functions": 0, "shared_lines": 0 } ] }
3
python__mypy.8e2ce962.testconstraints.db380fe7.lv1
{ "spec_id": "S4", "text": "A representation of a type constraint. It can be either T <: type or T :> type (T is a type variable). Attributes: type_var: TypeVarId, op, target: Type. Constraint Representation: Handle constraints that represent relationships between type variables and target types (subtype/supertype ...
diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index 03ebc5058..edb6d4fc2 100644 --- a/mypy/checkexpr.py +++ b/mypy/checkexpr.py @@ -161,49 +161,49 @@ from mypy.typeops import ( tuple_fallback, type_object_type, ) -from mypy.types import ( - LITERAL_TYPE_NAMES, - TUPLE_LIKE_INSTANCE_NAMES, - Any...
diff --git a/mypy/checkexpr.py b/mypy/checkexpr.py index 03ebc5058..edb6d4fc2 100644 +++ a/mypy/checkexpr.py --- b/mypy/checkexpr.py @@ -161,49 +161,49 @@ from mypy.typeops import ( tuple_fallback, type_object_type, ) +from mypy.types import ( + LITERAL_TYPE_NAMES, + TUPLE_LIKE_INSTANCE_NAMES, + Any...
diff --git a/mypy/constraints.py b/mypy/constraints.py index 96c0c7cca..59e74b99b 100644 --- a/mypy/constraints.py +++ b/mypy/constraints.py @@ -93,9 +93,9 @@ class Constraint: self.extra_tvars: list[TypeVarLikeType] = [] def __repr__(self) -> str: - op_str = "<:" + op_str = ":>" ...
diff --git a/mypy/test/testconstraints.py b/mypy/test/testconstraints.py deleted file mode 100644 index 277694a32..000000000 --- a/mypy/test/testconstraints.py +++ /dev/null @@ -1,134 +0,0 @@ -from __future__ import annotations - -from mypy.constraints import SUBTYPE_OF, SUPERTYPE_OF, Constraint, infer_constraints -fro...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S3", "shared_functions": 0, "shared_lines": 2 }, { "spec_id": "S1", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S2", "shared_functions": 0, "shared_lines": 0 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_arff_parser.ecde431a.lv1
{ "spec_id": "S4", "text": "target_names : list of str - The list of column names from the dataframe to be used as targets. These columns will populate the target `y`. Can be empty if no targets are needed.", "category": "structural", "code_mapping": [ { "file": "sklearn/datasets/_arff_parser.py", ...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 +++ a/sklearn/datasets/_arff_parser.py --- b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..6b2056a022 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -72,7 +72,7 @@ def _sparse_data_to_array( return y -def _post_process_frame(frame, feature_names, target_names): ...
diff --git a/sklearn/datasets/tests/test_arff_parser.py b/sklearn/datasets/tests/test_arff_parser.py deleted file mode 100644 index c4f9e3eb00..0000000000 --- a/sklearn/datasets/tests/test_arff_parser.py +++ /dev/null @@ -1,284 +0,0 @@ -import textwrap -from io import BytesIO - -import pytest - -from sklearn.datasets._...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S7", "shared_functions": 1, "shared_lines": 29 }, { "spec_id": "S6", "shared_functions": 1, "shared_lines": 6 }, { "spec_id": "S5", "shared_functions": 1, "shared_lines": 1 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_arff_parser.ecde431a.lv1
{ "spec_id": "S5", "text": "X : pandas.DataFrame - A dataframe containing only the feature columns specified in `feature_names`. The column order matches the order in `feature_names`.", "category": "behavioral", "code_mapping": [ { "file": "sklearn/datasets/_arff_parser.py", "lines": "96", ...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 +++ a/sklearn/datasets/_arff_parser.py --- b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..36b3a19a0d 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -94,7 +94,7 @@ def _post_process_frame(frame, feature_names, target_names): y : {series, dataframe} or None ...
diff --git a/sklearn/datasets/tests/test_arff_parser.py b/sklearn/datasets/tests/test_arff_parser.py deleted file mode 100644 index c4f9e3eb00..0000000000 --- a/sklearn/datasets/tests/test_arff_parser.py +++ /dev/null @@ -1,284 +0,0 @@ -import textwrap -from io import BytesIO - -import pytest - -from sklearn.datasets._...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S4", "shared_functions": 1, "shared_lines": 1 }, { "spec_id": "S7", "shared_functions": 1, "shared_lines": 1 }, { "spec_id": "S6", "shared_functions": 1, "shared_lines": 0 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_arff_parser.ecde431a.lv1
{ "spec_id": "S6", "text": "y : {pandas.Series, pandas.DataFrame, None} - The target data extracted from the input dataframe: pandas.Series if `target_names` contains exactly one column name, pandas.DataFrame if `target_names` contains two or more column names, None if `target_names` is empty", "category": "behav...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 +++ a/sklearn/datasets/_arff_parser.py --- b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..b9f8156061 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -95,9 +95,9 @@ def _post_process_frame(frame, feature_names, target_names): The series or dataframe containing th...
diff --git a/sklearn/datasets/tests/test_arff_parser.py b/sklearn/datasets/tests/test_arff_parser.py deleted file mode 100644 index c4f9e3eb00..0000000000 --- a/sklearn/datasets/tests/test_arff_parser.py +++ /dev/null @@ -1,284 +0,0 @@ -import textwrap -from io import BytesIO - -import pytest - -from sklearn.datasets._...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S4", "shared_functions": 1, "shared_lines": 6 }, { "spec_id": "S7", "shared_functions": 1, "shared_lines": 6 }, { "spec_id": "S5", "shared_functions": 1, "shared_lines": 0 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_arff_parser.ecde431a.lv1
{ "spec_id": "S7", "text": "This function assumes that all column names in `feature_names` and `target_names` exist in the input dataframe. No validation is performed to check for missing columns.", "category": "behavioral", "code_mapping": [ { "file": "sklearn/datasets/_arff_parser.py", "lines"...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 +++ a/sklearn/datasets/_arff_parser.py --- b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..6390657d62 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -94,6 +94,13 @@ def _post_process_frame(frame, feature_names, target_names): y : {series, dataframe} or None ...
diff --git a/sklearn/datasets/tests/test_arff_parser.py b/sklearn/datasets/tests/test_arff_parser.py deleted file mode 100644 index c4f9e3eb00..0000000000 --- a/sklearn/datasets/tests/test_arff_parser.py +++ /dev/null @@ -1,284 +0,0 @@ -import textwrap -from io import BytesIO - -import pytest - -from sklearn.datasets._...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S4", "shared_functions": 1, "shared_lines": 29 }, { "spec_id": "S6", "shared_functions": 1, "shared_lines": 6 }, { "spec_id": "S5", "shared_functions": 1, "shared_lines": 1 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_arff_parser.ecde431a.lv1
{ "spec_id": "S8", "text": "Load a compressed ARFF file using a given parser. This function serves as a dispatcher that routes to either the LIAC-ARFF parser or the pandas parser based on the specified parser type.", "category": "behavioral", "code_mapping": [ { "file": "sklearn/datasets/_arff_parser....
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 +++ a/sklearn/datasets/_arff_parser.py --- b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..be6e4b8059 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -520,6 +520,19 @@ def load_arff_from_gzip_file( `output_array_type == "pandas"`. """ if parser == "liac...
diff --git a/sklearn/datasets/tests/test_arff_parser.py b/sklearn/datasets/tests/test_arff_parser.py deleted file mode 100644 index c4f9e3eb00..0000000000 --- a/sklearn/datasets/tests/test_arff_parser.py +++ /dev/null @@ -1,284 +0,0 @@ -import textwrap -from io import BytesIO - -import pytest - -from sklearn.datasets._...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S15", "shared_functions": 1, "shared_lines": 79 }, { "spec_id": "S16", "shared_functions": 1, "shared_lines": 79 }, { "spec_id": "S19", "shared_functions": 1, "shared_lines": 18 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_arff_parser.ecde431a.lv1
{ "spec_id": "S15", "text": "shape : tuple of int, optional, default=None - The expected shape of the data. Required when using \"liac-arff\" parser with generator-based data loading.", "category": "structural", "code_mapping": [ { "file": "sklearn/datasets/_arff_parser.py", "lines": "463-541", ...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 +++ a/sklearn/datasets/_arff_parser.py --- b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..51a8698ca6 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -467,7 +467,7 @@ def load_arff_from_gzip_file( openml_columns_info, feature_names_to_select, target_names_t...
diff --git a/sklearn/datasets/tests/test_arff_parser.py b/sklearn/datasets/tests/test_arff_parser.py deleted file mode 100644 index c4f9e3eb00..0000000000 --- a/sklearn/datasets/tests/test_arff_parser.py +++ /dev/null @@ -1,284 +0,0 @@ -import textwrap -from io import BytesIO - -import pytest - -from sklearn.datasets._...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S16", "shared_functions": 1, "shared_lines": 79 }, { "spec_id": "S8", "shared_functions": 1, "shared_lines": 79 }, { "spec_id": "S19", "shared_functions": 1, "shared_lines": 18 }, { "spec_i...
3
scikit-learn__scikit-learn.5741bac9.test_arff_parser.ecde431a.lv1
{ "spec_id": "S16", "text": "read_csv_kwargs : dict, optional, default=None - Additional keyword arguments to pass to pandas.read_csv when using the \"pandas\" parser. Allows overriding default CSV reading options.", "category": "structural", "code_mapping": [ { "file": "sklearn/datasets/_arff_parser....
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 +++ a/sklearn/datasets/_arff_parser.py --- b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..634469fa6c 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -468,7 +468,7 @@ def load_arff_from_gzip_file( feature_names_to_select, target_names_to_select, shape=None,...
diff --git a/sklearn/datasets/tests/test_arff_parser.py b/sklearn/datasets/tests/test_arff_parser.py deleted file mode 100644 index c4f9e3eb00..0000000000 --- a/sklearn/datasets/tests/test_arff_parser.py +++ /dev/null @@ -1,284 +0,0 @@ -import textwrap -from io import BytesIO - -import pytest - -from sklearn.datasets._...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S15", "shared_functions": 1, "shared_lines": 79 }, { "spec_id": "S8", "shared_functions": 1, "shared_lines": 79 }, { "spec_id": "S19", "shared_functions": 1, "shared_lines": 18 }, { "spec_i...
3
scikit-learn__scikit-learn.5741bac9.test_arff_parser.ecde431a.lv1
{ "spec_id": "S19", "text": "frame : dataframe or None - A dataframe containing both `X` and `y` combined. Only returned when output_type is \"pandas\", otherwise None.", "category": "behavioral", "code_mapping": [ { "file": "sklearn/datasets/_arff_parser.py", "lines": "524-541", "function...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 +++ a/sklearn/datasets/_arff_parser.py --- b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..ad75dbb58c 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -520,7 +520,7 @@ def load_arff_from_gzip_file( `output_array_type == "pandas"`. """ if parser == "liac-...
diff --git a/sklearn/datasets/tests/test_arff_parser.py b/sklearn/datasets/tests/test_arff_parser.py deleted file mode 100644 index c4f9e3eb00..0000000000 --- a/sklearn/datasets/tests/test_arff_parser.py +++ /dev/null @@ -1,284 +0,0 @@ -import textwrap -from io import BytesIO - -import pytest - -from sklearn.datasets._...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S15", "shared_functions": 1, "shared_lines": 18 }, { "spec_id": "S16", "shared_functions": 1, "shared_lines": 18 }, { "spec_id": "S20", "shared_functions": 1, "shared_lines": 18 }, { "spec_...
3
scikit-learn__scikit-learn.5741bac9.test_arff_parser.ecde431a.lv1
{ "spec_id": "S20", "text": "categories : dict or None - A dictionary mapping categorical feature names to their possible categories. Only returned when output_type is not \"pandas\", otherwise None.", "category": "behavioral", "code_mapping": [ { "file": "sklearn/datasets/_arff_parser.py", "lin...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 +++ a/sklearn/datasets/_arff_parser.py --- b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..1d7860e359 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -529,7 +529,7 @@ def load_arff_from_gzip_file( shape, ) elif parser == "pandas": - retur...
diff --git a/sklearn/datasets/tests/test_arff_parser.py b/sklearn/datasets/tests/test_arff_parser.py deleted file mode 100644 index c4f9e3eb00..0000000000 --- a/sklearn/datasets/tests/test_arff_parser.py +++ /dev/null @@ -1,284 +0,0 @@ -import textwrap -from io import BytesIO - -import pytest - -from sklearn.datasets._...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S15", "shared_functions": 1, "shared_lines": 18 }, { "spec_id": "S16", "shared_functions": 1, "shared_lines": 18 }, { "spec_id": "S19", "shared_functions": 1, "shared_lines": 18 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_arff_parser.ecde431a.lv1
{ "spec_id": "S21", "text": "Raises ValueError if an unknown parser is specified (not \"liac-arff\" or \"pandas\").", "category": "behavioral", "code_mapping": [ { "file": "sklearn/datasets/_arff_parser.py", "lines": "538-541", "function": "load_arff_from_gzip_file" } ] }
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..4a43b137a0 100644 +++ a/sklearn/datasets/_arff_parser.py --- b/sklearn/datasets/_arff_parser.py @@ -14,9 +14,9 @@ import scipy as sp from sklearn.externals import _arff from sklearn.externals._arff import ArffSparseDa...
diff --git a/sklearn/datasets/_arff_parser.py b/sklearn/datasets/_arff_parser.py index 311dc6d8db..449d598d0e 100644 --- a/sklearn/datasets/_arff_parser.py +++ b/sklearn/datasets/_arff_parser.py @@ -519,7 +519,7 @@ def load_arff_from_gzip_file( The names of the features that are categorical. `None` if ...
diff --git a/sklearn/datasets/tests/test_arff_parser.py b/sklearn/datasets/tests/test_arff_parser.py deleted file mode 100644 index c4f9e3eb00..0000000000 --- a/sklearn/datasets/tests/test_arff_parser.py +++ /dev/null @@ -1,284 +0,0 @@ -import textwrap -from io import BytesIO - -import pytest - -from sklearn.datasets._...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S15", "shared_functions": 1, "shared_lines": 4 }, { "spec_id": "S16", "shared_functions": 1, "shared_lines": 4 }, { "spec_id": "S19", "shared_functions": 1, "shared_lines": 4 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S1", "text": "The PredictionErrorDisplay class stores y_true and y_pred as instance attributes upon initialization.", "category": "structural", "code_mapping": [ { "file": "sklearn/metrics/_plot/regression.py", "lines": "81-83", "function": "__init__" } ] }
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..fd72dca9b6 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -79,8 +79,16 @@ class PredictionErrorDisplay: """ def __init__(self, *, y_true, y_pred): - ...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S12", "shared_functions": 0, "shared_lines": 0 }, { "spec_id"...
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S3", "text": "from_estimator must delegate to from_predictions after obtaining predictions, passing through all visualization parameters (kind, subsample, random_state, ax, scatter_kwargs, line_kwargs).", "category": "behavioral", "code_mapping": [ { "file": "sklearn/metrics/_plot/regres...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..06d4ae6950 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -285,7 +285,6 @@ class PredictionErrorDisplay: y_pred=y_pred, kind=kind, ...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S13", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S2", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S1", "shared_functions": 0, "shared_lines": 0 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S4", "text": "The method must validate subsample parameter with specific error messages: for integer subsample values <= 0, raise ValueError with message \"When an integer, subsample={value} should be positive.\"; for float subsample values, check if in the open interval (0, 1) and raise ValueError wi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..1a183cb2e3 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -388,7 +388,7 @@ class PredictionErrorDisplay: f"When an integer, subsample={subsample} s...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S13", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S15", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S5", "shared_functions": 1, "shared_lines": 0 }, { "spec_id":...
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S5", "text": "When subsample is a float, convert it to an integer sample count by multiplying with the dataset size: subsample = int(n_samples * subsample).", "category": "behavioral", "code_mapping": [ { "file": "sklearn/metrics/_plot/regression.py", "lines": "382", "functio...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..3991613a68 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -393,7 +393,7 @@ class PredictionErrorDisplay: f"When a floating-point, subsample={subsam...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S13", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S15", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S4", "shared_functions": 1, "shared_lines": 0 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S7", "text": "After any subsampling, create a PredictionErrorDisplay instance using the constructor (passing y_true and y_pred), then call its plot method with the provided parameters (ax, kind, scatter_kwargs, line_kwargs) and return the result.", "category": "behavioral", "code_mapping": [ {...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..95d772034b 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -400,10 +400,9 @@ class PredictionErrorDisplay: y_true = _safe_indexing(y_true, indices, axis=0) ...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S13", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S15", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S4", "shared_functions": 1, "shared_lines": 0 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S8", "text": "Default style parameters: scatter plot should use color=\"tab:blue\" and alpha=0.8 by default; reference line should use color=\"black\", alpha=0.7, and linestyle=\"--\" by default. User-provided scatter_kwargs and line_kwargs should be merged with these defaults, with user values taking...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..481b22f79d 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -140,7 +140,7 @@ class PredictionErrorDisplay: if line_kwargs is None: line_kwargs = {} ...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S12", "shared_functions": 1, "shared_lines": 0 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S10", "text": "The plot method must validate that kind parameter is one of \"actual_vs_predicted\" or \"residual_vs_predicted\", raising ValueError if not.", "category": "behavioral", "code_mapping": [ { "file": "sklearn/metrics/_plot/regression.py", "lines": "127-132", "func...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..2352a67b90 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -127,7 +127,7 @@ class PredictionErrorDisplay: check_matplotlib_support(f"{self.__class__.__name__}.p...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S11", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S12", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S19", "shared_functions": 1, "shared_lines": 0 }, { "spec_id"...
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S11", "text": "When kind=\"actual_vs_predicted\", draw a diagonal reference line from (min_value, min_value) to (max_value, max_value) where min_value and max_value are computed from both y_true and y_pred, plot y_pred on x-axis and y_true on y-axis with labels \"Predicted values\" and \"Actual values...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..8362fec49e 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -166,8 +166,8 @@ class PredictionErrorDisplay: # force to have a squared axis ax.s...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S12", "shared_functions": 1, "shared_lines": 22 }, { "spec_id": "S10", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S19", "shared_functions": 1, "shared_lines": 0 }, { "spec_id...
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S12", "text": "The plot method must store the created matplotlib artists as instance attributes: scatter_ for the scatter plot, line_ for the reference line, ax_ for the axes, and figure_ for the figure.", "category": "behavioral", "code_mapping": [ { "file": "sklearn/metrics/_plot/regre...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..7fbc88907e 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -182,7 +182,6 @@ class PredictionErrorDisplay: ax.set(xlabel=xlabel, ylabel=ylabel) self.a...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S11", "shared_functions": 1, "shared_lines": 22 }, { "spec_id": "S10", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S19", "shared_functions": 1, "shared_lines": 0 }, { "spec_id...
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S13", "text": "Both from_estimator and from_predictions must call check_matplotlib_support with the appropriate caller name before performing any operations.", "category": "behavioral", "code_mapping": [ { "file": "sklearn/metrics/_plot/regression.py", "lines": "277", "functi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..e15cbb582b 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -377,10 +377,10 @@ class PredictionErrorDisplay: >>> disp = PredictionErrorDisplay.from_predictions(y...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S15", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S2", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S3", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": ...
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S15", "text": "from_predictions must use check_random_state to convert the random_state parameter into a RandomState instance before using it for sampling.", "category": "behavioral", "code_mapping": [ { "file": "sklearn/metrics/_plot/regression.py", "lines": "369", "function...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..b32bc638da 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -379,7 +379,10 @@ class PredictionErrorDisplay: """ check_matplotlib_support(f"{cls.__name__...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S13", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S4", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S5", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": ...
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S19", "text": "The plot method must create a new figure and axes if ax parameter is None.", "category": "behavioral", "code_mapping": [ { "file": "sklearn/metrics/_plot/regression.py", "lines": "150-151", "function": "plot" } ] }
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..999195076c 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -150,7 +150,7 @@ class PredictionErrorDisplay: line_kwargs = {**default_line_kwargs, **line_kwargs} ...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S12", "shared_functions": 1, "shared_lines": 0 } ] }
3
scikit-learn__scikit-learn.5741bac9.test_predict_error_display.11cc0c3a.lv1
{ "spec_id": "S20", "text": "The plot method must return self to allow method chaining.", "category": "behavioral", "code_mapping": [ { "file": "sklearn/metrics/_plot/regression.py", "lines": "180", "function": "plot" } ] }
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 --- a/sklearn/calibration.py +++ b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) -from sklearn.utils._plotting import ( - _BinaryClassi...
diff --git a/sklearn/calibration.py b/sklearn/calibration.py index eaadc80cd5..81d68d3986 100644 +++ a/sklearn/calibration.py --- b/sklearn/calibration.py @@ -43,10 +43,10 @@ from sklearn.utils._param_validation import ( StrOptions, validate_params, ) +from sklearn.utils._plotting import ( + _BinaryClassi...
diff --git a/sklearn/metrics/_plot/regression.py b/sklearn/metrics/_plot/regression.py index 505f5cc2f6..b89938986c 100644 --- a/sklearn/metrics/_plot/regression.py +++ b/sklearn/metrics/_plot/regression.py @@ -184,7 +184,12 @@ class PredictionErrorDisplay: self.ax_ = ax self.figure_ = ax.figure - ...
diff --git a/sklearn/metrics/_plot/tests/test_predict_error_display.py b/sklearn/metrics/_plot/tests/test_predict_error_display.py deleted file mode 100644 index b2cb888e88..0000000000 --- a/sklearn/metrics/_plot/tests/test_predict_error_display.py +++ /dev/null @@ -1,169 +0,0 @@ -import pytest -from numpy.testing impo...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S12", "shared_functions": 1, "shared_lines": 0 } ] }
3
sphinx-doc__sphinx.e347e59c.test_command_line.039d53a2.lv1
{ "spec_id": "S5", "text": "Returns: int: Exit code indicating build success or failure: 0: Build completed successfully, 1: Build failed due to error (insufficient arguments, build errors, etc.)", "category": "behavioral", "code_mapping": [ { "file": "/testbed/sphinx/cmd/make_mode.py", "lines":...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs -def get_parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser( - ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 +++ a/sphinx/cmd/build.py --- b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs +def get_parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser( + ...
diff --git a/sphinx/cmd/make_mode.py b/sphinx/cmd/make_mode.py index 97eceda19..1097427ce 100644 --- a/sphinx/cmd/make_mode.py +++ b/sphinx/cmd/make_mode.py @@ -219,5 +219,11 @@ def run_make_mode(args: Sequence[str]) -> int: make = Make(source_dir=args[1], build_dir=args[2], opts=args[3:]) run_method = f'buil...
diff --git a/tests/test_command_line.py b/tests/test_command_line.py deleted file mode 100644 index 3f35a495f..000000000 --- a/tests/test_command_line.py +++ /dev/null @@ -1,236 +0,0 @@ -from __future__ import annotations - -import sys -from pathlib import Path -from typing import TYPE_CHECKING - -import pytest - -from...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S1", "shared_functions": 1, "shared_lines": 16 }, { "spec_id": "S9", "shared_functions": 1, "shared_lines": 16 }, { "spec_id": "S6", "shared_functions": 1, "shared_lines": 9 }, { "spec_id":...
3
sphinx-doc__sphinx.e347e59c.test_command_line.039d53a2.lv1
{ "spec_id": "S6", "text": "Requires at least 3 arguments (builder, source dir, build dir). Returns 1 with error message 'Error: at least 3 arguments (builder, source dir, build dir) are required.' printed to stderr when insufficient arguments provided.", "category": "behavioral", "code_mapping": [ { ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs -def get_parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser( - ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 +++ a/sphinx/cmd/build.py --- b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs +def get_parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser( + ...
diff --git a/sphinx/cmd/make_mode.py b/sphinx/cmd/make_mode.py index 97eceda19..23e08d352 100644 --- a/sphinx/cmd/make_mode.py +++ b/sphinx/cmd/make_mode.py @@ -209,7 +209,7 @@ def run_generic_build( def run_make_mode(args: Sequence[str]) -> int: if len(args) < 3: print( - 'Error: at least 3 a...
diff --git a/tests/test_command_line.py b/tests/test_command_line.py deleted file mode 100644 index 3f35a495f..000000000 --- a/tests/test_command_line.py +++ /dev/null @@ -1,236 +0,0 @@ -from __future__ import annotations - -import sys -from pathlib import Path -from typing import TYPE_CHECKING - -import pytest - -from...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S1", "shared_functions": 1, "shared_lines": 9 }, { "spec_id": "S5", "shared_functions": 1, "shared_lines": 9 }, { "spec_id": "S9", "shared_functions": 1, "shared_lines": 9 } ] }
3
sphinx-doc__sphinx.e347e59c.test_command_line.039d53a2.lv1
{ "spec_id": "S7", "text": "Special builders like 'latexpdf', 'latexpdfja', 'info', 'clean', and 'gettext' have dedicated build methods with custom logic", "category": "behavioral", "code_mapping": [ { "file": "/testbed/sphinx/cmd/make_mode.py", "lines": "217-221", "function": "run_make_mo...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs -def get_parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser( - ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 +++ a/sphinx/cmd/build.py --- b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs +def get_parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser( + ...
diff --git a/sphinx/cmd/make_mode.py b/sphinx/cmd/make_mode.py index 97eceda19..fd9693010 100644 --- a/sphinx/cmd/make_mode.py +++ b/sphinx/cmd/make_mode.py @@ -218,6 +218,8 @@ def run_make_mode(args: Sequence[str]) -> int: builder_name = args[0] make = Make(source_dir=args[1], build_dir=args[2], opts=args[3:...
diff --git a/tests/test_command_line.py b/tests/test_command_line.py deleted file mode 100644 index 3f35a495f..000000000 --- a/tests/test_command_line.py +++ /dev/null @@ -1,236 +0,0 @@ -from __future__ import annotations - -import sys -from pathlib import Path -from typing import TYPE_CHECKING - -import pytest - -from...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S1", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S5", "shared_functions": 1, "shared_lines": 5 }, { "spec_id": "S9", "shared_functions": 1, "shared_lines": 5 } ] }
3
sphinx-doc__sphinx.e347e59c.test_command_line.039d53a2.lv1
{ "spec_id": "S9", "text": "This function does not import heavy Sphinx modules for fast startup performance", "category": "implementation_constraint", "code_mapping": [ { "file": "/testbed/sphinx/cmd/make_mode.py", "lines": "208-223", "function": "run_make_mode" } ] }
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs -def get_parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser( - ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 +++ a/sphinx/cmd/build.py --- b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs +def get_parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser( + ...
diff --git a/sphinx/cmd/make_mode.py b/sphinx/cmd/make_mode.py index 97eceda19..3fa006ecb 100644 --- a/sphinx/cmd/make_mode.py +++ b/sphinx/cmd/make_mode.py @@ -207,6 +207,7 @@ def run_generic_build( def run_make_mode(args: Sequence[str]) -> int: + from sphinx.application import Sphinx # Load heavy module ...
diff --git a/tests/test_command_line.py b/tests/test_command_line.py deleted file mode 100644 index 3f35a495f..000000000 --- a/tests/test_command_line.py +++ /dev/null @@ -1,236 +0,0 @@ -from __future__ import annotations - -import sys -from pathlib import Path -from typing import TYPE_CHECKING - -import pytest - -from...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S1", "shared_functions": 1, "shared_lines": 16 }, { "spec_id": "S5", "shared_functions": 1, "shared_lines": 16 }, { "spec_id": "S6", "shared_functions": 1, "shared_lines": 9 }, { "spec_id":...
3
sphinx-doc__sphinx.e347e59c.test_command_line.039d53a2.lv1
{ "spec_id": "S12", "text": "Returns: argparse.ArgumentParser: A fully configured argument parser with all sphinx-build command-line options defined.", "category": "structural", "code_mapping": [ { "file": "/testbed/sphinx/cmd/build.py", "lines": "291", "function": "get_parser" } ] }
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs -def get_parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser( - ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 +++ a/sphinx/cmd/build.py --- b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs +def get_parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser( + ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..b5dd36fe5 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -265,13 +265,6 @@ def get_parser() -> argparse.ArgumentParser: help=__('turn warnings into errors'), ) group.add_argument('--keep-going', action='store_true'...
diff --git a/tests/test_command_line.py b/tests/test_command_line.py deleted file mode 100644 index 3f35a495f..000000000 --- a/tests/test_command_line.py +++ /dev/null @@ -1,236 +0,0 @@ -from __future__ import annotations - -import sys -from pathlib import Path -from typing import TYPE_CHECKING - -import pytest - -from...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 1, "shared_lines": 1 }, { "spec_id": "S16", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S17", "shared_functions": 1, "shared_lines": 0 }, { "spec_id"...
3
sphinx-doc__sphinx.e347e59c.test_command_line.039d53a2.lv1
{ "spec_id": "S20", "text": "The parser uses internationalized help strings via the __() function", "category": "implementation_constraint", "code_mapping": [ { "file": "/testbed/sphinx/cmd/build.py", "lines": "70-289", "function": "get_parser" } ] }
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs -def get_parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser( - ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 +++ a/sphinx/cmd/build.py --- b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs +def get_parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser( + ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..769b721e9 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -118,7 +118,7 @@ def get_parser() -> argparse.ArgumentParser: metavar='BUILDER', dest='builder', default='html', - help=__("builder to use (de...
diff --git a/tests/test_command_line.py b/tests/test_command_line.py deleted file mode 100644 index 3f35a495f..000000000 --- a/tests/test_command_line.py +++ /dev/null @@ -1,236 +0,0 @@ -from __future__ import annotations - -import sys -from pathlib import Path -from typing import TYPE_CHECKING - -import pytest - -from...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 1, "shared_lines": 220 }, { "spec_id": "S17", "shared_functions": 1, "shared_lines": 47 }, { "spec_id": "S16", "shared_functions": 1, "shared_lines": 22 }, { "spec...
3
sphinx-doc__sphinx.e347e59c.test_command_line.039d53a2.lv1
{ "spec_id": "S22", "text": "The parser program name is automatically set to 'sphinx-build' if needed", "category": "behavioral", "code_mapping": [ { "file": "/testbed/sphinx/cmd/build.py", "lines": "287-288", "function": "get_parser" } ] }
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs -def get_parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser( - ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 +++ a/sphinx/cmd/build.py --- b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs +def get_parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser( + ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..6cc56c1ff 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -282,7 +282,7 @@ def get_parser() -> argparse.ArgumentParser: help=__('raise an exception on warnings'), ) - if parser.prog == '__main__.py': + if parser....
diff --git a/tests/test_command_line.py b/tests/test_command_line.py deleted file mode 100644 index 3f35a495f..000000000 --- a/tests/test_command_line.py +++ /dev/null @@ -1,236 +0,0 @@ -from __future__ import annotations - -import sys -from pathlib import Path -from typing import TYPE_CHECKING - -import pytest - -from...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 1, "shared_lines": 2 }, { "spec_id": "S20", "shared_functions": 1, "shared_lines": 2 }, { "spec_id": "S12", "shared_functions": 1, "shared_lines": 0 } ] }
3
sphinx-doc__sphinx.e347e59c.test_command_line.039d53a2.lv1
{ "spec_id": "S24", "text": "The parser includes version information from sphinx.__display_version__", "category": "structural", "code_mapping": [ { "file": "/testbed/sphinx/cmd/build.py", "lines": "80-85", "function": "get_parser" } ] }
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs -def get_parser() -> argparse.ArgumentParser: - parser = argparse.ArgumentParser( - ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..2fc155c74 100644 +++ a/sphinx/cmd/build.py --- b/sphinx/cmd/build.py @@ -67,225 +67,225 @@ def jobs_argument(value: str) -> int: return jobs +def get_parser() -> argparse.ArgumentParser: + parser = argparse.ArgumentParser( + ...
diff --git a/sphinx/cmd/build.py b/sphinx/cmd/build.py index 58f3ad267..bfa15d309 100644 --- a/sphinx/cmd/build.py +++ b/sphinx/cmd/build.py @@ -93,7 +93,7 @@ def get_parser() -> argparse.ArgumentParser: '--version', action='version', dest='show_version', - version=f'%(prog)s {__displa...
diff --git a/tests/test_command_line.py b/tests/test_command_line.py deleted file mode 100644 index 3f35a495f..000000000 --- a/tests/test_command_line.py +++ /dev/null @@ -1,236 +0,0 @@ -from __future__ import annotations - -import sys -from pathlib import Path -from typing import TYPE_CHECKING - -import pytest - -from...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S10", "shared_functions": 1, "shared_lines": 6 }, { "spec_id": "S20", "shared_functions": 1, "shared_lines": 6 }, { "spec_id": "S12", "shared_functions": 1, "shared_lines": 0 } ] }
3
sympy__sympy.c1097516.test_puiseux.cd575f09.lv1
{ "spec_id": "S1", "text": "Create a Puiseux ring and its generators.\n\nThis function constructs a Puiseux ring over the given domain with the specified symbols. A Puiseux ring is a ring of truncated Puiseux series where exponents can be negative or rational numbers, unlike regular polynomial rings which only supp...
diff --git a/sympy/external/pythonmpq.py b/sympy/external/pythonmpq.py index 4f2d102974..5f968d4cdc 100644 --- a/sympy/external/pythonmpq.py +++ b/sympy/external/pythonmpq.py @@ -133,43 +133,43 @@ def __eq__(self, other): else: return NotImplemented - def __hash__(self): - """hash - sa...
diff --git a/sympy/external/pythonmpq.py b/sympy/external/pythonmpq.py index 4f2d102974..5f968d4cdc 100644 +++ a/sympy/external/pythonmpq.py --- b/sympy/external/pythonmpq.py @@ -133,43 +133,43 @@ def __eq__(self, other): else: return NotImplemented + def __hash__(self): + """hash - sa...
diff --git a/sympy/polys/puiseux.py b/sympy/polys/puiseux.py index 5078d84863..dca55aca76 100644 --- a/sympy/polys/puiseux.py +++ b/sympy/polys/puiseux.py @@ -72,6 +72,8 @@ def puiseux_ring( 7*y**(-1) + 5*x**(1/2) """ ring = PuiseuxRing(symbols, domain) + if ring.ngens >= 3: + return (ring,) + ...
diff --git a/sympy/polys/tests/test_puiseux.py b/sympy/polys/tests/test_puiseux.py deleted file mode 100644 index 7d411e4563..0000000000 --- a/sympy/polys/tests/test_puiseux.py +++ /dev/null @@ -1,204 +0,0 @@ -# -# Tests for PuiseuxRing and PuiseuxPoly -# - -from sympy.testing.pytest import raises - -from sympy import ...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S59", "shared_functions": 0, "shared_lines": 20 }, { "spec_id": "S60", "shared_functions": 0, "shared_lines": 20 }, { "spec_id": "S10", "shared_functions": 0, "shared_lines": 0 }, { "spec_i...
3
sympy__sympy.c1097516.test_puiseux.cd575f09.lv1
{ "spec_id": "S11", "text": "Create a new PuiseuxPoly instance from a polynomial and ring.\n\nThis is the constructor method for PuiseuxPoly objects. It creates a new Puiseux polynomial by wrapping a regular polynomial element within a Puiseux ring context.\n\nParameters: poly (PolyElement[Er]) - A polynomial eleme...
diff --git a/sympy/external/pythonmpq.py b/sympy/external/pythonmpq.py index 4f2d102974..5f968d4cdc 100644 --- a/sympy/external/pythonmpq.py +++ b/sympy/external/pythonmpq.py @@ -133,43 +133,43 @@ def __eq__(self, other): else: return NotImplemented - def __hash__(self): - """hash - sa...
diff --git a/sympy/external/pythonmpq.py b/sympy/external/pythonmpq.py index 4f2d102974..5f968d4cdc 100644 +++ a/sympy/external/pythonmpq.py --- b/sympy/external/pythonmpq.py @@ -133,43 +133,43 @@ def __eq__(self, other): else: return NotImplemented + def __hash__(self): + """hash - sa...
diff --git a/sympy/polys/puiseux.py b/sympy/polys/puiseux.py index 5078d84863..9c642e9896 100644 --- a/sympy/polys/puiseux.py +++ b/sympy/polys/puiseux.py @@ -309,8 +309,8 @@ class PuiseuxPoly(Generic[Er]): monom: MonI | None ns: MonI | None - def __new__(cls, poly: PolyElement[Er], ring: PuiseuxRing[Er]...
diff --git a/sympy/polys/tests/test_puiseux.py b/sympy/polys/tests/test_puiseux.py deleted file mode 100644 index 7d411e4563..0000000000 --- a/sympy/polys/tests/test_puiseux.py +++ /dev/null @@ -1,204 +0,0 @@ -# -# Tests for PuiseuxRing and PuiseuxPoly -# - -from sympy.testing.pytest import raises - -from sympy import ...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S59", "shared_functions": 0, "shared_lines": 2 }, { "spec_id": "S60", "shared_functions": 0, "shared_lines": 2 }, { "spec_id": "S1", "shared_functions": 0, "shared_lines": 0 } ] }
3
sympy__sympy.c1097516.test_puiseux.cd575f09.lv1
{ "spec_id": "S22", "text": "The string representation follows these formatting rules: - Terms are sorted and joined with \" + \" - Exponents of 1 are omitted (e.g., \"x\" instead of \"x**1\") - Non-negative integer exponents are shown without parentheses - Negative or fractional exponents are enclosed in parenthes...
diff --git a/sympy/external/pythonmpq.py b/sympy/external/pythonmpq.py index 4f2d102974..5f968d4cdc 100644 --- a/sympy/external/pythonmpq.py +++ b/sympy/external/pythonmpq.py @@ -133,43 +133,43 @@ def __eq__(self, other): else: return NotImplemented - def __hash__(self): - """hash - sa...
diff --git a/sympy/external/pythonmpq.py b/sympy/external/pythonmpq.py index 4f2d102974..5f968d4cdc 100644 +++ a/sympy/external/pythonmpq.py --- b/sympy/external/pythonmpq.py @@ -133,43 +133,43 @@ def __eq__(self, other): else: return NotImplemented + def __hash__(self): + """hash - sa...
diff --git a/sympy/polys/puiseux.py b/sympy/polys/puiseux.py index 5078d84863..162b7a436f 100644 --- a/sympy/polys/puiseux.py +++ b/sympy/polys/puiseux.py @@ -561,7 +561,7 @@ def __repr__(self) -> str: def format_power(base: str, exp: MPQ) -> str: if exp == 1: return base - ...
diff --git a/sympy/polys/tests/test_puiseux.py b/sympy/polys/tests/test_puiseux.py deleted file mode 100644 index 7d411e4563..0000000000 --- a/sympy/polys/tests/test_puiseux.py +++ /dev/null @@ -1,204 +0,0 @@ -# -# Tests for PuiseuxRing and PuiseuxPoly -# - -from sympy.testing.pytest import raises - -from sympy import ...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S59", "shared_functions": 0, "shared_lines": 28 }, { "spec_id": "S60", "shared_functions": 0, "shared_lines": 28 }, { "spec_id": "S1", "shared_functions": 0, "shared_lines": 0 } ] }
3
sympy__sympy.c1097516.test_puiseux.cd575f09.lv1
{ "spec_id": "S23", "text": "Return the positive of a Puiseux polynomial (identity operation).\n\nThis method implements the unary plus operator for Puiseux polynomials. Since Puiseux polynomials are already in their canonical form, applying the unary plus operator simply returns the polynomial unchanged.\n\nReturn...
diff --git a/sympy/external/pythonmpq.py b/sympy/external/pythonmpq.py index 4f2d102974..5f968d4cdc 100644 --- a/sympy/external/pythonmpq.py +++ b/sympy/external/pythonmpq.py @@ -133,43 +133,43 @@ def __eq__(self, other): else: return NotImplemented - def __hash__(self): - """hash - sa...
diff --git a/sympy/external/pythonmpq.py b/sympy/external/pythonmpq.py index 4f2d102974..5f968d4cdc 100644 +++ a/sympy/external/pythonmpq.py --- b/sympy/external/pythonmpq.py @@ -133,43 +133,43 @@ def __eq__(self, other): else: return NotImplemented + def __hash__(self): + """hash - sa...
diff --git a/sympy/polys/puiseux.py b/sympy/polys/puiseux.py index 5078d84863..696022d8fa 100644 --- a/sympy/polys/puiseux.py +++ b/sympy/polys/puiseux.py @@ -638,7 +638,7 @@ def _unify( return poly1, poly2, monom, ns def __pos__(self) -> PuiseuxPoly[Er]: - return self + return self._new_r...
diff --git a/sympy/polys/tests/test_puiseux.py b/sympy/polys/tests/test_puiseux.py deleted file mode 100644 index 7d411e4563..0000000000 --- a/sympy/polys/tests/test_puiseux.py +++ /dev/null @@ -1,204 +0,0 @@ -# -# Tests for PuiseuxRing and PuiseuxPoly -# - -from sympy.testing.pytest import raises - -from sympy import ...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S59", "shared_functions": 0, "shared_lines": 2 }, { "spec_id": "S60", "shared_functions": 0, "shared_lines": 2 }, { "spec_id": "S1", "shared_functions": 0, "shared_lines": 0 } ] }
3
sympy__sympy.c1097516.test_runtests_pytest.71d43c5f.lv1
{ "spec_id": "S3", "text": "The absolute path string constructed by joining the SymPy root directory with the provided partial path.", "category": "behavioral", "code_mapping": [ { "file": "sympy/testing/runtests_pytest.py", "lines": "239", "function": "make_absolute_path" } ] }
diff --git a/sympy/testing/runtests_pytest.py b/sympy/testing/runtests_pytest.py index 635f27864c..e1fba22f1d 100644 --- a/sympy/testing/runtests_pytest.py +++ b/sympy/testing/runtests_pytest.py @@ -94,153 +94,153 @@ def sympy_dir() -> pathlib.Path: return pathlib.Path(__file__).parents[2] -def update_args_wit...
diff --git a/sympy/testing/runtests_pytest.py b/sympy/testing/runtests_pytest.py index 635f27864c..e1fba22f1d 100644 +++ a/sympy/testing/runtests_pytest.py --- b/sympy/testing/runtests_pytest.py @@ -94,153 +94,153 @@ def sympy_dir() -> pathlib.Path: return pathlib.Path(__file__).parents[2] +def update_args_wit...
diff --git a/sympy/testing/runtests_pytest.py b/sympy/testing/runtests_pytest.py index 635f27864c..dc44a45f52 100644 --- a/sympy/testing/runtests_pytest.py +++ b/sympy/testing/runtests_pytest.py @@ -239,7 +239,7 @@ def is_valid_partial_path(partial_path: str) -> bool: ) raise ValueError(msg) - ab...
diff --git a/sympy/testing/tests/test_runtests_pytest.py b/sympy/testing/tests/test_runtests_pytest.py deleted file mode 100644 index cd56d831f3..0000000000 --- a/sympy/testing/tests/test_runtests_pytest.py +++ /dev/null @@ -1,171 +0,0 @@ -import pathlib -from typing import List - -import pytest - -from sympy.testing.r...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S1", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S2", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 0, "shared_lines": 0 } ] }
3
sympy__sympy.c1097516.test_runtests_pytest.71d43c5f.lv1
{ "spec_id": "S4", "text": "A list of path strings that can be: - Empty list: Uses default testpaths from pytest.ini - Full valid paths: Validated and directly appended to args - Partial paths: Matched against testpaths recursively", "category": "behavioral", "code_mapping": [ { "file": "sympy/testing...
diff --git a/sympy/testing/runtests_pytest.py b/sympy/testing/runtests_pytest.py index 635f27864c..e1fba22f1d 100644 --- a/sympy/testing/runtests_pytest.py +++ b/sympy/testing/runtests_pytest.py @@ -94,153 +94,153 @@ def sympy_dir() -> pathlib.Path: return pathlib.Path(__file__).parents[2] -def update_args_wit...
diff --git a/sympy/testing/runtests_pytest.py b/sympy/testing/runtests_pytest.py index 635f27864c..e1fba22f1d 100644 +++ a/sympy/testing/runtests_pytest.py --- b/sympy/testing/runtests_pytest.py @@ -94,153 +94,153 @@ def sympy_dir() -> pathlib.Path: return pathlib.Path(__file__).parents[2] +def update_args_wit...
diff --git a/sympy/testing/runtests_pytest.py b/sympy/testing/runtests_pytest.py index 635f27864c..008fde8a1e 100644 --- a/sympy/testing/runtests_pytest.py +++ b/sympy/testing/runtests_pytest.py @@ -183,7 +183,7 @@ def find_tests_matching_keywords(keywords, filepath): full_paths = [] partial_paths = [...
diff --git a/sympy/testing/tests/test_runtests_pytest.py b/sympy/testing/tests/test_runtests_pytest.py deleted file mode 100644 index cd56d831f3..0000000000 --- a/sympy/testing/tests/test_runtests_pytest.py +++ /dev/null @@ -1,171 +0,0 @@ -import pathlib -from typing import List - -import pytest - -from sympy.testing.r...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S5", "shared_functions": 1, "shared_lines": 0 }, { "spec_id": "S1", "shared_functions": 0, "shared_lines": 0 }, { "spec_id": "S11", "shared_functions": 0, "shared_lines": 0 } ] }
3
sympy__sympy.c1097516.test_runtests_pytest.71d43c5f.lv1
{ "spec_id": "S5", "text": "Optional tuple of keyword strings to filter test functions. When provided, only test functions containing these keywords (case-insensitive) in their names will be included. If None or empty tuple, no keyword filtering is applied.", "category": "behavioral", "code_mapping": [ { ...
diff --git a/sympy/testing/runtests_pytest.py b/sympy/testing/runtests_pytest.py index 635f27864c..e1fba22f1d 100644 --- a/sympy/testing/runtests_pytest.py +++ b/sympy/testing/runtests_pytest.py @@ -94,153 +94,153 @@ def sympy_dir() -> pathlib.Path: return pathlib.Path(__file__).parents[2] -def update_args_wit...
diff --git a/sympy/testing/runtests_pytest.py b/sympy/testing/runtests_pytest.py index 635f27864c..e1fba22f1d 100644 +++ a/sympy/testing/runtests_pytest.py --- b/sympy/testing/runtests_pytest.py @@ -94,153 +94,153 @@ def sympy_dir() -> pathlib.Path: return pathlib.Path(__file__).parents[2] +def update_args_wit...
diff --git a/sympy/testing/runtests_pytest.py b/sympy/testing/runtests_pytest.py index 635f27864c..3041c9c61c 100644 --- a/sympy/testing/runtests_pytest.py +++ b/sympy/testing/runtests_pytest.py @@ -193,7 +193,7 @@ def find_tests_matching_keywords(keywords, filepath): else: candidate_paths.extend(valid_te...
diff --git a/sympy/testing/tests/test_runtests_pytest.py b/sympy/testing/tests/test_runtests_pytest.py deleted file mode 100644 index cd56d831f3..0000000000 --- a/sympy/testing/tests/test_runtests_pytest.py +++ /dev/null @@ -1,171 +0,0 @@ -import pathlib -from typing import List - -import pytest - -from sympy.testing.r...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S11", "shared_functions": 1, "shared_lines": 11 }, { "spec_id": "S9", "shared_functions": 1, "shared_lines": 11 }, { "spec_id": "S4", "shared_functions": 1, "shared_lines": 0 } ] }
3
sympy__sympy.c1097516.test_runtests_pytest.71d43c5f.lv1
{ "spec_id": "S11", "text": "The function must produce exact path matches that satisfy test assertions, particularly: (a) '_basic' must resolve to exactly 'sympy/core/tests/test_basic.py'; (b) ['/core', '/util'] must match exactly 5 paths including 'doc/src/modules/utilities', 'doc/src/reference/public/utilities', ...
diff --git a/sympy/testing/runtests_pytest.py b/sympy/testing/runtests_pytest.py index 635f27864c..e1fba22f1d 100644 --- a/sympy/testing/runtests_pytest.py +++ b/sympy/testing/runtests_pytest.py @@ -94,153 +94,153 @@ def sympy_dir() -> pathlib.Path: return pathlib.Path(__file__).parents[2] -def update_args_wit...
diff --git a/sympy/testing/runtests_pytest.py b/sympy/testing/runtests_pytest.py index 635f27864c..e1fba22f1d 100644 +++ a/sympy/testing/runtests_pytest.py --- b/sympy/testing/runtests_pytest.py @@ -94,153 +94,153 @@ def sympy_dir() -> pathlib.Path: return pathlib.Path(__file__).parents[2] +def update_args_wit...
diff --git a/sympy/testing/runtests_pytest.py b/sympy/testing/runtests_pytest.py index 635f27864c..1fbb0c994e 100644 --- a/sympy/testing/runtests_pytest.py +++ b/sympy/testing/runtests_pytest.py @@ -168,7 +168,7 @@ def find_tests_matching_keywords(keywords, filepath): for kw in keywords: ...
diff --git a/sympy/testing/tests/test_runtests_pytest.py b/sympy/testing/tests/test_runtests_pytest.py deleted file mode 100644 index cd56d831f3..0000000000 --- a/sympy/testing/tests/test_runtests_pytest.py +++ /dev/null @@ -1,171 +0,0 @@ -import pathlib -from typing import List - -import pytest - -from sympy.testing.r...
{ "case_contract": "Every case is a dict with exactly two keys:\n\n- `args`: a tuple or list of positional arguments for the target callable.\n- `kwargs`: a dict mapping string keys to keyword argument values for the target\n callable.\n\n`check_case(case)` must invoke the target using\n`target(*case[\"args\"], **ca...
{ "preservation_probes": [ { "spec_id": "S5", "shared_functions": 1, "shared_lines": 11 }, { "spec_id": "S9", "shared_functions": 1, "shared_lines": 11 }, { "spec_id": "S1", "shared_functions": 0, "shared_lines": 0 }, { "spec_id":...