AI Slop Code RIsk Monitor

pypa/hatch

Modern, extensible Python project management

19.7 Elevated pattern signal View on GitHub

Maintenance and Governance Review

This report summarizes scanner evidence for pypa/hatch, a Python project with 7,243 GitHub stars. SynthScan examined 71,067 lines of code across 469 source files, recording 1110 pattern matches distributed across 12 syntactic categories. The legacy adjusted pattern signal is 19.7 (Elevated pattern signal); it is not an authorship estimate.

Use the findings to ask whether maintainers can explain intent, verify dependencies, simplify unnecessary scaffolding, and focus review effort. Risk Payload v1 adds ownership, supply-chain, over-engineering, and review-effort vectors when available. These are prompts for human verification, not probabilities, security findings, or measured maintenance costs.

19.7
Adjusted Signal
19.7
Raw Pattern Score
100%
Time Factor
2026-10-10
Last Push
7.2K
Stars
Python
Language
71.1K
Lines of Code
469
Files
1.1K
Pattern Hits
2026-10-12
Scan Date
0.22
HC Hit Rate

Risk Review · v3

Use each vector to guide manual verification of the underlying findings.

Cognitive Ownership Risk 39.7/100 · MEDIUM

Can maintainers explain intent, assumptions, and trade-offs? 856 finding(s).

Hallucinated Dependency & Supply Chain Risk 8.7/100 · LOW

Are imports declared and package/API names verified? 121 finding(s).

Agent Over-Engineering Ratio 56.1/100 · HIGH

Are wrappers, guards, and repeated structures necessary? 900 finding(s).

PR Review Velocity Impact 68.8/100 · HIGH

Which changes need focused human review? 1110 finding(s).

What These Metrics Mean

Adjusted Signal
Legacy pattern score normalized per 1,000 scanned lines and multiplied by the repository-level time factor. It is not an estimate of AI authorship.
Raw Pattern Score
Sum of severity- and context-weighted pattern findings before applying the time factor.
Time Factor
A coarse multiplier based on repository last-push metadata. It does not identify when individual code was written.
Pattern Hits
Count of configured pattern findings. Review each location and surrounding code before acting.
HC Hit Rate
High- and critical-severity findings per scanned file. Severity is a configured detector weight, not proof of a vulnerability or authorship.
Lines / Files
Scan coverage denominators used by the legacy normalized score.

Pattern-Signal History

This chart tracks the legacy adjusted pattern score across scan runs. Changes can reflect source changes, scan coverage, or detector/scoring versions; they do not measure AI adoption or prove that a team refactored code. Compare runs only when their scoring versions are compatible. The dashed line tracks the raw pattern-hit count.

Severity Breakdown

Groups findings by configured severity weight. Severity is not a confidence estimate, security rating, or proof that a package is missing. Verify imports against the project's manifests and inspect each finding in its local design context.

CRITICAL 1HIGH 104MEDIUM 8LOW 997

Directory Score Breakdown

This horizontal bar chart shows where configured pattern scores accumulate across directories. Treat the bars as locations to inspect, not as evidence of authorship or code quality. Use the file-level findings to decide whether a directory needs a focused ownership, dependency, complexity, or review check.

Pattern Findings

The scanner identified 1110 distinct pattern matches across 12 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a detector match to inspect in context. Expand any category row to inspect the individual file paths, line numbers, code snippets, and the lexical context (CODE, COMMENT, or STRING) in which each match was detected.

