Repository Analysis

pypa/hatch

Modern, extensible Python project management

19.3 Moderate AI signal View on GitHub

Analysis Overview

This report presents the forensic synthetic code analysis of pypa/hatch, a Python project with 7,199 GitHub stars. SynthScan v2.0 examined 68,514 lines of code across 462 source files, recording 1043 pattern matches distributed across 11 syntactic categories. The overall adjusted score of 19.3 places this repository in the Moderate AI signal band.

The scanner applied 160+ deterministic lexical heuristics, multi-line block detectors, abstract syntax tree depth profilers, and a cross-file Jaccard similarity matrix to construct a statistically normalised synthetic code estimate. All matches are individually weighted by severity coefficient and contextual multiplier before summation, and the resulting headline score is temporally discounted to account for the repository's development history relative to the commercial emergence of large language model coding tooling (November 2022 onward).

19.3
Adjusted Score
19.3
Raw Score
100%
Time Factor
2026-07-08
Last Push
7.2K
Stars
Python
Language
68.5K
Lines of Code
462
Files
1.0K
Pattern Hits
2026-07-14
Scan Date
0.22
HC Hit Rate

What These Metrics Mean

Adjusted Score
Primary synthetic code indicator. Raw score normalised per 1,000 lines of code and multiplied by the temporal discount factor. This is the definitive comparative metric — use it to rank repositories by AI authorship density.
Raw Score
The unmodified sum of all severity-weighted, context-multiplied pattern match scores before temporal discounting. Reflects the absolute signal strength independent of when the repository was last active.
Time Factor
The temporal discount multiplier (0–100%) applied to the raw score. Repositories last updated before ChatGPT's launch (Nov 2022) receive a 5% factor. Full signal is only assigned to repositories active in the post-adoption era (Jan 2024+).
Pattern Hits
Total count of individual pattern matches across all files and categories. A high hit count with a low score may indicate a very large codebase with isolated AI snippets; a low count with a high score indicates dense, concentrated AI signatures.
HC Hit Rate
High+Critical pattern hits per file, averaged across the repository. This orthogonal signal catches repositories where a few files are densely packed with high-severity AI tells — a strong indicator even when the normalised score appears moderate due to codebase size.
Lines of Code / Files
Total lines and files analysed. The scanner examines 94 file extensions. These denominators are used to normalise the score, enabling fair comparison between repositories of vastly different sizes.

Score History

This chart maps the temporal evolution of the adjusted synthetic code score across successive scan runs. An upward trajectory indicates ongoing incorporation of AI-generated code or expanding LLM-assisted scaffolding; a stable or declining trajectory may reflect active human refactoring, code removal, or the adoption of stricter authorship policies. The dashed secondary line (right axis) independently tracks total raw pattern hit count, which can diverge from the normalised score when codebase size changes significantly between scans.

Severity Breakdown

Classifies detected patterns by their diagnostic confidence and structural impact. CRITICAL patterns (coefficient 10) represent definitive synthetic signatures — hallucinated imports, explicit LLM attribution metadata — virtually never produced by human authors. HIGH (5) indicates strong structural tells such as cross-file repetition or cross-linguistic idioms. MEDIUM (2) covers recognisable conversational padding and AI-specific vocabulary. LOW (1) captures subtle indicators like tautological comments and generic boilerplate that require density to carry independent signal.

CRITICAL 1HIGH 101MEDIUM 8LOW 933

Directory Score Breakdown

This horizontal bar chart decomposes the repository's raw synthetic code score by top-level directory, allowing you to pinpoint precisely which modules or components carry the highest AI authorship density. Directories with disproportionately high scores relative to their size warrant targeted manual review: concentrated AI signatures often trace back to mass-generated configuration layers, auto-ported test suites, LLM-scaffolded boilerplate classes, or entire subsystems authored under heavy copilot assistance. Use this view to prioritise your human code-review effort.

Pattern Findings

The scanner identified 1043 distinct pattern matches across 11 syntactic categories. Each entry below represents a discrete location in the source code where the engine recorded a statistically significant AI authorship indicator. 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 diagnostic confidence level (CRITICAL / HIGH / MEDIUM / LOW). The Context column identifies whether the match occurred inside executable code, an inline comment, or a string literal — comment-context matches receive a ×1.5 weight because LLMs systematically over-annotate. The ⚡ bolt icon marks clustered matches: three or more patterns within a 10-line window, each receiving an additional ×1.5 density multiplier as dense clusters constitute far stronger evidence of synthetic authorship than isolated hits.

