Modern, extensible Python project management
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).
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.
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.
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.
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.
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 183 | def default_virtualenv_installed_requirements(helpers): | CODE |
| LOW | tests/conftest.py | 193 | def extract_installed_requirements(helpers, default_virtualenv_installed_requirements): | CODE |
| LOW | tests/conftest.py | 212 | def compatible_python_distributions(): | CODE |
| LOW | tests/conftest.py | 439 | def mock_backend_process_output(request, mocker): | CODE |
| LOW | tests/python/test_resolve.py | 13 | def test_unknown_distribution(self): | CODE |
| LOW | tests/python/test_resolve.py | 41 | def test_cpython_standalone_custom(self): | CODE |
| LOW | tests/python/test_resolve.py | 69 | def test_cpython_standalone_custom(self): | CODE |
| LOW | tests/python/test_core.py | 48 | def test_source_does_not_exist(self, temp_dir): | CODE |
| LOW | tests/config/test_model.py | 196 | def test_table_with_path_and_args(self): | CODE |
| LOW | tests/config/test_model.py | 218 | def test_table_name_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 232 | def test_table_path_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 246 | def test_table_args_not_array(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 260 | def test_table_args_entry_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 291 | def test_table_name_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 308 | def test_table_path_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 325 | def test_table_args_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 415 | def test_project_entry_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 429 | def test_project_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 466 | def test_env_value_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 517 | def test_python_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 591 | def test_cache_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 703 | def test_location_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 818 | def test_name_default_env_var(self): | CODE |
| LOW | tests/config/test_model.py | 878 | def test_email_default_env_var(self): | CODE |
| LOW | tests/config/test_model.py | 894 | def test_email_default_no_git(self, temp_dir): | CODE |
| LOW | tests/config/test_model.py | 915 | def test_email_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 946 | def test_licenses_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 969 | def test_licenses_headers_default(self): | CODE |
| LOW | tests/config/test_model.py | 975 | def test_licenses_headers_not_boolean(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 989 | def test_licenses_headers_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1012 | def test_licenses_default_default(self): | CODE |
| LOW | tests/config/test_model.py | 1018 | def test_licenses_default_not_array(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1032 | def test_licenses_default_entry_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1046 | def test_licenses_default_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1091 | def test_plugins_data_not_table(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1105 | def test_plugins_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1193 | def test_styles_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1216 | def test_styles_info_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1230 | def test_styles_info_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1253 | def test_styles_success_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1267 | def test_styles_success_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1290 | def test_styles_error_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1304 | def test_styles_error_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1327 | def test_styles_warning_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1341 | def test_styles_warning_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1364 | def test_styles_waiting_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1378 | def test_styles_waiting_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1401 | def test_styles_debug_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1415 | def test_styles_debug_set_lazy_error(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1438 | def test_styles_spinner_not_string(self, helpers): | CODE |
| LOW | tests/config/test_model.py | 1452 | def test_styles_spinner_set_lazy_error(self, helpers): | CODE |
| LOW | tests/utils/test_fs.py | 14 | def test_resolve_relative_non_existent(self, tmp_path): | CODE |
| LOW | tests/utils/test_fs.py | 30 | def test_ensure_parent_dir_exists(self, tmp_path): | CODE |
| LOW | tests/utils/test_fs.py | 101 | def test_temp_hide_non_existent(self, tmp_path): | CODE |
| LOW | tests/utils/test_linehaul.py | 39 | def test_openssl_version_present(self): | CODE |
| LOW⚡ | tests/utils/test_linehaul.py | 54 | def test_ci_true_when_env_var_set(self, monkeypatch): | CODE |
| LOW⚡ | tests/utils/test_linehaul.py | 62 | def test_ci_true_when_env_var_has_any_value(self, monkeypatch): | CODE |
| LOW⚡ | tests/utils/test_linehaul.py | 70 | def test_ci_none_when_no_env_vars(self, monkeypatch): | CODE |
| LOW | tests/utils/test_linehaul.py | 89 | def test_each_ci_env_var_detected(self, monkeypatch, env_var): | CODE |
| LOW | tests/utils/test_linehaul.py | 108 | def test_macos_no_distro_when_mac_ver_empty(self, mocker): | CODE |
| 645 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| HIGH | tests/backend/builders/test_sdist.py | 0 | \ import pathlib from hatchling.builders.hooks.plugin.interface import buildhookinterface class customhook(buildhookinte | STRING |
| HIGH | …st/standard_default_build_script_extra_dependencies.py | 0 | \ import pathlib from hatchling.builders.hooks.plugin.interface import buildhookinterface class customhook(buildhookinte | STRING |
| HIGH | …lates/sdist/standard_default_build_script_artifacts.py | 0 | \ import pathlib from hatchling.builders.hooks.plugin.interface import buildhookinterface class customhook(buildhookinte | STRING |
| HIGH | tests/cli/fmt/test_fmt.py | 0 | the --sync flag can only be used when the `tool.hatch.format.config-path` option is defined | STRING |
| HIGH | tests/cli/check/test_check_fmt.py | 0 | the --sync flag can only be used when the `tool.hatch.format.config-path` option is defined | STRING |
| HIGH | tests/cli/check/test_check_code.py | 0 | the --sync flag can only be used when the `tool.hatch.format.config-path` option is defined | STRING |
| HIGH | tests/cli/project/test_metadata.py | 0 | environment `hatch-build` is incompatible: cannot locate python: 9000 | STRING |
| HIGH | tests/cli/version/test_version.py | 0 | environment `hatch-build` is incompatible: cannot locate python: 9000 | STRING |
| HIGH | tests/cli/dep/test_hash.py | 0 | environment `hatch-build` is incompatible: cannot locate python: 9000 | STRING |
| HIGH | tests/cli/dep/show/test_table.py | 0 | environment `hatch-build` is incompatible: cannot locate python: 9000 | STRING |
| HIGH | tests/cli/dep/show/test_requirements.py | 0 | environment `hatch-build` is incompatible: cannot locate python: 9000 | STRING |
| HIGH | …pers/templates/wheel/standard_default_single_module.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …ates/wheel/standard_only_packages_artifact_override.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …ers/templates/wheel/standard_default_license_single.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …sts/helpers/templates/wheel/standard_editable_exact.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | tests/helpers/templates/wheel/standard_default_sbom.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …/templates/wheel/standard_default_namespace_package.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | tests/helpers/templates/wheel/standard_editable_pth.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …s/helpers/templates/wheel/standard_no_strict_naming.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | tests/helpers/templates/wheel/standard_entry_points.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …s/templates/wheel/standard_default_license_multiple.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …templates/wheel/standard_editable_pth_force_include.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …mplates/wheel/standard_editable_exact_force_include.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …es/wheel/standard_editable_exact_extra_dependencies.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | tests/helpers/templates/wheel/standard_tests.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …ates/wheel/standard_editable_pth_extra_dependencies.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …/templates/wheel/standard_default_python_constraint.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …standard_default_python_constraint_three_components.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …elpers/templates/wheel/standard_default_shared_data.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …ers/templates/wheel/standard_default_extra_metadata.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …ers/templates/wheel/standard_default_shared_scripts.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: true tag: py3-none-any | STRING |
| HIGH | …pers/templates/wheel/standard_default_single_module.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | …ates/wheel/standard_only_packages_artifact_override.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | …ers/templates/wheel/standard_default_license_single.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | tests/helpers/templates/wheel/standard_default_sbom.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | …/templates/wheel/standard_default_namespace_package.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | tests/helpers/templates/wheel/standard_editable_pth.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | …s/helpers/templates/wheel/standard_no_strict_naming.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | tests/helpers/templates/wheel/standard_entry_points.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | …templates/wheel/standard_editable_pth_force_include.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | tests/helpers/templates/wheel/standard_tests.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | …lates/sdist/standard_default_build_script_artifacts.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | tests/helpers/templates/sdist/standard_default.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | …ates/sdist/standard_default_vcs_git_exclusion_files.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | …dist/standard_default_vcs_mercurial_exclusion_files.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | …ers/templates/sdist/standard_default_support_legacy.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt | STRING |
| HIGH | …el/standard_default_build_script_extra_dependencies.py | 0 | \ 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.py | 0 | \ 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.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: false tag: {kwargs.get("tag", "")} | STRING |
| HIGH | …lates/wheel/standard_default_build_script_artifacts.py | 0 | \ 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.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: false tag: {kwargs.get("tag", "")} | STRING |
| HIGH | …tandard_default_build_script_configured_build_hooks.py | 0 | \ wheel-version: 1.0 generator: hatchling {__version__} root-is-purelib: false tag: {kwargs.get("tag", "")} | STRING |
| HIGH | …ts/helpers/templates/wheel/standard_default_symlink.py | 0 | \ 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.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt r | STRING |
| HIGH | …d_default_build_script_force_include_no_duplication.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt r | STRING |
| HIGH | …lates/wheel/standard_default_build_script_artifacts.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt r | STRING |
| HIGH | …/templates/wheel/standard_default_python_constraint.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt r | STRING |
| HIGH | …s/wheel/standard_default_build_script_force_include.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt r | STRING |
| HIGH | …tandard_default_build_script_configured_build_hooks.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt r | STRING |
| HIGH | …ts/helpers/templates/wheel/standard_default_symlink.py | 0 | \ metadata-version: {default_metadata_version} name: {kwargs["project_name"]} version: 0.0.1 license-file: license.txt r | STRING |
| 41 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 1 | CODE | |
| LOW | tests/utils/test_runner.py | 1 | CODE | |
| LOW | tests/backend/builders/test_wheel.py | 1 | CODE | |
| LOW | tests/backend/builders/test_binary.py | 1 | CODE | |
| LOW | tests/backend/utils/test_macos.py | 1 | CODE | |
| LOW | tests/cli/test/test_test.py | 1 | CODE | |
| LOW | tests/cli/fmt/test_fmt.py | 1 | CODE | |
| LOW | tests/cli/check/test_check_types.py | 1 | CODE | |
| LOW | tests/cli/check/test_check_fmt.py | 1 | CODE | |
| LOW | tests/cli/check/test_check_group.py | 1 | CODE | |
| LOW | tests/cli/check/test_check_code.py | 1 | CODE | |
| LOW | tests/helpers/helpers.py | 1 | CODE | |
| LOW | release/macos/build_pkg.py | 8 | CODE | |
| LOW | release/unix/make_scripts_portable.py | 1 | CODE | |
| LOW | release/windows/make_scripts_portable.py | 1 | CODE | |
| LOW | backend/src/hatchling/build.py | 1 | CODE | |
| LOW | backend/src/hatchling/ouroboros.py | 1 | CODE | |
| LOW | backend/src/hatchling/ouroboros.py | 8 | CODE | |
| LOW | backend/src/hatchling/builders/binary.py | 1 | CODE | |
| LOW | backend/src/hatchling/builders/macos.py | 1 | CODE | |
| LOW | backend/src/hatchling/builders/config.py | 1 | CODE | |
| LOW | backend/src/hatchling/builders/custom.py | 1 | CODE | |
| LOW | backend/src/hatchling/builders/sdist.py | 1 | CODE | |
| LOW | backend/src/hatchling/builders/utils.py | 1 | CODE | |
| LOW | backend/src/hatchling/builders/app.py | 1 | CODE | |
| LOW | backend/src/hatchling/builders/wheel.py | 1 | CODE | |
| LOW | backend/src/hatchling/builders/plugin/hooks.py | 1 | CODE | |
| LOW | backend/src/hatchling/builders/plugin/interface.py | 1 | CODE | |
| LOW | backend/src/hatchling/builders/hooks/version.py | 1 | CODE | |
| LOW | backend/src/hatchling/builders/hooks/custom.py | 1 | CODE | |
| LOW | backend/src/hatchling/builders/hooks/plugin/hooks.py | 1 | CODE | |
| LOW | …ckend/src/hatchling/builders/hooks/plugin/interface.py | 1 | CODE | |
| LOW | backend/src/hatchling/licenses/supported.py | 1 | CODE | |
| LOW | backend/src/hatchling/bridge/app.py | 1 | CODE | |
| LOW | backend/src/hatchling/plugin/utils.py | 1 | CODE | |
| LOW | backend/src/hatchling/plugin/manager.py | 1 | CODE | |
| LOW | backend/src/hatchling/utils/context.py | 1 | CODE | |
| LOW | backend/src/hatchling/utils/fs.py | 1 | CODE | |
| LOW | backend/src/hatchling/cli/version/__init__.py | 1 | CODE | |
| LOW | backend/src/hatchling/cli/dep/__init__.py | 1 | CODE | |
| LOW | backend/src/hatchling/cli/dep/core.py | 1 | CODE | |
| LOW | backend/src/hatchling/cli/metadata/__init__.py | 1 | CODE | |
| LOW | backend/src/hatchling/version/core.py | 1 | CODE | |
| LOW | backend/src/hatchling/version/scheme/standard.py | 1 | CODE | |
| LOW | backend/src/hatchling/version/scheme/plugin/hooks.py | 1 | CODE | |
| LOW | …ckend/src/hatchling/version/scheme/plugin/interface.py | 1 | CODE | |
| LOW | backend/src/hatchling/version/source/env.py | 1 | CODE | |
| LOW | backend/src/hatchling/version/source/code.py | 1 | CODE | |
| LOW | backend/src/hatchling/version/source/plugin/hooks.py | 1 | CODE | |
| LOW | …ckend/src/hatchling/version/source/plugin/interface.py | 1 | CODE | |
| LOW | backend/src/hatchling/dep/core.py | 1 | CODE | |
| LOW | backend/src/hatchling/metadata/custom.py | 1 | CODE | |
| LOW | backend/src/hatchling/metadata/core.py | 1 | CODE | |
| LOW | backend/src/hatchling/metadata/spec.py | 1 | CODE | |
| LOW | backend/src/hatchling/metadata/utils.py | 1 | CODE | |
| LOW | backend/src/hatchling/metadata/plugin/hooks.py | 1 | CODE | |
| LOW | backend/src/hatchling/metadata/plugin/interface.py | 1 | CODE | |
| LOW | docs/.hooks/render_default_test_env.py | 1 | CODE | |
| LOW | docs/.hooks/render_ruff_defaults.py | 1 | CODE | |
| LOW | scripts/update_distributions.py | 1 | CODE | |
| 58 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | tests/conftest.py | 240 | CODE | |
| LOW | tests/project/test_config.py | 19 | CODE | |
| LOW | tests/helpers/helpers.py | 65 | CODE | |
| LOW | release/unix/make_scripts_portable.py | 9 | CODE | |
| LOW | release/windows/make_scripts_portable.py | 35 | CODE | |
| LOW | backend/tests/downstream/integrate.py | 108 | CODE | |
| LOW | backend/src/hatchling/builders/binary.py | 50 | CODE | |
| LOW | backend/src/hatchling/builders/config.py | 606 | CODE | |
| LOW | backend/src/hatchling/builders/config.py | 765 | CODE | |
| LOW | backend/src/hatchling/builders/config.py | 829 | CODE | |
| LOW | backend/src/hatchling/builders/sdist.py | 167 | CODE | |
| LOW | backend/src/hatchling/builders/sdist.py | 218 | CODE | |
| LOW | backend/src/hatchling/builders/wheel.py | 549 | CODE | |
| LOW | backend/src/hatchling/builders/wheel.py | 680 | CODE | |
| LOW | backend/src/hatchling/builders/wheel.py | 829 | CODE | |
| LOW | backend/src/hatchling/builders/plugin/interface.py | 209 | CODE | |
| LOW | backend/src/hatchling/builders/plugin/interface.py | 241 | CODE | |
| LOW | backend/src/hatchling/cli/dep/core.py | 44 | CODE | |
| LOW | backend/src/hatchling/cli/metadata/__init__.py | 7 | CODE | |
| LOW | backend/src/hatchling/version/scheme/standard.py | 18 | CODE | |
| LOW | backend/src/hatchling/metadata/core.py | 81 | CODE | |
| LOW | backend/src/hatchling/metadata/core.py | 180 | CODE | |
| LOW | backend/src/hatchling/metadata/core.py | 495 | CODE | |
| LOW | backend/src/hatchling/metadata/core.py | 659 | CODE | |
| LOW | backend/src/hatchling/metadata/core.py | 777 | CODE | |
| LOW | backend/src/hatchling/metadata/core.py | 846 | CODE | |
| LOW | backend/src/hatchling/metadata/core.py | 1115 | CODE | |
| LOW | backend/src/hatchling/metadata/core.py | 1167 | CODE | |
| LOW | backend/src/hatchling/metadata/core.py | 1227 | CODE | |
| LOW | backend/src/hatchling/metadata/spec.py | 70 | CODE | |
| LOW | backend/src/hatchling/metadata/spec.py | 278 | CODE | |
| LOW | backend/src/hatchling/metadata/spec.py | 355 | CODE | |
| LOW | backend/src/hatchling/metadata/spec.py | 441 | CODE | |
| LOW | backend/src/hatchling/metadata/spec.py | 527 | CODE | |
| LOW | backend/src/hatchling/metadata/spec.py | 618 | CODE | |
| LOW | scripts/validate_history.py | 12 | CODE | |
| LOW | scripts/generate_coverage_summary.py | 14 | CODE | |
| LOW | src/hatch/python/resolve.py | 57 | CODE | |
| LOW | src/hatch/python/core.py | 82 | CODE | |
| LOW | src/hatch/config/model.py | 15 | CODE | |
| LOW | src/hatch/config/model.py | 100 | CODE | |
| LOW | src/hatch/config/model.py | 143 | CODE | |
| LOW | src/hatch/config/model.py | 171 | CODE | |
| LOW | src/hatch/config/model.py | 283 | CODE | |
| LOW | src/hatch/config/model.py | 317 | CODE | |
| LOW | src/hatch/config/model.py | 340 | CODE | |
| LOW | src/hatch/config/model.py | 460 | CODE | |
| LOW | src/hatch/config/model.py | 491 | CODE | |
| LOW | src/hatch/config/model.py | 543 | CODE | |
| LOW | src/hatch/config/model.py | 595 | CODE | |
| LOW | src/hatch/template/default.py | 17 | CODE | |
| LOW | src/hatch/utils/dep.py | 59 | CODE | |
| LOW | src/hatch/utils/structures.py | 12 | CODE | |
| LOW | src/hatch/cli/terminal.py | 187 | CODE | |
| LOW | src/hatch/cli/__init__.py | 97 | CODE | |
| LOW | src/hatch/cli/application.py | 54 | CODE | |
| LOW | src/hatch/cli/application.py | 102 | CODE | |
| LOW | src/hatch/cli/types/core.py | 110 | CODE | |
| LOW | src/hatch/cli/test/__init__.py | 36 | CODE | |
| LOW | src/hatch/cli/python/install.py | 29 | CODE | |
| 18 more matches not shown… | ||||
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/src/hatchling/metadata/core.py | 1529 | except Exception as e: # noqa: BLE001 | CODE |
| MEDIUM | scripts/release_github.py | 24 | print(f"Error creating tag: {e}") | CODE |
| LOW | src/hatch/config/model.py | 478 | except Exception: # noqa: BLE001 | CODE |
| LOW | src/hatch/config/model.py | 509 | except Exception: # noqa: BLE001 | CODE |
| LOW | src/hatch/template/default.py | 47 | except Exception: # noqa: BLE001, S112 | CODE |
| LOW | src/hatch/cli/__init__.py | 244 | except Exception: # noqa: BLE001 | CODE |
| LOW | src/hatch/cli/application.py | 58 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | src/hatch/cli/application.py | 121 | except Exception as e: # noqa: BLE001 | CODE |
| LOW⚡ | src/hatch/cli/types/core.py | 174 | except Exception: # noqa: BLE001 | CODE |
| LOW⚡ | src/hatch/cli/types/core.py | 187 | except Exception: # noqa: BLE001 | CODE |
| LOW | src/hatch/cli/test/__init__.py | 169 | except Exception: # noqa: BLE001, S110 | CODE |
| LOW | src/hatch/cli/new/__init__.py | 65 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | src/hatch/project/core.py | 191 | except Exception: | CODE |
| LOW | src/hatch/project/core.py | 272 | except Exception as e: # noqa: BLE001 | CODE |
| LOW | src/hatch/publish/index.py | 115 | except Exception: # no cov # noqa: BLE001 | CODE |
| LOW | src/hatch/publish/index.py | 126 | except Exception as e: # noqa: BLE001 | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| MEDIUM | tests/utils/test_auth.py | 6 | # Create a fake home directory | COMMENT |
| MEDIUM | tests/backend/builders/hooks/test_version.py | 94 | # This file is auto-generated by Hatchling. As such, do not: | STRING |
| MEDIUM | tests/backend/builders/hooks/test_version.py | 134 | # This file is auto-generated by Hatchling. As such, do not: | STRING |
| MEDIUM | tests/dep/test_sync.py | 221 | # Create a dependency with a path containing URL-encoded special character | COMMENT |
| MEDIUM | backend/src/hatchling/version/core.py | 8 | # This file is auto-generated by Hatchling. As such, do not: | COMMENT |
| MEDIUM | src/hatch/project/config.py | 374 | # Create the environment's initial configuration | COMMENT |
| MEDIUM | src/hatch/dep/sync.py | 147 | # This function is unused and only temporarily exists for plugin backwards compatibility. | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/src/hatchling/build.py | 6 | __all__ = [ | CODE |
| LOW | backend/src/hatchling/builders/macos.py | 7 | __all__ = ["process_macos_plat_tag"] | CODE |
| LOW | backend/src/hatchling/builders/config.py | 820 | def set_exclude_all(self) -> None: | CODE |
| LOW | backend/src/hatchling/builders/utils.py | 123 | def set_zip_info_mode(zip_info: ZipInfo, mode: int = 0o644) -> None: | CODE |
| LOW | backend/src/hatchling/builders/plugin/interface.py | 421 | def set_build_data_defaults(self, build_data: dict[str, Any]) -> None: # noqa: PLR6301 | CODE |
| LOW | backend/src/hatchling/version/core.py | 45 | def set_version(self, version: str) -> None: | STRING |
| LOW | backend/src/hatchling/version/source/env.py | 27 | def set_version(self, version: str, version_data: dict) -> None: | CODE |
| LOW | backend/src/hatchling/version/source/code.py | 62 | def set_version(self, version: str, version_data: dict) -> None: | CODE |
| LOW | backend/src/hatchling/version/source/regex.py | 28 | def set_version(self, version: str, version_data: dict) -> None: # noqa: PLR6301 | CODE |
| LOW | …ckend/src/hatchling/version/source/plugin/interface.py | 65 | def set_version(self, version: str, version_data: dict) -> None: | CODE |
| LOW | src/hatch/project/env.py | 420 | def update_dependency_hash(self, environment: EnvironmentInterface, dependency_hash: str) -> None: | CODE |
| LOW | src/hatch/project/core.py | 76 | def set_path(self, path: Path) -> None: | CODE |
| LOW | src/hatch/project/core.py | 79 | def set_app(self, app: Application) -> None: | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| CRITICAL | backend/src/hatchling/builders/binary.py | 60 | if self.builder.metadata.core.python_constraint.contains(supported_version): | CODE |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | backend/src/hatchling/build.py | 81 | COMMENT | |
| LOW | docs/how-to/run/python-scripts.md | 61 | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | src/hatch/cli/types/core.py | 204 | # Check if the marker excludes the current platform | COMMENT |
| Severity | File | Line | Snippet | Context |
|---|---|---|---|---|
| LOW | docs/config/environment/overview.md | 370 | Lorem ipsum ... | CODE |