Reading the findings table: The Severity column indicates the configured finding weight (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — legacy comment-context matches receive a ×1.5 score weight. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier under the legacy scoring model.

Hyper-Verbose Identifiers767 hits · 620 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py183def default_virtualenv_installed_requirements(helpers):CODE
LOWtests/conftest.py193def extract_installed_requirements(helpers, default_virtualenv_installed_requirements):CODE
LOWtests/conftest.py212def compatible_python_distributions():CODE
LOWtests/conftest.py439def mock_backend_process_output(request, mocker):CODE
LOWtests/python/test_resolve.py13 def test_unknown_distribution(self):CODE
LOWtests/python/test_resolve.py18 def test_unknown_free_threaded_distribution(self, name):CODE
LOWtests/python/test_resolve.py46 def test_cpython_standalone_custom(self):CODE
LOWtests/python/test_resolve.py74 def test_cpython_standalone_custom(self):CODE
LOWtests/python/test_resolve.py166 def test_free_threaded_selectors(self, name, base_version):CODE
LOWtests/python/test_resolve.py177 def test_free_threaded_selector_cpu_variant(self):CODE
LOWtests/python/test_resolve.py190 def test_compatible_distributions_do_not_include_free_threaded_selectors(self):CODE
LOWtests/python/test_core.py48 def test_source_does_not_exist(self, temp_dir):CODE
LOWtests/python/test_core.py97 def test_free_threaded_distribution_identity(self, temp_dir):CODE
LOWtests/config/test_model.py196 def test_table_with_path_and_args(self):CODE
LOWtests/config/test_model.py218 def test_table_name_not_string(self, helpers):CODE
LOWtests/config/test_model.py232 def test_table_path_not_string(self, helpers):CODE
LOWtests/config/test_model.py246 def test_table_args_not_array(self, helpers):CODE
LOWtests/config/test_model.py260 def test_table_args_entry_not_string(self, helpers):CODE
LOWtests/config/test_model.py291 def test_table_name_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py308 def test_table_path_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py325 def test_table_args_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py415 def test_project_entry_not_string(self, helpers):CODE
LOWtests/config/test_model.py429 def test_project_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py466 def test_env_value_not_string(self, helpers):CODE
LOWtests/config/test_model.py517 def test_python_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py591 def test_cache_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py703 def test_location_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py818 def test_name_default_env_var(self):CODE
LOWtests/config/test_model.py878 def test_email_default_env_var(self):CODE
LOWtests/config/test_model.py894 def test_email_default_no_git(self, temp_dir):CODE
LOWtests/config/test_model.py915 def test_email_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py946 def test_licenses_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py969 def test_licenses_headers_default(self):CODE
LOWtests/config/test_model.py975 def test_licenses_headers_not_boolean(self, helpers):CODE
LOWtests/config/test_model.py989 def test_licenses_headers_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py1012 def test_licenses_default_default(self):CODE
LOWtests/config/test_model.py1018 def test_licenses_default_not_array(self, helpers):CODE
LOWtests/config/test_model.py1032 def test_licenses_default_entry_not_string(self, helpers):CODE
LOWtests/config/test_model.py1046 def test_licenses_default_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py1091 def test_plugins_data_not_table(self, helpers):CODE
LOWtests/config/test_model.py1105 def test_plugins_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py1193 def test_styles_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py1216 def test_styles_info_not_string(self, helpers):CODE
LOWtests/config/test_model.py1230 def test_styles_info_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py1253 def test_styles_success_not_string(self, helpers):CODE
LOWtests/config/test_model.py1267 def test_styles_success_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py1290 def test_styles_error_not_string(self, helpers):CODE
LOWtests/config/test_model.py1304 def test_styles_error_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py1327 def test_styles_warning_not_string(self, helpers):CODE
LOWtests/config/test_model.py1341 def test_styles_warning_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py1364 def test_styles_waiting_not_string(self, helpers):CODE
LOWtests/config/test_model.py1378 def test_styles_waiting_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py1401 def test_styles_debug_not_string(self, helpers):CODE
LOWtests/config/test_model.py1415 def test_styles_debug_set_lazy_error(self, helpers):CODE
LOWtests/config/test_model.py1438 def test_styles_spinner_not_string(self, helpers):CODE
LOWtests/config/test_model.py1452 def test_styles_spinner_set_lazy_error(self, helpers):CODE
LOWtests/utils/test_fs.py14 def test_resolve_relative_non_existent(self, tmp_path):CODE
LOWtests/utils/test_fs.py30 def test_ensure_parent_dir_exists(self, tmp_path):CODE
LOWtests/utils/test_fs.py101 def test_temp_hide_non_existent(self, tmp_path):CODE
LOWtests/utils/test_linehaul.py39 def test_openssl_version_present(self):CODE
707 more matches not shown…
Cross-File Repetition101 hits · 505 pts
SeverityFileLineSnippetContext
HIGHtests/backend/builders/test_sdist.py0\ import pathlib from hatchling.builders.hooks.plugin.interface import buildhookinterface class customhook(buildhookinteSTRING
HIGH…st/standard_default_build_script_extra_dependencies.py0\ import pathlib from hatchling.builders.hooks.plugin.interface import buildhookinterface class customhook(buildhookinteSTRING
HIGH…lates/sdist/standard_default_build_script_artifacts.py0\ import pathlib from hatchling.builders.hooks.plugin.interface import buildhookinterface class customhook(buildhookinteSTRING
HIGHtests/cli/fmt/test_fmt.py0the --sync flag can only be used when the `tool.hatch.format.config-path` option is definedSTRING
HIGHtests/cli/check/test_check_fmt.py0the --sync flag can only be used when the `tool.hatch.format.config-path` option is definedSTRING
HIGHtests/cli/check/test_check_code.py0the --sync flag can only be used when the `tool.hatch.format.config-path` option is definedSTRING
HIGHtests/cli/project/test_metadata.py0environment `hatch-build` is incompatible: cannot locate python: 9000STRING
HIGHtests/cli/version/test_version.py0environment `hatch-build` is incompatible: cannot locate python: 9000STRING
HIGHtests/cli/dep/test_hash.py0environment `hatch-build` is incompatible: cannot locate python: 9000STRING
HIGHtests/cli/dep/show/test_table.py0environment `hatch-build` is incompatible: cannot locate python: 9000STRING
HIGHtests/cli/dep/show/test_requirements.py0environment `hatch-build` is incompatible: cannot locate python: 9000STRING
HIGH…pers/templates/wheel/standard_default_single_module.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…ates/wheel/standard_only_packages_artifact_override.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…ers/templates/wheel/standard_default_license_single.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…sts/helpers/templates/wheel/standard_editable_exact.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGHtests/helpers/templates/wheel/standard_default_sbom.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…/templates/wheel/standard_default_namespace_package.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGHtests/helpers/templates/wheel/standard_editable_pth.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…s/helpers/templates/wheel/standard_no_strict_naming.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGHtests/helpers/templates/wheel/standard_entry_points.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…s/templates/wheel/standard_default_license_multiple.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…templates/wheel/standard_editable_pth_force_include.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…mplates/wheel/standard_editable_exact_force_include.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…es/wheel/standard_editable_exact_extra_dependencies.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGHtests/helpers/templates/wheel/standard_tests.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…ates/wheel/standard_editable_pth_extra_dependencies.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…/templates/wheel/standard_default_python_constraint.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…standard_default_python_constraint_three_components.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…elpers/templates/wheel/standard_default_shared_data.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…ers/templates/wheel/standard_default_extra_metadata.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…ers/templates/wheel/standard_default_shared_scripts.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-anySTRING
HIGH…pers/templates/wheel/standard_default_single_module.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGH…ates/wheel/standard_only_packages_artifact_override.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGH…ers/templates/wheel/standard_default_license_single.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGHtests/helpers/templates/wheel/standard_default_sbom.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGH…/templates/wheel/standard_default_namespace_package.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGHtests/helpers/templates/wheel/standard_editable_pth.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGH…s/helpers/templates/wheel/standard_no_strict_naming.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGHtests/helpers/templates/wheel/standard_entry_points.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGH…templates/wheel/standard_editable_pth_force_include.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGHtests/helpers/templates/wheel/standard_tests.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGH…lates/sdist/standard_default_build_script_artifacts.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGHtests/helpers/templates/sdist/standard_default.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGH…ates/sdist/standard_default_vcs_git_exclusion_files.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGH…dist/standard_default_vcs_mercurial_exclusion_files.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGH…ers/templates/sdist/standard_default_support_legacy.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txtSTRING
HIGH…el/standard_default_build_script_extra_dependencies.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: false tag: {kwargs.get("tag", "")}STRING
HIGH…dard_default_build_script_artifacts_with_src_layout.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: false tag: {kwargs.get("tag", "")}STRING
HIGH…d_default_build_script_force_include_no_duplication.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: false tag: {kwargs.get("tag", "")}STRING
HIGH…lates/wheel/standard_default_build_script_artifacts.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: false tag: {kwargs.get("tag", "")}STRING
HIGH…s/wheel/standard_default_build_script_force_include.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: false tag: {kwargs.get("tag", "")}STRING
HIGH…tandard_default_build_script_configured_build_hooks.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: false tag: {kwargs.get("tag", "")}STRING
HIGH…ts/helpers/templates/wheel/standard_default_symlink.py0\ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: false tag: {kwargs.get("tag", "")}STRING
HIGH…dard_default_build_script_artifacts_with_src_layout.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt rSTRING
HIGH…d_default_build_script_force_include_no_duplication.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt rSTRING
HIGH…lates/wheel/standard_default_build_script_artifacts.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt rSTRING
HIGH…/templates/wheel/standard_default_python_constraint.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt rSTRING
HIGH…s/wheel/standard_default_build_script_force_include.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt rSTRING
HIGH…tandard_default_build_script_configured_build_hooks.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt rSTRING
HIGH…ts/helpers/templates/wheel/standard_default_symlink.py0\ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt rSTRING
41 more matches not shown…
Unused Imports119 hits · 118 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py1CODE
LOWtests/utils/test_runner.py1CODE
LOWtests/backend/builders/test_wheel.py1CODE
LOWtests/backend/builders/test_binary.py1CODE
LOWtests/backend/utils/test_macos.py1CODE
LOWtests/cli/test/test_test.py1CODE
LOWtests/cli/fmt/test_fmt.py1CODE
LOWtests/cli/check/test_check_types.py1CODE
LOWtests/cli/check/test_check_fmt.py1CODE
LOWtests/cli/check/test_check_group.py1CODE
LOWtests/cli/check/test_check_code.py1CODE
LOWtests/helpers/helpers.py1CODE
LOWrelease/macos/build_pkg.py8CODE
LOWrelease/unix/make_scripts_portable.py1CODE
LOWrelease/windows/make_scripts_portable.py1CODE
LOWbackend/src/hatchling/build.py1CODE
LOWbackend/src/hatchling/ouroboros.py1CODE
LOWbackend/src/hatchling/ouroboros.py8CODE
LOWbackend/src/hatchling/builders/binary.py1CODE
LOWbackend/src/hatchling/builders/macos.py1CODE
LOWbackend/src/hatchling/builders/config.py1CODE
LOWbackend/src/hatchling/builders/custom.py1CODE
LOWbackend/src/hatchling/builders/sdist.py1CODE
LOWbackend/src/hatchling/builders/utils.py1CODE
LOWbackend/src/hatchling/builders/app.py1CODE
LOWbackend/src/hatchling/builders/wheel.py1CODE
LOWbackend/src/hatchling/builders/plugin/hooks.py1CODE
LOWbackend/src/hatchling/builders/plugin/interface.py1CODE
LOWbackend/src/hatchling/builders/hooks/version.py1CODE
LOWbackend/src/hatchling/builders/hooks/custom.py1CODE
LOWbackend/src/hatchling/builders/hooks/plugin/hooks.py1CODE
LOW…ckend/src/hatchling/builders/hooks/plugin/interface.py1CODE
LOWbackend/src/hatchling/licenses/supported.py1CODE
LOWbackend/src/hatchling/bridge/app.py1CODE
LOWbackend/src/hatchling/plugin/utils.py1CODE
LOWbackend/src/hatchling/plugin/manager.py1CODE
LOWbackend/src/hatchling/utils/context.py1CODE
LOWbackend/src/hatchling/utils/fs.py1CODE
LOWbackend/src/hatchling/cli/version/__init__.py1CODE
LOWbackend/src/hatchling/cli/dep/__init__.py1CODE
LOWbackend/src/hatchling/cli/dep/core.py1CODE
LOWbackend/src/hatchling/cli/metadata/__init__.py1CODE
LOWbackend/src/hatchling/version/core.py1CODE
LOWbackend/src/hatchling/version/scheme/standard.py1CODE
LOWbackend/src/hatchling/version/scheme/plugin/hooks.py1CODE
LOW…ckend/src/hatchling/version/scheme/plugin/interface.py1CODE
LOWbackend/src/hatchling/version/source/env.py1CODE
LOWbackend/src/hatchling/version/source/code.py1CODE
LOWbackend/src/hatchling/version/source/plugin/hooks.py1CODE
LOW…ckend/src/hatchling/version/source/plugin/interface.py1CODE
LOWbackend/src/hatchling/dep/core.py1CODE
LOWbackend/src/hatchling/metadata/custom.py1CODE
LOWbackend/src/hatchling/metadata/core.py1CODE
LOWbackend/src/hatchling/metadata/spec.py1CODE
LOWbackend/src/hatchling/metadata/utils.py1CODE
LOWbackend/src/hatchling/metadata/plugin/hooks.py1CODE
LOWbackend/src/hatchling/metadata/plugin/interface.py1CODE
LOWdocs/.hooks/render_default_test_env.py1CODE
LOWdocs/.hooks/render_ruff_defaults.py1CODE
LOWscripts/update_distributions.py1CODE
59 more matches not shown…
Deep Nesting79 hits · 78 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py240CODE
LOWtests/project/test_config.py19CODE
LOWtests/helpers/helpers.py64CODE
LOWrelease/unix/make_scripts_portable.py9CODE
LOWrelease/windows/make_scripts_portable.py35CODE
LOWbackend/tests/downstream/integrate.py108CODE
LOWbackend/src/hatchling/builders/binary.py50CODE
LOWbackend/src/hatchling/builders/config.py606CODE
LOWbackend/src/hatchling/builders/config.py765CODE
LOWbackend/src/hatchling/builders/config.py829CODE
LOWbackend/src/hatchling/builders/sdist.py167CODE
LOWbackend/src/hatchling/builders/sdist.py218CODE
LOWbackend/src/hatchling/builders/wheel.py549CODE
LOWbackend/src/hatchling/builders/wheel.py680CODE
LOWbackend/src/hatchling/builders/wheel.py829CODE
LOWbackend/src/hatchling/builders/plugin/interface.py218CODE
LOWbackend/src/hatchling/builders/plugin/interface.py250CODE
LOWbackend/src/hatchling/cli/dep/core.py44CODE
LOWbackend/src/hatchling/cli/metadata/__init__.py7CODE
LOWbackend/src/hatchling/version/scheme/standard.py18CODE
LOWbackend/src/hatchling/metadata/core.py83CODE
LOWbackend/src/hatchling/metadata/core.py196CODE
LOWbackend/src/hatchling/metadata/core.py512CODE
LOWbackend/src/hatchling/metadata/core.py682CODE
LOWbackend/src/hatchling/metadata/core.py800CODE
LOWbackend/src/hatchling/metadata/core.py869CODE
LOWbackend/src/hatchling/metadata/core.py1138CODE
LOWbackend/src/hatchling/metadata/core.py1190CODE
LOWbackend/src/hatchling/metadata/core.py1250CODE
LOWbackend/src/hatchling/metadata/spec.py72CODE
LOWbackend/src/hatchling/metadata/spec.py280CODE
LOWbackend/src/hatchling/metadata/spec.py357CODE
LOWbackend/src/hatchling/metadata/spec.py443CODE
LOWbackend/src/hatchling/metadata/spec.py529CODE
LOWbackend/src/hatchling/metadata/spec.py620CODE
LOWscripts/validate_history.py12CODE
LOWscripts/generate_coverage_summary.py14CODE
LOWsrc/hatch/python/resolve.py85CODE
LOWsrc/hatch/python/core.py81CODE
LOWsrc/hatch/config/model.py15CODE
LOWsrc/hatch/config/model.py100CODE
LOWsrc/hatch/config/model.py143CODE
LOWsrc/hatch/config/model.py171CODE
LOWsrc/hatch/config/model.py283CODE
LOWsrc/hatch/config/model.py317CODE
LOWsrc/hatch/config/model.py340CODE
LOWsrc/hatch/config/model.py460CODE
LOWsrc/hatch/config/model.py491CODE
LOWsrc/hatch/config/model.py543CODE
LOWsrc/hatch/config/model.py595CODE
LOWsrc/hatch/template/default.py17CODE
LOWsrc/hatch/utils/dep.py61CODE
LOWsrc/hatch/utils/dep.py97CODE
LOWsrc/hatch/utils/structures.py13CODE
LOWsrc/hatch/cli/terminal.py187CODE
LOWsrc/hatch/cli/__init__.py97CODE
LOWsrc/hatch/cli/application.py54CODE
LOWsrc/hatch/cli/application.py106CODE
LOWsrc/hatch/cli/types/core.py108CODE
LOWsrc/hatch/cli/test/__init__.py36CODE
19 more matches not shown…
Excessive Try-Catch Wrapping16 hits · 18 pts
SeverityFileLineSnippetContext
LOWbackend/src/hatchling/metadata/core.py1548 except Exception as e: # noqa: BLE001CODE
MEDIUMscripts/release_github.py24 print(f"Error creating tag: {e}")CODE
LOWsrc/hatch/config/model.py478 except Exception: # noqa: BLE001CODE
LOWsrc/hatch/config/model.py509 except Exception: # noqa: BLE001CODE
LOWsrc/hatch/template/default.py47 except Exception: # noqa: BLE001, S112CODE
LOWsrc/hatch/cli/__init__.py244 except Exception: # noqa: BLE001CODE
LOWsrc/hatch/cli/application.py58 except Exception as e: # noqa: BLE001CODE
LOWsrc/hatch/cli/application.py125 except Exception as e: # noqa: BLE001CODE
LOW⚡src/hatch/cli/types/core.py172 except Exception: # noqa: BLE001CODE
LOW⚡src/hatch/cli/types/core.py185 except Exception: # noqa: BLE001CODE
LOWsrc/hatch/cli/test/__init__.py169 except Exception: # noqa: BLE001, S110CODE
LOWsrc/hatch/cli/new/__init__.py65 except Exception as e: # noqa: BLE001CODE
LOWsrc/hatch/project/core.py190 except Exception:CODE
LOWsrc/hatch/project/core.py271 except Exception as e: # noqa: BLE001CODE
LOWsrc/hatch/publish/index.py115 except Exception: # no cov # noqa: BLE001CODE
LOWsrc/hatch/publish/index.py126 except Exception as e: # noqa: BLE001CODE
Self-Referential Comments7 hits · 17 pts
SeverityFileLineSnippetContext
MEDIUMtests/utils/test_auth.py6 # Create a fake home directoryCOMMENT
MEDIUMtests/backend/builders/hooks/test_version.py94 # This file is auto-generated by Hatchling. As such, do not:STRING
MEDIUMtests/backend/builders/hooks/test_version.py134 # This file is auto-generated by Hatchling. As such, do not:STRING
MEDIUMtests/dep/test_sync.py239 # Create a dependency with a path containing URL-encoded special characterCOMMENT
MEDIUMbackend/src/hatchling/version/core.py8# This file is auto-generated by Hatchling. As such, do not:COMMENT
MEDIUMsrc/hatch/project/config.py381 # Create the environment's initial configurationCOMMENT
MEDIUMsrc/hatch/dep/sync.py154 # This function is unused and only temporarily exists for plugin backwards compatibility.COMMENT
Empty Error Handlers3 hits · 15 pts
SeverityFileLineSnippetContext
HIGHsrc/hatch/python/resolve.py230except PythonDistributionResolutionError:CODE
HIGHsrc/hatch/utils/linehaul.py102except (OSError, AttributeError, UnicodeDecodeError):CODE
HIGHsrc/hatch/cli/test/__init__.py169except Exception: # noqa: BLE001, S110CODE
Modern Structural Boilerplate13 hits · 12 pts
SeverityFileLineSnippetContext
LOWbackend/src/hatchling/build.py6__all__ = [CODE
LOWbackend/src/hatchling/builders/macos.py7__all__ = ["process_macos_plat_tag"]CODE
LOWbackend/src/hatchling/builders/config.py820 def set_exclude_all(self) -> None:CODE
LOWbackend/src/hatchling/builders/utils.py123def set_zip_info_mode(zip_info: ZipInfo, mode: int = 0o644) -> None:CODE
LOWbackend/src/hatchling/builders/plugin/interface.py430 def set_build_data_defaults(self, build_data: dict[str, Any]) -> None: # noqa: PLR6301CODE
LOWbackend/src/hatchling/version/core.py45 def set_version(self, version: str) -> None:STRING
LOWbackend/src/hatchling/version/source/env.py27 def set_version(self, version: str, version_data: dict) -> None:CODE
LOWbackend/src/hatchling/version/source/code.py62 def set_version(self, version: str, version_data: dict) -> None:CODE
LOWbackend/src/hatchling/version/source/regex.py28 def set_version(self, version: str, version_data: dict) -> None: # noqa: PLR6301CODE
LOW…ckend/src/hatchling/version/source/plugin/interface.py65 def set_version(self, version: str, version_data: dict) -> None:CODE
LOWsrc/hatch/project/env.py421 def update_dependency_hash(self, environment: EnvironmentInterface, dependency_hash: str) -> None:CODE
LOWsrc/hatch/project/core.py75 def set_path(self, path: Path) -> None:CODE
LOWsrc/hatch/project/core.py78 def set_app(self, app: Application) -> None:CODE
Hallucination Indicators1 hit · 10 pts
SeverityFileLineSnippetContext
CRITICALbackend/src/hatchling/builders/binary.py60 if self.builder.metadata.core.python_constraint.contains(supported_version):CODE
Over-Commented Block2 hits · 2 pts
SeverityFileLineSnippetContext
LOWbackend/src/hatchling/build.py81COMMENT
LOWdocs/how-to/run/python-scripts.md61COMMENT
Redundant / Tautological Comments1 hit · 2 pts
SeverityFileLineSnippetContext
LOWsrc/hatch/cli/types/core.py202 # Check if the marker excludes the current platformCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/config/environment/overview.md373Lorem ipsum ...CODE