Hyper-Verbose Identifiers705 hits · 563 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.py41 def test_cpython_standalone_custom(self):CODE
LOWtests/python/test_resolve.py69 def test_cpython_standalone_custom(self):CODE
LOWtests/python/test_core.py48 def test_source_does_not_exist(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
LOWtests/utils/test_linehaul.py54 def test_ci_true_when_env_var_set(self, monkeypatch):CODE
LOWtests/utils/test_linehaul.py62 def test_ci_true_when_env_var_has_any_value(self, monkeypatch):CODE
LOWtests/utils/test_linehaul.py70 def test_ci_none_when_no_env_vars(self, monkeypatch):CODE
LOWtests/utils/test_linehaul.py89 def test_each_ci_env_var_detected(self, monkeypatch, env_var):CODE
LOWtests/utils/test_linehaul.py108 def test_macos_no_distro_when_mac_ver_empty(self, mocker):CODE
645 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 Imports118 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
58 more matches not shown…
Deep Nesting78 hits · 78 pts
SeverityFileLineSnippetContext
LOWtests/conftest.py240CODE
LOWtests/project/test_config.py19CODE
LOWtests/helpers/helpers.py65CODE
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.py209CODE
LOWbackend/src/hatchling/builders/plugin/interface.py241CODE
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.py81CODE
LOWbackend/src/hatchling/metadata/core.py180CODE
LOWbackend/src/hatchling/metadata/core.py495CODE
LOWbackend/src/hatchling/metadata/core.py659CODE
LOWbackend/src/hatchling/metadata/core.py777CODE
LOWbackend/src/hatchling/metadata/core.py846CODE
LOWbackend/src/hatchling/metadata/core.py1115CODE
LOWbackend/src/hatchling/metadata/core.py1167CODE
LOWbackend/src/hatchling/metadata/core.py1227CODE
LOWbackend/src/hatchling/metadata/spec.py70CODE
LOWbackend/src/hatchling/metadata/spec.py278CODE
LOWbackend/src/hatchling/metadata/spec.py355CODE
LOWbackend/src/hatchling/metadata/spec.py441CODE
LOWbackend/src/hatchling/metadata/spec.py527CODE
LOWbackend/src/hatchling/metadata/spec.py618CODE
LOWscripts/validate_history.py12CODE
LOWscripts/generate_coverage_summary.py14CODE
LOWsrc/hatch/python/resolve.py57CODE
LOWsrc/hatch/python/core.py82CODE
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.py59CODE
LOWsrc/hatch/utils/structures.py12CODE
LOWsrc/hatch/cli/terminal.py187CODE
LOWsrc/hatch/cli/__init__.py97CODE
LOWsrc/hatch/cli/application.py54CODE
LOWsrc/hatch/cli/application.py102CODE
LOWsrc/hatch/cli/types/core.py110CODE
LOWsrc/hatch/cli/test/__init__.py36CODE
LOWsrc/hatch/cli/python/install.py29CODE
18 more matches not shown…
Excessive Try-Catch Wrapping16 hits · 18 pts
SeverityFileLineSnippetContext
LOWbackend/src/hatchling/metadata/core.py1529 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.py121 except Exception as e: # noqa: BLE001CODE
LOWsrc/hatch/cli/types/core.py174 except Exception: # noqa: BLE001CODE
LOWsrc/hatch/cli/types/core.py187 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.py191 except Exception:CODE
LOWsrc/hatch/project/core.py272 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.py221 # 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.py374 # Create the environment's initial configurationCOMMENT
MEDIUMsrc/hatch/dep/sync.py147 # This function is unused and only temporarily exists for plugin backwards compatibility.COMMENT
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.py421 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.py420 def update_dependency_hash(self, environment: EnvironmentInterface, dependency_hash: str) -> None:CODE
LOWsrc/hatch/project/core.py76 def set_path(self, path: Path) -> None:CODE
LOWsrc/hatch/project/core.py79 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.py204 # Check if the marker excludes the current platformCOMMENT
Fake / Example Data1 hit · 1 pts
SeverityFileLineSnippetContext
LOWdocs/config/environment/overview.md370Lorem ipsum ...CODE