Python packaging and dependency management made easy
1712 matches across 11 categories. Click a row to expand file-level details.
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/conftest.py | 176 | def set_default_service_credential( |
| LOW | tests/conftest.py | 255 | def with_chained_fail_keyring(mocker: MockerFixture) -> None: |
| LOW | tests/conftest.py | 266 | def with_chained_null_keyring(mocker: MockerFixture) -> None: |
| LOW | tests/conftest.py | 663 | def disable_http_status_force_list(mocker: MockerFixture) -> Iterator[None]: |
| LOW | tests/conftest.py | 675 | def tmp_session_working_directory(tmp_path_factory: TempPathFactory) -> Iterator[Path]: |
| LOW | tests/conftest.py | 783 | def mocked_pythons_version_map() -> dict[str, findpython.PythonVersion]: |
| LOW | tests/conftest.py | 941 | def without_mocked_findpython( |
| LOW | tests/conftest.py | 1025 | def mocked_poetry_managed_python_register( |
| LOW | tests/conftest.py | 1054 | def wheel_with_path_traversal(tmp_path: Path, request: pytest.FixtureRequest) -> Path: |
| LOW | tests/conftest.py | 1087 | def wheel_with_path_traversal_via_symlink( |
| LOW | tests/test_conftest.py | 22 | def test_conftest_create_package( |
| LOW | tests/test_factory.py | 237 | def test_create_poetry_non_package_mode(fixture_dir: FixtureDirGetter) -> None: |
| LOW | tests/test_factory.py | 243 | def test_create_poetry_version_ok(fixture_dir: FixtureDirGetter) -> None: |
| LOW | tests/test_factory.py | 251 | def test_create_poetry_version_not_ok(fixture_dir: FixtureDirGetter) -> None: |
| LOW | tests/test_factory.py | 260 | def test_create_poetry_check_version_before_validation( |
| LOW | tests/test_factory.py | 162 | def test_create_pyproject_from_package( |
| LOW | tests/test_factory.py | 194 | def test_create_poetry_with_packages_and_includes( |
| LOW | tests/test_factory.py | 225 | def test_create_poetry_with_multi_constraints_dependency( |
| LOW | tests/test_factory.py | 275 | def test_poetry_with_primary_source( |
| LOW | tests/test_factory.py | 288 | def test_poetry_with_multiple_supplemental_sources( |
| LOW | tests/test_factory.py | 303 | def test_poetry_with_multiple_sources( |
| LOW | tests/test_factory.py | 316 | def test_poetry_with_multiple_sources_pypi( |
| LOW | tests/test_factory.py | 331 | def test_poetry_with_no_default_source(fixture_dir: FixtureDirGetter) -> None: |
| LOW | tests/test_factory.py | 340 | def test_poetry_with_supplemental_source( |
| LOW | tests/test_factory.py | 356 | def test_poetry_with_explicit_source( |
| LOW | tests/test_factory.py | 373 | def test_poetry_with_explicit_pypi_and_other( |
| LOW | tests/test_factory.py | 388 | def test_poetry_with_pypi_explicit_only( |
| LOW | tests/test_factory.py | 396 | def test_poetry_with_build_constraints(fixture_dir: FixtureDirGetter) -> None: |
| LOW | tests/test_factory.py | 414 | def test_poetry_with_empty_build_constraints(fixture_dir: FixtureDirGetter) -> None: |
| LOW | tests/test_factory.py | 443 | def test_create_poetry_fails_on_invalid_configuration( |
| LOW | tests/test_factory.py | 457 | def test_create_poetry_fails_on_nameless_project( |
| LOW | tests/test_factory.py | 471 | def test_create_poetry_with_local_config(fixture_dir: FixtureDirGetter) -> None: |
| LOW | tests/test_factory.py | 481 | def test_create_poetry_with_plugins( |
| LOW | tests/test_factory.py | 502 | def test_create_package_source_invalid( |
| LOW | tests/test_helpers.py | 44 | def test_returns_package_with_name_and_version(self) -> None: |
| LOW | tests/test_helpers.py | 50 | def test_returns_package_not_yanked_by_default(self) -> None: |
| LOW | tests/test_helpers.py | 54 | def test_returns_yanked_package_with_string_reason(self) -> None: |
| LOW | tests/test_helpers.py | 58 | def test_returns_yanked_package_with_bool(self) -> None: |
| LOW | tests/test_helpers.py | 64 | def test_returns_dependency_with_wildcard_constraint(self) -> None: |
| LOW | tests/test_helpers.py | 69 | def test_returns_dependency_with_version_constraint(self) -> None: |
| LOW | tests/test_helpers.py | 73 | def test_returns_dependency_with_dict_constraint(self) -> None: |
| LOW | tests/test_helpers.py | 77 | def test_returns_optional_dependency(self) -> None: |
| LOW | tests/test_helpers.py | 81 | def test_returns_dependency_with_groups(self) -> None: |
| LOW | tests/test_helpers.py | 86 | def test_returns_dependency_allowing_prereleases(self) -> None: |
| LOW | tests/test_helpers.py | 139 | def test_stores_path_as_string(self, tmp_path: Path) -> None: |
| LOW | tests/test_helpers.py | 149 | def test_head_returns_mock_revision(self, tmp_path: Path) -> None: |
| LOW | tests/test_helpers.py | 153 | def test_ignores_extra_kwargs(self, tmp_path: Path) -> None: |
| LOW | tests/test_helpers.py | 160 | def test_clones_fixture_to_source_root(self, tmp_path: Path) -> None: |
| LOW | tests/test_helpers.py | 169 | def test_clones_fixture_with_nested_path(self, tmp_path: Path) -> None: |
| LOW | tests/test_helpers.py | 179 | def test_is_not_locked_by_default(self, tmp_path: Path) -> None: |
| LOW | tests/test_helpers.py | 184 | def test_locked_sets_locked_state(self, tmp_path: Path) -> None: |
| LOW | tests/test_helpers.py | 393 | def test_flattens_with_default_delimiter(self) -> None: |
| LOW | tests/test_helpers.py | 397 | def test_flattens_deeply_nested_dict(self) -> None: |
| LOW | tests/test_helpers.py | 401 | def test_returns_flat_dict_unchanged(self) -> None: |
| LOW | tests/test_helpers.py | 410 | def test_redirects_to_original_url(self, http: RequestsMock) -> None: |
| LOW | tests/test_helpers.py | 101 | def test_overwrites_existing_file(self, tmp_path: Path) -> None: |
| LOW | tests/test_helpers.py | 122 | def test_overwrites_existing_directory(self, tmp_path: Path) -> None: |
| LOW | tests/test_helpers.py | 198 | def test_is_fresh_always_returns_true(self, tmp_path: Path) -> None: |
| LOW | tests/test_helpers.py | 203 | def test_mock_lock_data_sets_data(self, tmp_path: Path) -> None: |
| LOW | tests/test_helpers.py | 214 | def test_write_lock_data_without_write_stores_in_memory( |
| 1150 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| CRITICAL | tests/utils/test_helpers.py | 19 | from poetry.utils.helpers import Downloader |
| CRITICAL | tests/utils/test_helpers.py | 20 | from poetry.utils.helpers import HTTPRangeRequestSupportedError |
| CRITICAL | tests/utils/test_helpers.py | 21 | from poetry.utils.helpers import download_file |
| CRITICAL | tests/utils/test_helpers.py | 22 | from poetry.utils.helpers import ensure_path |
| CRITICAL | tests/utils/test_helpers.py | 23 | from poetry.utils.helpers import extractall |
| CRITICAL | tests/utils/test_helpers.py | 24 | from poetry.utils.helpers import get_file_hash |
| CRITICAL | tests/utils/test_helpers.py | 25 | from poetry.utils.helpers import get_highest_priority_hash_type |
| CRITICAL | tests/repositories/test_http_repository.py | 25 | from poetry.utils.helpers import HTTPRangeRequestSupportedError |
| CRITICAL | tests/pyproject/test_pyproject_toml_file.py | 7 | from poetry.core.exceptions import PoetryCoreError |
| CRITICAL | tests/console/commands/test_version.py | 129 | old_pyproject = tester.command.poetry.file.path.read_text(encoding="utf-8") |
| CRITICAL | tests/console/commands/test_version.py | 132 | new_pyproject = tester.command.poetry.file.path.read_text(encoding="utf-8") |
| CRITICAL | tests/console/commands/test_add.py | 567 | demo_path = app.poetry.file.path.parent.joinpath(path).resolve().as_posix() |
| CRITICAL | tests/console/commands/test_add.py | 790 | demo_path = app.poetry.file.path.parent.joinpath(path).resolve().as_posix() |
| CRITICAL | tests/console/commands/test_add.py | 829 | demo_path = app.poetry.file.path.parent.joinpath(path).resolve().as_posix() |
| CRITICAL | tests/console/commands/test_add.py | 859 | demo_path = app.poetry.file.path.parent.joinpath(path).resolve().as_posix() |
| CRITICAL | tests/console/commands/test_add.py | 895 | demo_path = app.poetry.file.path.parent.joinpath(path).resolve().as_posix() |
| CRITICAL | tests/console/commands/test_build.py | 18 | from poetry.utils.helpers import remove_directory |
| CRITICAL | src/poetry/toml/exceptions.py | 3 | from poetry.core.exceptions import PoetryCoreError |
| CRITICAL | src/poetry/config/config.py | 220 | from poetry.utils.helpers import merge_dicts |
| CRITICAL | src/poetry/masonry/builders/editable.py | 20 | from poetry.utils.helpers import is_dir_writable |
| CRITICAL | src/poetry/masonry/builders/editable.py | 242 | "url": self._poetry.file.path.parent.absolute().as_uri(), |
| CRITICAL | src/poetry/utils/cache.py | 21 | from poetry.utils.helpers import get_highest_priority_hash_type |
| CRITICAL | src/poetry/repositories/http_repository.py | 39 | from poetry.utils.helpers import HTTPRangeRequestSupportedError |
| CRITICAL | src/poetry/repositories/http_repository.py | 40 | from poetry.utils.helpers import download_file |
| CRITICAL | src/poetry/repositories/http_repository.py | 41 | from poetry.utils.helpers import get_highest_priority_hash_type |
| CRITICAL | src/poetry/installation/chooser.py | 14 | from poetry.utils.helpers import get_highest_priority_hash_type |
| CRITICAL | src/poetry/installation/chef.py | 11 | from poetry.utils.helpers import extractall |
| CRITICAL | src/poetry/installation/executor.py | 29 | from poetry.utils.helpers import Downloader |
| CRITICAL | src/poetry/installation/executor.py | 30 | from poetry.utils.helpers import get_file_hash |
| CRITICAL | src/poetry/installation/executor.py | 31 | from poetry.utils.helpers import get_highest_priority_hash_type |
| CRITICAL | src/poetry/installation/executor.py | 32 | from poetry.utils.helpers import pluralize |
| CRITICAL | src/poetry/installation/executor.py | 33 | from poetry.utils.helpers import remove_directory |
| CRITICAL | src/poetry/inspection/info.py | 26 | from poetry.utils.helpers import extractall |
| CRITICAL | src/poetry/vcs/git/backend.py | 32 | from poetry.utils.helpers import remove_directory |
| CRITICAL | src/poetry/packages/direct_origin.py | 14 | from poetry.utils.helpers import download_file |
| CRITICAL | src/poetry/packages/direct_origin.py | 15 | from poetry.utils.helpers import get_file_hash |
| CRITICAL | src/poetry/console/application.py | 26 | from poetry.utils.helpers import directory |
| CRITICAL | src/poetry/console/application.py | 27 | from poetry.utils.helpers import ensure_path |
| CRITICAL | src/poetry/console/commands/build.py | 17 | from poetry.utils.helpers import remove_directory |
| CRITICAL | src/poetry/console/commands/show.py | 271 | from poetry.utils.helpers import get_package_version_display_string |
| CRITICAL | src/poetry/console/commands/self/self_command.py | 20 | from poetry.utils.helpers import directory |
| CRITICAL | src/poetry/console/commands/self/show/plugins.py | 59 | from poetry.utils.helpers import pluralize |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/conftest.py | 1 | |
| LOW | tests/test_conftest.py | 1 | |
| LOW | tests/test_factory.py | 1 | |
| LOW | tests/types.py | 1 | |
| LOW | tests/test_helpers.py | 1 | |
| LOW | tests/helpers.py | 1 | |
| LOW | tests/test_main.py | 1 | |
| LOW | tests/publishing/test_uploader.py | 1 | |
| LOW | tests/publishing/test_publisher.py | 1 | |
| LOW | tests/publishing/test_hash_manager.py | 1 | |
| LOW | tests/mixology/test_incompatibility.py | 1 | |
| LOW | tests/mixology/helpers.py | 1 | |
| LOW | tests/mixology/version_solver/conftest.py | 1 | |
| LOW | tests/mixology/version_solver/test_backtracking.py | 1 | |
| LOW | tests/mixology/version_solver/__init__.py | 1 | |
| LOW | tests/mixology/version_solver/test_unsolvable.py | 1 | |
| LOW | tests/mixology/version_solver/test_python_constraint.py | 1 | |
| LOW | tests/mixology/version_solver/test_dependency_cache.py | 1 | |
| LOW | tests/mixology/version_solver/test_with_lock.py | 1 | |
| LOW | tests/mixology/version_solver/test_basic_graph.py | 1 | |
| LOW | tests/puzzle/test_transaction.py | 1 | |
| LOW | tests/puzzle/conftest.py | 1 | |
| LOW | tests/puzzle/test_provider.py | 1 | |
| LOW | tests/puzzle/test_solver_internals.py | 1 | |
| LOW | tests/puzzle/test_solver.py | 1 | |
| LOW | tests/config/test_file_config_source.py | 1 | |
| LOW | tests/config/test_source.py | 1 | |
| LOW | tests/config/test_config_source.py | 1 | |
| LOW | tests/config/test_config.py | 1 | |
| LOW | tests/config/test_dict_config_source.py | 1 | |
| LOW | tests/plugins/test_plugin_manager.py | 1 | |
| LOW | tests/integration/test_utils_vcs_git.py | 1 | |
| LOW | tests/masonry/builders/test_editable_builder.py | 1 | |
| LOW | tests/utils/conftest.py | 1 | |
| LOW | tests/utils/test_authenticator.py | 1 | |
| LOW | tests/utils/test_threading.py | 1 | |
| LOW | tests/utils/test_password_manager.py | 1 | |
| LOW | tests/utils/test_isolated_build.py | 1 | |
| LOW | tests/utils/test_dependency_specification.py | 1 | |
| LOW | tests/utils/test_patterns.py | 1 | |
| LOW | tests/utils/test_wheel.py | 1 | |
| LOW | tests/utils/test_extras.py | 1 | |
| LOW | tests/utils/test_pip.py | 1 | |
| LOW | tests/utils/test_compat.py | 1 | |
| LOW | tests/utils/test_helpers.py | 1 | |
| LOW | tests/utils/test_python_manager.py | 1 | |
| LOW | tests/utils/test_cache.py | 1 | |
| LOW | tests/utils/test_log_utils.py | 1 | |
| LOW | tests/repositories/test_repository.py | 1 | |
| LOW | tests/repositories/conftest.py | 1 | |
| LOW | tests/repositories/test_pypi_repository.py | 1 | |
| LOW | tests/repositories/test_installed_repository.py | 1 | |
| LOW | tests/repositories/test_lockfile_repository.py | 1 | |
| LOW | tests/repositories/test_cached_repository.py | 1 | |
| LOW | tests/repositories/test_legacy_repository.py | 1 | |
| LOW | tests/repositories/test_repository_pool.py | 1 | |
| LOW | tests/repositories/test_http_repository.py | 1 | |
| LOW | tests/repositories/test_single_page_repository.py | 1 | |
| LOW | tests/repositories/parsers/test_pypi_search_parser.py | 1 | |
| LOW | tests/repositories/parsers/test_html_page_parser.py | 1 | |
| 257 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| HIGH | tests/console/commands/test_add.py | 0 | \ using version ^0.2.0 for cachy updating dependencies resolving dependencies... package operations: 2 installs, 0 updat |
| HIGH | tests/console/commands/test_add.py | 0 | \ using version ^0.2.0 for cachy updating dependencies resolving dependencies... package operations: 2 installs, 0 updat |
| HIGH | tests/console/commands/test_add.py | 0 | \ using version ^0.2.0 for cachy updating dependencies resolving dependencies... package operations: 2 installs, 0 updat |
| HIGH | tests/console/commands/test_add.py | 0 | \ using version ^0.2.0 for cachy updating dependencies resolving dependencies... package operations: 2 installs, 0 updat |
| HIGH | tests/console/commands/test_add.py | 0 | \ updating dependencies resolving dependencies... package operations: 2 installs, 0 updates, 0 removals - installing msg |
| HIGH | tests/console/commands/test_add.py | 0 | \ updating dependencies resolving dependencies... package operations: 2 installs, 0 updates, 0 removals - installing msg |
| HIGH | tests/console/commands/test_add.py | 0 | \ updating dependencies resolving dependencies... package operations: 2 installs, 0 updates, 0 removals - installing msg |
| HIGH | tests/console/commands/test_add.py | 0 | \ updating dependencies resolving dependencies... package operations: 2 installs, 0 updates, 0 removals - installing msg |
| HIGH | tests/console/commands/test_add.py | 0 | \ updating dependencies resolving dependencies... package operations: 2 installs, 0 updates, 0 removals - installing msg |
| HIGH | tests/console/commands/test_add.py | 0 | \ updating dependencies resolving dependencies... package operations: 2 installs, 0 updates, 0 removals - installing pen |
| HIGH | tests/console/commands/test_add.py | 0 | \ updating dependencies resolving dependencies... package operations: 2 installs, 0 updates, 0 removals - installing pen |
| HIGH | tests/console/commands/test_add.py | 0 | \ updating dependencies resolving dependencies... package operations: 2 installs, 0 updates, 0 removals - installing pen |
| HIGH | tests/console/commands/test_add.py | 0 | \ updating dependencies resolving dependencies... package operations: 2 installs, 0 updates, 0 removals - installing pen |
| HIGH | tests/console/commands/test_add.py | 0 | \ updating dependencies resolving dependencies... package operations: 2 installs, 0 updates, 0 removals - installing pen |
| HIGH | tests/console/commands/test_add.py | 0 | \ updating dependencies resolving dependencies... package operations: 2 installs, 0 updates, 0 removals - installing pen |
| HIGH | tests/console/commands/test_config.py | 0 | cache-dir = {cache_dir} data-dir = {data_dir} installer.max-workers = null installer.no-binary = null installer.only-bin |
| HIGH | tests/console/commands/test_config.py | 0 | cache-dir = {cache_dir} data-dir = {data_dir} installer.max-workers = null installer.no-binary = null installer.only-bin |
| HIGH | tests/console/commands/test_config.py | 0 | cache-dir = {cache_dir} data-dir = {data_dir} installer.max-workers = null installer.no-binary = null installer.only-bin |
| HIGH | tests/console/commands/test_remove.py | 0 | \ [dependency-groups] bar = [ "foo (>=2.0,<3.0)", "baz (>=1.0,<2.0)", ] |
| HIGH | tests/console/commands/test_remove.py | 0 | \ [dependency-groups] bar = [ "foo (>=2.0,<3.0)", "baz (>=1.0,<2.0)", ] |
| HIGH | tests/console/commands/test_remove.py | 0 | \ [dependency-groups] bar = [ "foo (>=2.0,<3.0)", "baz (>=1.0,<2.0)", ] |
| HIGH | tests/console/commands/test_remove.py | 0 | \ [tool.poetry.group.bar.dependencies] foo = "^2.0.0" baz = "^1.0.0" |
| HIGH | tests/console/commands/test_remove.py | 0 | \ [tool.poetry.group.bar.dependencies] foo = "^2.0.0" baz = "^1.0.0" |
| HIGH | tests/console/commands/test_remove.py | 0 | \ [tool.poetry.group.bar.dependencies] foo = "^2.0.0" baz = "^1.0.0" |
| HIGH | tests/console/commands/test_remove.py | 0 | \ [dependency-groups] bar = [ "baz (>=1.0,<2.0)", ] |
| HIGH | tests/console/commands/test_remove.py | 0 | \ [dependency-groups] bar = [ "baz (>=1.0,<2.0)", ] |
| HIGH | tests/console/commands/test_remove.py | 0 | \ [dependency-groups] bar = [ "baz (>=1.0,<2.0)", ] |
| HIGH | tests/console/commands/test_remove.py | 0 | \ [tool.poetry.group.bar.dependencies] baz = "^1.0.0" |
| HIGH | tests/console/commands/test_remove.py | 0 | \ [tool.poetry.group.bar.dependencies] baz = "^1.0.0" |
| HIGH | tests/console/commands/test_remove.py | 0 | \ [tool.poetry.group.bar.dependencies] baz = "^1.0.0" |
| HIGH | tests/console/commands/test_init.py | 0 | \ [project] name = "my-package" version = "1.2.3" description = "this is a description" authors = [ {{name = "your name" |
| HIGH | tests/console/commands/test_init.py | 0 | \ [project] name = "my-package" version = "1.2.3" description = "this is a description" authors = [ {{name = "your name" |
| HIGH | tests/console/commands/test_init.py | 0 | \ [project] name = "my-package" version = "1.2.3" description = "this is a description" authors = [ {{name = "your name" |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/conftest.py | 531 | |
| LOW | tests/conftest.py | 541 | |
| LOW | tests/mixology/helpers.py | 43 | |
| LOW | tests/puzzle/test_transaction.py | 267 | |
| LOW | tests/inspection/test_lazy_wheel.py | 76 | |
| LOW | tests/packages/test_locker.py | 1740 | |
| LOW | tests/console/commands/test_check.py | 318 | |
| LOW | tests/console/commands/test_check.py | 379 | |
| LOW | src/poetry/factory.py | 251 | |
| LOW | src/poetry/publishing/uploader.py | 200 | |
| LOW | src/poetry/publishing/uploader.py | 340 | |
| LOW | src/poetry/mixology/version_solver.py | 244 | |
| LOW | src/poetry/mixology/version_solver.py | 305 | |
| LOW | src/poetry/mixology/version_solver.py | 450 | |
| LOW | src/poetry/mixology/incompatibility.py | 108 | |
| LOW | src/poetry/mixology/failure.py | 143 | |
| LOW | src/poetry/puzzle/solver.py | 396 | |
| LOW | src/poetry/puzzle/solver.py | 450 | |
| LOW | src/poetry/puzzle/solver.py | 84 | |
| LOW | src/poetry/puzzle/solver.py | 190 | |
| LOW | src/poetry/puzzle/solver.py | 333 | |
| LOW | src/poetry/puzzle/provider.py | 241 | |
| LOW | src/poetry/puzzle/provider.py | 466 | |
| LOW | src/poetry/puzzle/provider.py | 776 | |
| LOW | src/poetry/puzzle/provider.py | 797 | |
| LOW | src/poetry/puzzle/provider.py | 950 | |
| LOW | src/poetry/puzzle/transaction.py | 45 | |
| LOW | src/poetry/masonry/builders/editable.py | 142 | |
| LOW | src/poetry/utils/authenticator.py | 193 | |
| LOW | src/poetry/utils/cache.py | 248 | |
| LOW | src/poetry/utils/dependency_specification.py | 32 | |
| LOW | src/poetry/utils/helpers.py | 132 | |
| LOW | src/poetry/utils/helpers.py | 410 | |
| LOW | src/poetry/utils/helpers.py | 210 | |
| LOW | src/poetry/repositories/http_repository.py | 271 | |
| LOW | src/poetry/repositories/http_repository.py | 304 | |
| LOW | src/poetry/repositories/http_repository.py | 503 | |
| LOW | src/poetry/repositories/installed_repository.py | 41 | |
| LOW | src/poetry/repositories/installed_repository.py | 109 | |
| LOW | src/poetry/repositories/installed_repository.py | 240 | |
| LOW | src/poetry/repositories/parsers/pypi_search_parser.py | 41 | |
| LOW | src/poetry/repositories/link_sources/html.py | 30 | |
| LOW | src/poetry/repositories/link_sources/json.py | 27 | |
| LOW | src/poetry/installation/installer.py | 216 | |
| LOW | src/poetry/installation/executor.py | 153 | |
| LOW | src/poetry/installation/executor.py | 270 | |
| LOW | src/poetry/installation/executor.py | 527 | |
| LOW | src/poetry/installation/executor.py | 581 | |
| LOW | src/poetry/installation/executor.py | 862 | |
| LOW | src/poetry/inspection/lazy_wheel.py | 598 | |
| LOW | src/poetry/inspection/lazy_wheel.py | 704 | |
| LOW | src/poetry/inspection/info.py | 117 | |
| LOW | src/poetry/inspection/info.py | 370 | |
| LOW | src/poetry/inspection/info.py | 436 | |
| LOW | src/poetry/vcs/git/backend.py | 520 | |
| LOW | src/poetry/packages/locker.py | 95 | |
| LOW | src/poetry/packages/locker.py | 387 | |
| LOW | src/poetry/packages/locker.py | 518 | |
| LOW | src/poetry/console/application.py | 247 | |
| LOW | src/poetry/console/application.py | 416 | |
| 12 more matches not shown… | |||
| Severity | File | Line | Snippet |
|---|---|---|---|
| MEDIUM | tests/vcs/git/test_backend.py | 303 | # Create a source repository with an annotated tag |
| MEDIUM | tests/vcs/git/test_backend.py | 320 | # Create an annotated tag |
| MEDIUM | tests/vcs/git/test_backend.py | 365 | # Create a source repository with nested annotated tags |
| MEDIUM | tests/vcs/git/test_backend.py | 466 | # Create a source repository with LFS support |
| MEDIUM | tests/vcs/git/test_backend.py | 481 | # Create a regular file |
| MEDIUM | tests/vcs/git/test_backend.py | 486 | # Create an LFS file with a pointer |
| MEDIUM | .github/scripts/backport.sh | 142 | # Create a temporary directory in which to hold worktrees for each backport attempt. |
| MEDIUM | .github/scripts/backport.sh | 161 | # Create a new backport branch, in a new worktree, based on the target branch. |
| MEDIUM | .github/scripts/backport.sh | 177 | # Create a derived title and label for the PR. |
| MEDIUM | .github/scripts/backport.sh | 195 | # Create a new pull request from the backport branch, against the target branch. |
| MEDIUM | src/poetry/mixology/version_solver.py | 402 | # Create a new incompatibility by combining incompatibility with the |
| MEDIUM | src/poetry/repositories/parsers/pypi_search_parser.py | 14 | # The following code was originally written for PDM project |
| MEDIUM | src/poetry/packages/locker.py | 263 | # The following code is roughly equivalent to |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/utils/test_cache.py | 359 | except Exception: |
| LOW | src/poetry/mixology/version_solver.py | 192 | except Exception: |
| LOW | src/poetry/mixology/version_solver.py | 530 | except Exception: |
| LOW | src/poetry/config/file_config_source.py | 106 | except Exception: |
| LOW | src/poetry/installation/executor.py | 312 | except Exception as e: |
| LOW | src/poetry/installation/executor.py | 712 | except Exception: |
| LOW | src/poetry/inspection/lazy_wheel.py | 96 | except Exception as e: |
| LOW | src/poetry/console/logging/io_handler.py | 29 | except Exception: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/utils/test_helpers.py | 144 | def handle_request(request: PreparedRequest) -> HttpResponse: |
| LOW | tests/utils/test_helpers.py | 162 | def handle_request(request: PreparedRequest) -> tuple[int, dict[str, Any], bytes]: |
| LOW | tests/utils/test_helpers.py | 199 | def handle_request(request: PreparedRequest) -> tuple[int, dict[str, Any], bytes]: |
| LOW | tests/utils/test_helpers.py | 111 | def handle_request(request: PreparedRequest) -> HttpResponse: |
| LOW | tests/inspection/test_lazy_wheel.py | 130 | def handle_request(request: PreparedRequest) -> HttpResponse: |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | .github/scripts/backport.sh | 1 | #!/usr/bin/env bash |
| LOW | src/poetry/mixology/version_solver.py | 321 | # The term in incompatibility.terms that was most recently satisfied by |
| LOW | src/poetry/mixology/version_solver.py | 401 | |
| LOW | src/poetry/mixology/partial_solution.py | 21 | # total solution. |
| LOW | src/poetry/puzzle/provider.py | 601 | if locked is not None and locked.package.is_same_package_as(dep): |
| LOW | src/poetry/plugins/plugin_manager.py | 161 | return |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | tests/plugins/test_plugin_manager.py | 612 | # just use a file dependency so that we do not have to set up a repository |
| MEDIUM | tests/utils/test_dependency_specification.py | 98 | ( # allow several equivalent versions to make test more robust |
| LOW | src/poetry/packages/locker.py | 425 | # so we just set both file and hash. |
| Severity | File | Line | Snippet |
|---|---|---|---|
| LOW | src/poetry/publishing/publisher.py | 64 | # Check if we have a token first |
| LOW | src/poetry/puzzle/provider.py | 1022 | # Set constraint to empty to mark dependency as "not required". |
| LOW | src/poetry/installation/installer.py | 102 | # Check if refresh |