Repository Analysis

Nuitka/Nuitka

Nuitka is a Python compiler written in Python. It's fully compatible with Python 2.6, 2.7, 3.4-3.13. You feed it your Python app, it does a lot of clever things, and spits out an executable or extension module.

23.6 Moderate AI signal View on GitHub
23.6
Adjusted Score
23.6
Raw Score
100%
Time Factor
2026-05-30
Last Push
14,874
Stars
Python
Language
285,461
Lines of Code
1113
Files
3376
Pattern Hits
2026-05-31
Scan Date

Score History

Severity Breakdown

CRITICAL 0HIGH 806MEDIUM 118LOW 2452

Pattern Findings

3376 matches across 15 categories. Click a row to expand file-level details.

Cross-File Repetition748 hits · 3740 pts
SeverityFileLineSnippet
HIGH…ls/example_package_and_module/some_package/__init__.py0module to be imported and report its name as evidence of usage.
HIGH…ils/example_multiple_packages/some_package/__init__.py0module to be imported and report its name as evidence of usage.
HIGH…ls/example_multiple_packages/other_package/__init__.py0module to be imported and report its name as evidence of usage.
HIGH…s/example_multiple_packages/some_package_b/__init__.py0module to be imported and report its name as evidence of usage.
HIGH…/example_multiple_packages/other_package_a/__init__.py0module to be imported and report its name as evidence of usage.
HIGH…s/example_multiple_packages/some_package_a/__init__.py0module to be imported and report its name as evidence of usage.
HIGHnuitka/nodes/VariableAssignNodes.py0does this assignment node have a very trusted value.
HIGHnuitka/nodes/VariableAssignNodes.py0does this assignment node have a very trusted value.
HIGHnuitka/nodes/VariableAssignNodes.py0does this assignment node have a very trusted value.
HIGHnuitka/nodes/VariableAssignNodes.py0does this assignment node have a very trusted value.
HIGHnuitka/nodes/VariableAssignNodes.py0does this assignment node have a very trusted value.
HIGHnuitka/nodes/VariableAssignNodes.py0does this assignment node have a very trusted value.
HIGHnuitka/nodes/VariableAssignNodes.py0does this assignment node have a very trusted value.
HIGHnuitka/nodes/VariableAssignNodes.py0does this assignment node have a very trusted value.
HIGHnuitka/nodes/VariableAssignNodes.py0\ assignment raises exception in assigned value, removed assignment.
HIGHnuitka/nodes/VariableAssignNodes.py0\ assignment raises exception in assigned value, removed assignment.
HIGHnuitka/nodes/VariableAssignNodes.py0\ assignment raises exception in assigned value, removed assignment.
HIGHnuitka/nodes/VariableAssignNodes.py0\ removed assignment of %s from itself which is known to be defined.
HIGHnuitka/nodes/VariableAssignNodes.py0\ removed assignment of %s from itself which is known to be defined.
HIGHnuitka/nodes/VariableAssignNodes.py0\ removed assignment of %s from itself which is known to be defined.
HIGHnuitka/nodes/IterationHandles.py0tries to return constant value at the given index. parameters ---------- value_index : int index value of the element to
HIGHnuitka/nodes/IterationHandles.py0tries to return constant value at the given index. parameters ---------- value_index : int index value of the element to
HIGHnuitka/nodes/IterationHandles.py0tries to return constant value at the given index. parameters ---------- value_index : int index value of the element to
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
HIGHnuitka/nodes/ChildrenHavingMixins.py0named children dictionary. for use in cloning nodes, debugging and xml output.
688 more matches not shown…
Over-Commented Block1440 hits · 1438 pts
SeverityFileLineSnippet
LOWrequirements.txt21# Plugins need that, but there is an inline copy for old versions too.
LOWrequirements.txt41# See the License for the specific language governing permissions and
LOWpyproject.toml41 "**/node_modules",
LOWpyproject.toml61# distributed under the License is distributed on an "AS IS" BASIS,
LOWsetup.py521 verbose=0,
LOW.sourcery.yaml1# Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
LOW.sourcery.yaml21#
LOWmisc/dump-config-options.py1# Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
LOWmisc/dump-config-options.py21#
LOWmisc/vscode_config_gen.py261
LOWmisc/make-coverage-rendering.py81 # Clean up after ourselves again.
LOWmisc/make-coverage-rendering.py101# distributed under the License is distributed on an "AS IS" BASIS,
LOWmisc/make-version-bump.py21# integrates with CPython, but also works on its own.
LOWmisc/make-deb-mentors-release.py21# integrates with CPython, but also works on its own.
LOWmisc/create-pbuilder-image.py61 target_filename = codename + ".tgz"
LOWmisc/create-pbuilder-image.py81# Unless required by applicable law or agreed to in writing, software
LOWmisc/make-upload.py61# Part of "Nuitka", an optimizing Python compiler that is compatible and
LOWmisc/make-apidoc.py21# integrates with CPython, but also works on its own.
LOWmisc/run-valgrind.py101# https://www.gnu.org/licenses/agpl-3.0.txt
LOWmisc/make-deb-release.py21# integrates with CPython, but also works on its own.
LOWmisc/update-doc.py21# integrates with CPython, but also works on its own.
LOWmisc/make-pypi-upload.py21# integrates with CPython, but also works on its own.
LOWmisc/make-release.py61print("Finished.")
LOWmisc/install-git-hooks.py141# https://www.gnu.org/licenses/agpl-3.0.txt
LOWbin/compile-python-for-nuitka-mac.sh201if [ "$CLEANUP" = true ]; then
LOWbin/compile-python-for-nuitka-mac.sh221# distributed under the License is distributed on an "AS IS" BASIS,
LOWbin/compile-python-for-nuitka-linux.sh221# You may obtain a copy of the License at
LOWtests/distutils/run_all.py421 except NuitkaCalledProcessError:
LOWtests/distutils/run_all.py441# Unless required by applicable law or agreed to in writing, software
LOW…s/distutils/example_5_versioneer_setuptools32/setup.py21
LOW…/distutils/example_5_versioneer_setuptools32/setup.cfg1# Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
LOW…/distutils/example_5_versioneer_setuptools32/setup.cfg21# See the License for the specific language governing permissions and
LOW…tutils/example_5_versioneer_setuptools32/versioneer.py141
LOW…tutils/example_5_versioneer_setuptools32/versioneer.py161
LOW…tutils/example_5_versioneer_setuptools32/versioneer.py201 write_to_version_file(target_versionfile, versions)
LOW…tutils/example_5_versioneer_setuptools32/versioneer.py221# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
LOW…ple_5_versioneer_setuptools32/some_package/_version.py1# Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
LOW…ple_5_versioneer_setuptools32/some_package/_version.py21 return {
LOW…ple_5_versioneer_setuptools32/some_package/_version.py41# Unless required by applicable law or agreed to in writing, software
LOW…ple_5_versioneer_setuptools32/some_package/__init__.py1# Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
LOW…ple_5_versioneer_setuptools32/some_package/__init__.py21# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
LOW…3_dependencies_poetry_pyproject/pyproject.cpython.toml21requires = ["poetry-core>=1.0.0"]
LOW…_3_dependencies_poetry_pyproject/pyproject.nuitka.toml21requires = ["nuitka", "poetry-core>=1.0.0"]
LOW…ls/example_3_dependencies_poetry_pyproject/src/main.py21# indicated.
LOW…ts/distutils/example_package_and_module/some_module.py1# Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
LOW…ts/distutils/example_package_and_module/some_module.py21# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
LOWtests/distutils/example_package_and_module/setup.py21
LOW…ls/example_package_and_module/some_package/__init__.py1# Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
LOW…ls/example_package_and_module/some_package/__init__.py21# Unless required by applicable law or agreed to in writing, software
LOW…s/distutils/example_3_pyproject/pyproject.cpython.toml21[tool.setuptools.packages.find]
LOW…ts/distutils/example_3_pyproject/pyproject.nuitka.toml21[tool.setuptools.packages.find]
LOW…_pyproject/src/some_namespace/some_package/__init__.py1# Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
LOW…_pyproject/src/some_namespace/some_package/__init__.py21#
LOW…rc/some_namespace/some_package/sub_package/__init__.py21# Licensed under the Apache License, Version 2.0 (the "License");
LOWtests/distutils/example_multiple_packages/setup.py21 "other_package_a",
LOWtests/distutils/example_multiple_packages/setup.py41# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
LOW…sts/distutils/example_multiple_packages/main_module.py1# Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
LOW…sts/distutils/example_multiple_packages/main_module.py21# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
LOW…ils/example_multiple_packages/some_package/__init__.py1# Copyright 2026, Kay Hayen, mailto:kay.hayen@gmail.com find license text at end of file
LOW…ils/example_multiple_packages/some_package/__init__.py21# Unless required by applicable law or agreed to in writing, software
1380 more matches not shown…
Deep Nesting404 hits · 398 pts
SeverityFileLineSnippet
LOWsetup.py299
LOWtests/distutils/run_all.py121
LOWtests/basics/OrderChecksTest.py532
LOWtests/basics/OrderChecksTest.py597
LOWtests/basics/LoopingTest.py15
LOWtests/basics/run_all.py35
LOWtests/PyPI-pytest/run_all.py67
LOWtests/library/check_yaml_anti_bloat_modules.py48
LOWtests/library/compile_extension_modules.py100
LOWtests/programs/run_all.py132
LOWtests/programs/multiprocessing_using/foo/entry.py13
LOWtests/optimizations/run_all.py86
LOWtests/optimizations/run_all.py168
LOWtests/reflected/compile_itself.py301
LOWtests/reflected/compile_itself.py429
LOWtests/benchmarks/pystone3.py213
LOWtests/benchmarks/pybench/Constructs.py12
LOWtests/benchmarks/pybench/Constructs.py479
LOWlib/hints.py76
LOWnuitka/PythonOperators.py111
LOWnuitka/PythonOperators.py158
LOWnuitka/Tracing.py78
LOWnuitka/SourceCodeReferences.py46
LOWnuitka/PythonFlavors.py100
LOWnuitka/PythonFlavors.py304
LOWnuitka/PythonFlavors.py476
LOWnuitka/PythonVersions.py429
LOWnuitka/PythonVersions.py584
LOWnuitka/Variables.py477
LOWnuitka/Variables.py240
LOWnuitka/Variables.py255
LOWnuitka/Constants.py29
LOWnuitka/Constants.py123
LOWnuitka/Constants.py193
LOWnuitka/Constants.py242
LOWnuitka/Constants.py281
LOWnuitka/Constants.py364
LOWnuitka/HardImportRegistry.py221
LOWnuitka/MainControl.py494
LOWnuitka/Bytecodes.py31
LOWnuitka/PostProcessing.py131
LOWnuitka/Progress.py322
LOWnuitka/Progress.py466
LOWnuitka/__main__.py74
LOWnuitka/Serialization.py99
LOWnuitka/Serialization.py190
LOWnuitka/OutputDirectories.py225
LOWnuitka/tree/SourceHandling.py129
LOWnuitka/tree/SourceHandling.py252
LOWnuitka/tree/SourceHandling.py370
LOWnuitka/tree/ReformulationSubscriptExpressions.py27
LOWnuitka/tree/VariableClosure.py89
LOWnuitka/tree/VariableClosure.py138
LOWnuitka/tree/VariableClosure.py256
LOWnuitka/tree/VariableClosure.py344
LOWnuitka/tree/VariableClosure.py438
LOWnuitka/tree/Building.py339
LOWnuitka/tree/Building.py649
LOWnuitka/tree/Building.py689
LOWnuitka/tree/Building.py1069
344 more matches not shown…
Excessive Try-Catch Wrapping260 hits · 340 pts
SeverityFileLineSnippet
MEDIUMmisc/vscode_config_gen.py65 print("Error: vswhere.exe not found.")
MEDIUMmisc/vscode_config_gen.py89 print("Error: Failed to run vswhere.exe")
MEDIUMmisc/vscode_config_gen.py93 print("Error: No suitable Visual Studio installation found.")
MEDIUMmisc/vscode_config_gen.py112 print("Error: No MSVC versions found.")
MEDIUMmisc/vscode_config_gen.py115 print("Error: MSVC directory not found.")
MEDIUMmisc/vscode_config_gen.py129 print(f"Error: Compiler not found at {compiler_path}")
MEDIUM…tutils/example_5_uv_pyproject/src/example_uv/runner.py35 print("Error: data_included.txt missing in example_uv.subpackage")
MEDIUM…/example_6_uv_pyproject_flat/example_uv_flat/runner.py32 print("Error: data_included.txt missing in example_uv_flat.subpackage")
LOWtests/basics/OrderChecksTest.py374 except Exception as e:
LOWtests/basics/OrderChecksTest.py384 except Exception as e:
LOWtests/basics/OrderChecksTest.py392 except Exception as e:
LOWtests/basics/OrderChecksTest.py400 except Exception as e:
LOWtests/basics/OrderChecksTest.py405 except Exception as e:
LOWtests/basics/OrderChecksTest.py429 except Exception as e:
LOWtests/basics/OrderChecksTest.py437 except Exception as e:
LOWtests/basics/OrderChecksTest.py445 except Exception as e:
LOWtests/basics/OrderChecksTest.py450 except Exception as e:
LOWtests/basics/OrderChecksTest.py464 except Exception as e:
LOWtests/basics/OrderChecksTest.py472 except Exception as e:
LOWtests/basics/OrderChecksTest.py480 except Exception as e:
LOWtests/basics/OrderChecksTest.py488 except Exception as e:
LOWtests/basics/OrderChecksTest.py496 except Exception as e:
LOWtests/basics/OrderChecksTest.py504 except Exception as e:
LOWtests/basics/OrderChecksTest.py512 except Exception as e:
LOWtests/basics/OrderChecksTest.py182 except Exception as e:
LOWtests/basics/BuiltinsTest.py248except Exception as e:
LOWtests/basics/BuiltinsTest.py255except Exception as e:
LOWtests/basics/BuiltinsTest.py262except Exception as e:
LOWtests/basics/BuiltinsTest.py311except Exception as e:
LOWtests/basics/BuiltinsTest.py319except Exception as e:
LOWtests/basics/BuiltinsTest.py324except Exception as e:
LOWtests/basics/BuiltinsTest.py329except Exception as e:
LOWtests/basics/BuiltinsTest.py334except Exception as e:
LOWtests/basics/BuiltinsTest.py339except Exception as e:
LOWtests/basics/BuiltinsTest.py344except Exception as e:
LOWtests/basics/BuiltinsTest.py670except Exception as e:
LOWtests/basics/BuiltinsTest.py676except Exception as e:
LOWtests/basics/BuiltinsTest.py682except Exception as e:
LOWtests/basics/BuiltinsTest.py708except Exception as e:
LOWtests/basics/BuiltinsTest.py714except Exception as e:
LOWtests/basics/BuiltinsTest.py720except Exception as e:
LOWtests/basics/BuiltinsTest.py32 except Exception as e:
LOWtests/basics/BuiltinsTest.py50 except Exception as e:
LOWtests/basics/BuiltinsTest.py280except Exception as e:
LOWtests/basics/BuiltinsTest.py285except Exception as e:
LOWtests/basics/BuiltinsTest.py376except Exception as e:
LOWtests/basics/BuiltinsTest.py397except Exception as e:
LOWtests/basics/BuiltinsTest.py402except Exception as e:
LOWtests/basics/BuiltinsTest.py639except Exception as e:
LOWtests/basics/OperatorsTest.py77except Exception as e:
LOWtests/basics/YieldFromTest33.py47 except Exception as e:
LOWtests/basics/YieldFromTest33.py55 except Exception as e:
LOWtests/basics/YieldFromTest33.py65 except Exception as e:
LOWtests/basics/ReferencingTest33.py70 except Exception: # different to Nuitka, pylint: disable=broad-except
LOWtests/basics/ReferencingTest33.py218 except Exception: # pylint: disable=broad-except
LOWtests/basics/ReferencingTest33.py230 except Exception: # pylint: disable=broad-except
MEDIUMtests/basics/ReferencingTest33.py57def simpleFunction3():
MEDIUMtests/basics/ReferencingTest33.py152def simpleFunction11():
LOWtests/basics/BuiltinSuperTest.py33 except Exception as e:
LOWtests/basics/BuiltinSuperTest.py48 except Exception as e:
200 more matches not shown…
Unused Imports333 hits · 303 pts
SeverityFileLineSnippet
LOW…ls/example_3_dependencies_poetry_pyproject/src/main.py4
LOW…ts/distutils/example_package_and_module/some_module.py4
LOW…ls/example_package_and_module/some_package/__init__.py6
LOW…_pyproject/src/some_namespace/some_package/__init__.py4
LOW…rc/some_namespace/some_package/sub_package/__init__.py4
LOW…sts/distutils/example_multiple_packages/main_module.py4
LOW…ils/example_multiple_packages/some_package/__init__.py6
LOW…ls/example_multiple_packages/other_package/__init__.py6
LOW…s/example_multiple_packages/some_package_b/__init__.py6
LOW…/example_multiple_packages/other_package_a/__init__.py6
LOW…s/example_multiple_packages/some_package_a/__init__.py6
LOW…sts/distutils/example_2_setuptools/package1/module1.py5
LOW…sts/distutils/example_2_setuptools/package1/module2.py4
LOW…ample_2_setuptools/package1/subpackage1/submodule11.py4
LOW…ample_2_setuptools/package1/subpackage2/submodule21.py4
LOW…ts/distutils/example_pymodules_only/py_modules_only.py5
LOW…mple_4_dependencies_pyproject/src/example4/__init__.py4
LOWtests/basics/OrderChecksTest.py4
LOWtests/basics/GeneratorExpressionsTest.py6
LOWtests/basics/InspectionTest.py6
LOWtests/basics/ModuleAttributesTest.py8
LOWtests/basics/BuiltinsTest.py11
LOWtests/basics/OperatorsTest.py4
LOWtests/basics/InplaceOperationsTest.py4
LOWtests/basics/DecoratorsTest.py4
LOWtests/basics/FutureTest32.py4
LOWtests/basics/ClassesTest.py4
LOWtests/basics/ComparisonChainsTest.py6
LOWtests/basics/BuiltinSuperTest.py13
LOWtests/basics/ImportingTest.py4
LOWtests/basics/ImportingTest.py37
LOWtests/basics/ImportingTest.py48
LOWtests/basics/ImportingTest.py67
LOWtests/basics/FunctionsTest.py6
LOWtests/basics/AssertsTest.py6
LOWtests/basics/LoopingTest.py6
LOWtests/basics/TryExceptFinallyTest.py4
LOWtests/basics/LambdasTest.py4
LOWtests/basics/GlobalStatementTest.py4
LOWtests/basics/DoubleDeletionsTest.py4
LOWtests/basics/TryContinueFinallyTest.py4
LOWtests/basics/FunctionObjectsTest.py6
LOWtests/basics/MainProgramsTest.py4
LOWtests/basics/ListContractionsTest.py6
LOWtests/basics/BranchingTest.py6
LOWtests/basics/NestedLoopsTest27.py6
LOWtests/basics/ConstantsTest.py8
LOWtests/basics/ExtremeClosureTest.py6
LOWtests/basics/LateClosureAssignmentTest.py4
LOWtests/basics/CoroutinesTest35.py7
LOWtests/basics/TryExceptContinueTest.py4
LOWtests/basics/OrderChecksTest27.py4
LOWtests/basics/TryReturnFinallyTest.py7
LOWtests/basics/TryExceptFramesTest.py4
LOWtests/basics/BuiltinOverload.py4
LOWtests/basics/BigIntOperationsTest.py6
LOWtests/basics/run_xml.py5
LOWtests/basics/run_xml.py20
LOWtests/basics/run_xml.py23
LOWtests/basics/AssignmentsTest.py6
273 more matches not shown…
Docstring Block Structure51 hits · 255 pts
SeverityFileLineSnippet
HIGHnuitka/MainControl.py404Pick the names for the C files of each module. Args: source_dir - the externally usable directory to put mo
HIGHnuitka/tools/quality/pyright/Pyright.py24Find the pyright binary on the system. Args: basedpyright: If True, look for 'basedpyright' instead of 'pyr
HIGHnuitka/specs/ParameterSpecs.py325Match a call arguments to a signature. Args: func_name - Name of the function being matched, used to constr
HIGHnuitka/plugins/Plugins.py262Decide if a plugin is active. Args: plugin_name - name of the plugin Notes: Detectors do not c
HIGHnuitka/plugins/Plugins.py1408Let plugins decide whether to suppress import warnings for an unknown module. Notes: If all plugins
HIGHnuitka/plugins/Plugins.py2126Activate selected plugin classes Args: None Notes: This creates actual plugin instances, befor
HIGHnuitka/plugins/Hooks.py262Let plugins decide whether to suppress import warnings for an unknown module. Notes: If all plugins return
HIGHnuitka/plugins/PluginBase.py567Indicate whether an implicitly imported module should be accepted. Notes: You may negate importing
HIGHnuitka/plugins/PluginBase.py594Inspect or modify source code. Args: module_name: (str) name of module source_code: (st
HIGHnuitka/plugins/PluginBase.py645Create code to execute before importing a module. Notes: Called by @onModuleDiscovered. Ar
HIGHnuitka/plugins/PluginBase.py662Create code to execute after loading to a module. Notes: Called by @onModuleDiscovered. Ar
HIGHnuitka/plugins/PluginBase.py680Create module to depend on. Notes: Called by @onModuleDiscovered. Args: module
HIGHnuitka/plugins/PluginBase.py716Called with a module to be loaded. Notes: We may specify code to be prepended and/or appended to th
HIGHnuitka/plugins/PluginBase.py824Provide extra modules during the optimization module loop. Args: module_names - tuple of module nam
HIGHnuitka/plugins/PluginBase.py839Provide extra modules to the initial root module set. Args: module_set - tuple of modules R
HIGHnuitka/plugins/PluginBase.py1225Decide whether to compile a module (or just use its bytecode). Notes: The first plugin not returnin
HIGHnuitka/plugins/standard/TkinterPlugin.py90This method is called with a module that will be imported. Notes: If the word "tkinter" occurs in i
HIGHnuitka/plugins/standard/TkinterPlugin.py251Provide TCL libraries to the dist folder. Notes: We will provide the copy the TCL/TK directories to
HIGHnuitka/plugins/standard/TkinterPlugin.py360This method checks the source code Notes: We only use it to check whether this is the main module,
HIGHnuitka/plugins/standard/DataFilesPlugin.py264Get dirnames in given subdirectories of the module. Notes: All dirnames in folders below one of the
HIGHnuitka/plugins/standard/PySidePyQtPlugin.py902Method called when a module is being imported. Notes: If full name equals to the binding we insert
HIGHnuitka/plugins/standard/MatplotlibPlugin.py203Method called when a module is being imported. Notes: If full name equals "matplotlib" we insert co
HIGHnuitka/freezer/IncludedDataFiles.py110Convert tags argument to an OrderedSet. Notes: In many places, strings are accepted for tags, convert to Or
HIGHnuitka/freezer/IncludedDataFiles.py982Copy the data files needed for standalone distribution. Notes: This is for data files only, not DLLs or eve
HIGHnuitka/utils/Signing.py176Add the code signature to filenames. Args: filenames - The filenames to be signed. entitlements_fil
HIGHnuitka/utils/Execution.py308Wrap a command for system debugger to call exec Args: command: (iterable of str) args for call to be debugg
HIGHnuitka/utils/Execution.py411Wrap a command for system debugger with subprocess module. Args: args: (list of str) args for call to be de
HIGHnuitka/utils/Importing.py60Import Python module given as a file name. Notes: Provides a Python version independent way to import any s
HIGHnuitka/utils/Importing.py267Given a filename, decide the module name and kind. Args: module_name - file path of the module Returns:
HIGHnuitka/utils/WindowsResources.py222Copy resources from one file to another. Args: source_filename - filename where the resources are taken fro
HIGHnuitka/utils/Shebang.py11Given source code, extract the shebang (#!) part. Notes: This function is less relevant on Windows, because
HIGHnuitka/utils/Shebang.py38Given a filename, extract the shebang (#!) part from it. Notes: This function is less relevant on Windows,
HIGHnuitka/utils/Shebang.py67Given a concrete shebang value, it will extract the binary used. Notes: This function is less relevant on W
HIGHnuitka/utils/ModuleNames.py66Create a module name in a package. Args: - module_name (str or ModuleName) module name to put below
HIGHnuitka/utils/SharedLibraries.py602Update the macOS shared library information for a binary or shared library. Adds the rpath path name `rpath` in the
HIGHnuitka/utils/SharedLibraries.py654Find the pywin32 DLL directory Args: None Returns: path to the pywin32 DLL directory or None
HIGHnuitka/utils/FileOperations.py127Decide if two paths the same. Args: path1: First path path2: Second path Returns: Bool
HIGHnuitka/utils/FileOperations.py223Make it a relative path, if possible. Args: path: path to work on start: where to start from, defau
HIGHnuitka/utils/FileOperations.py428Get os.path.realpath with Python2 and Windows symlink workaround applied. Args: path: path to get realpath
HIGHnuitka/utils/FileOperations.py483Get os.path.realpath with Python2 and Windows symlink workaround applied. Args: path: path to get realpath
HIGHnuitka/utils/FileOperations.py509Give a sorted listing of a path. Args: path: directory to create a listing from Returns: Sorte
HIGHnuitka/utils/FileOperations.py557Get all files below a given path. Args: path: directory to create a recursive listing from ignore_d
HIGHnuitka/utils/FileOperations.py618Get all directories below a given path. Args: path: directory to create a recursive listing from ig
HIGHnuitka/utils/FileOperations.py678Give a sorted listing of DLLs filenames in a path. Args: path: directory to create a DLL listing from
HIGHnuitka/utils/FileOperations.py710Give a sorted listing of EXE filenames in a path. Args: path: directory to create a DLL listing from
HIGHnuitka/utils/FileOperations.py755Get all directories below a given path. Args: path: directory to create a recursive listing from Retur
HIGHnuitka/utils/FileOperations.py1519Gets the short path name of a given long path. Args: filename - long Windows filename Returns:
HIGHnuitka/utils/FileOperations.py1607Gets the externally usable absolute path for a given relative path. Args: filename - filename, potentially
HIGHnuitka/utils/FileOperations.py1745Return the path a link is pointing too, if any. Args: filename - check this path, need not be a filename
HIGHnuitka/utils/FileOperations.py2068Encode a path to filesystem encoding. Args: path: Path to encode. Returns: Encoded path (bytes
HIGHnuitka/importing/Importing.py299Given a filename, decide the module name and kind. Args: module_name - file path of the module Returns:
Self-Referential Comments36 hits · 72 pts
SeverityFileLineSnippet
MEDIUMmisc/nuitka-completion.bash6# This file is in the public domain.
MEDIUMmisc/nuitka-completion.zsh5# This file is in the public domain.
MEDIUMtests/distutils/run_all.py270 # Create the wheel or standalone binary with Nuitka compilation.
MEDIUM…ple_5_versioneer_setuptools32/some_package/_version.py10# This file is released into the public domain.
MEDIUMnuitka/tree/ReformulationClasses.py64 # This function is the Python2 special case with special re-formulation as
MEDIUMnuitka/tree/ComplexCallHelperFunctions.py4"""This module is providing helper functions for complex call re-formulations.
MEDIUMnuitka/tree/ReformulationAssignmentStatements.py662 # This function is a case driven by returns, pylint: disable=too-many-return-statements
MEDIUMnuitka/tree/ReformulationClasses3.py163 # This function is the Python3 special case with special re-formulation as
MEDIUMnuitka/tools/testing/Common.py248 # Create a temporary directory to work in, automatically remove it in case
MEDIUMnuitka/nodes/LocalsDictNodes.py185 # Create a cloned node with the locals variable.
MEDIUMnuitka/nodes/TypeNodes.py87 # The above code is supposed to catch these in a better way.
MEDIUMnuitka/plugins/standard/UpxPlugin.py20 """This class represents the main logic of the UPX plugin.
MEDIUMnuitka/plugins/standard/SpacyPlugin.py18 """This class represents the main logic of the plugin."""
MEDIUMnuitka/plugins/standard/PlaywrightPlugin.py21 """This class represents the main logic of the plugin."""
MEDIUMnuitka/plugins/standard/GlfwPlugin.py19 """This class represents the main logic of the glfw plugin.
MEDIUMnuitka/plugins/standard/TkinterPlugin.py28 """This class represents the main logic of the TkInter plugin.
MEDIUMnuitka/plugins/standard/TkinterPlugin.py82 """This method is called one time only to check, whether the plugin might make sense at all.
MEDIUMnuitka/plugins/standard/TkinterPlugin.py90 """This method is called with a module that will be imported.
MEDIUMnuitka/plugins/standard/TkinterPlugin.py103 # The following code will be executed before importing the module.
MEDIUMnuitka/plugins/standard/TkinterPlugin.py352 """This method is called one time only to check, whether the plugin might make sense at all.
MEDIUMnuitka/plugins/standard/KivyPlugin.py11 """This class represents the main logic of the plugin."""
MEDIUMnuitka/plugins/standard/MatplotlibPlugin.py25 """This class represents the main logic of the plugin.
MEDIUMnuitka/plugins/standard/PywebViewPlugin.py15 """This class represents the main logic of the plugin."""
MEDIUMnuitka/plugins/standard/DelvewheelPlugin.py23 """This class represents the main logic of the delvewheel plugin.
MEDIUMnuitka/plugins/standard/GeventPlugin.py11 """This class represents the main logic of the plugin."""
MEDIUMnuitka/freezer/Onefile.py306 # Create the bootstrap binary for unpacking.
MEDIUMnuitka/utils/SharedLibraries.py66 # This function is a case driven by returns, pylint: disable=too-many-return-statements
MEDIUMnuitka/utils/Profiling.py198 # Create the instruction counter as the group leader.
MEDIUMnuitka/utils/Profiling.py203 # Create the cycle counter as a member of the same group.
MEDIUMnuitka/code_generation/CodeObjectCodes.py99 # Create the always identical, but dynamic filename first thing.
MEDIUMnuitka/code_generation/ModuleCodes.py127 # Create the always identical, but dynamic filename first thing.
MEDIUMnuitka/code_generation/IteratorCodes.py224 # Creating a temporary node on the fly, knowing it's not used for many
MEDIUMnuitka/containers/OrderedSets.py1"""This module is only an abstraction of OrderedSet which is not present in
MEDIUMnuitka/containers/OrderedDicts.py1"""This module is only an abstraction of OrderedDict as present in 2.7 and 3.x.
MEDIUMnuitka/containers/OrderedSetsFallback.py4"""This module is only an abstraction of OrderedSet which is not present in
MEDIUMnuitka/containers/Namedtuples.py4"""This module is only an abstraction of namedtuple.
Decorative Section Separators20 hits · 60 pts
SeverityFileLineSnippet
MEDIUMtests/basics/NestedLoopsTest27.py178# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py180# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py196# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py198# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py213# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py216# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py309# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py311# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py329# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py331# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py346# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py349# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py380# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py382# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py397# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py399# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py433# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py435# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py451# ---------------------------------------------------------------------------
MEDIUMtests/basics/NestedLoopsTest27.py453# ---------------------------------------------------------------------------
Hyper-Verbose Identifiers33 hits · 33 pts
SeverityFileLineSnippet
LOWtests/basics/YieldFromTest33.py38def test_broken_getattr_handling():
LOWtests/basics/YieldFromTest33.py72def test_throw_caught_subgenerator_handling():
LOWtests/basics/ComparisonChainsTest.py60def function_lambda_with_chain():
LOWtests/basics/ComparisonChainsTest.py73def generator_function_with_chain():
LOWtests/basics/FunctionsTest.py285def generator_without_context_function():
LOWtests/basics/ReferencingTest.py807def method_uncompiled_function(*args, **kwargs):
LOWtests/basics/ReferencingTest.py823 def method_function_with_defaults(self, a, b, c, d=1, e=2, f=3):
LOWtests/basics/ReferencingTest.py1229def local_uncompiled_function(*args, **kwargs):
LOWtests/basics/FunctionsTest_2.py71def nested_args_function_with_defaults((a, b)=default_giver(), c=5):
LOWtests/basics/CoroutinesTest35.py94def run_until_complete_with_send(coro, value):
LOWtests/basics/VarargsTest.py7def plain_list_dict_args_function(plain, *arg_list, **arg_dict):
LOWtests/benchmarks/pybench/systimes.py105def process_time_clock_systimes():
LOWtests/benchmarks/pybench/systimes.py108def wall_clock_clock_systimes():
LOWtests/benchmarks/pybench/systimes.py132def ctypes_getprocesstimes_systimes():
LOWnuitka/distutils/Build.py14 def suppress_known_deprecation():
LOWnuitka/options/BuildPackage.py95def new_egg_info_initialize_options(self):
LOW…ka/plugins/standard/standard.nuitka-package.config.yml3636 def _assert_no_warnings_context(name=None):
LOW…ka/plugins/standard/standard.nuitka-package.config.yml3671 def assert_array_almost_equal(*args, **kwargs):
LOW…ka/plugins/standard/standard.nuitka-package.config.yml6161 def nuitka_compatible_minimize(*args, **kwargs):
LOW…ka/plugins/standard/standard.nuitka-package.config.yml8784 def _nuitka_attribute_type_is_supported_checker_check(self, nn_module):
LOW…ka/plugins/standard/standard.nuitka-package.config.yml8836 def get_assignments_with_compile_ignored_comments(module):
LOW…ka/plugins/standard/standard.nuitka-package.config.yml9371 def _nuitka_make_missing_default_ca_runtime_error():
LOW…ka/plugins/standard/standard.nuitka-package.config.yml9399 def _nuitka_handle_missing_default_ca_store_error(self, http_class, req, **http_conn_args):
LOWnuitka/plugins/standard/TransformersPlugin.py66_transformers_attn_method_code = "def _can_set_attn_implementation("
LOWnuitka/plugins/standard/TransformersPlugin.py67_transformers_experts_method_code = "def _can_set_experts_implementation("
LOWnuitka/plugins/standard/TransformersPlugin.py75def _can_set_attn_implementation_nuitka(cls):
LOWnuitka/plugins/standard/TransformersPlugin.py115def _can_set_experts_implementation_nuitka(cls):
LOWnuitka/plugins/standard/MultiprocessingPlugin.py130 def _fixup_main_from_path_for_nuitka(main_path):
LOWnuitka/plugins/standard/MultiprocessingPlugin.py153def _process_worker_for_nuitka():
LOWnuitka/plugins/standard/DillPlugin/dill-postLoad.py49 def _create_compiled_function(module_name, func_values):
LOW…ka/plugins/standard/DillPlugin/cloudpickle-postLoad.py19 def _create_compiled_function(module_name, func_values):
LOWnuitka/utils/Distributions.py340def _get_pkg_resources_module():
LOWnuitka/utils/Distributions.py350def _get_pkg_resource_distributions():
Cross-Language Confusion7 hits · 32 pts
SeverityFileLineSnippet
HIGHtests/basics/AssignmentsTest.py12# pylint: disable=broad-except,global-variable-undefined,redeclared-assigned-name
HIGHtests/PyPI-pytest/run_all.py59 "cd %s && git fetch -q && git reset -q --hard origin && git clean -q -dfx"
HIGHnuitka/options/Options.py1917the command 'RUN cd /opt/_internal && tar xf static-libs-for-embedding-only.tar.xz' \
HIGHnuitka/tools/release/Release.py197 os.system("umask 0022 && chmod -R a+rX .")
HIGHnuitka/tools/release/osc_upload/__main__.py72rm -rf osc && mkdir osc && cd osc && \
HIGHnuitka/code_generation/LocalsDictCodes.py286 condition="%s == NULL && CHECK_AND_CLEAR_KEY_ERROR_OCCURRED(tstate)"
HIGHnuitka/code_generation/IndexCodes.py27 condition="%s == -1 && HAS_ERROR_OCCURRED(tstate)" % to_name,
Redundant / Tautological Comments21 hits · 30 pts
SeverityFileLineSnippet
LOWnuitka/PythonOperators.py263 # Check if format uses mapping keys.
LOWnuitka/MainControl.py355 # Check if distribution meta data is included, that cannot be used.
LOWnuitka/MainControl.py1236 # Check if the --project expectations are met for data files.
LOWnuitka/Bytecodes.py67 # Check if it's a docstring having node type.
LOWnuitka/Progress.py578 # Check if stdout is a TTY for Rich
LOWnuitka/tree/ReformulationImportStatements.py41 # Check if a __future__ imports really were at the beginning of the file.
LOWnuitka/tree/VariableClosure.py312 # Check if continue and break are properly in loops. If not, raise a
LOWnuitka/tree/ReformulationClasses3.py664 # Check if there are bases, and if there are, go with the type of the
LOWnuitka/options/Options.py2432 # Check if Linux icon requirement is met.
LOWnuitka/options/OptionParsing.py294 # Check if it is a Poetry project
LOWnuitka/options/OptionParsing.py303 # Check if it is a "setuptools" project
LOWnuitka/options/OptionParsing.py323 # Check if it is old-style "setuptools".
LOWnuitka/tools/quality/codespell/__main__.py72 # Check if the word is present in the file, as a substring (e.g. CamelCase).
LOWnuitka/tools/testing/SearchModes.py101 # Check if we become active
LOWnuitka/tools/watch/__main__.py323 # Check if compilation is required.
LOWnuitka/nodes/FutureSpecs.py179 # Check if we are going to give similar results than what we got.
LOWnuitka/plugins/standard/PmwPlugin.py135 # Read the filename and modify it so that it can be bundled with the
LOWnuitka/utils/ThreadedExecutor.py12# Set this to false, to enable actual use of threads. This was found no longer
LOWnuitka/utils/Distributions.py813 # Check if it starts with "nuitka" followed by end of string or a non-name
LOWnuitka/utils/Timing.py146 # Check if its above the provided limit.
LOWnuitka/format/PythonFormatting.py346 # Check if there is a comma after the base class.
Slop Phrases9 hits · 12 pts
SeverityFileLineSnippet
LOWtests/benchmarks/pybench/pybench.py172 If you change a test in some way, don't forget to increase
LOWnuitka/nodes/CodeObjectSpecs.py68 # Strings happens from XML parsing, make sure to convert them.
LOWnuitka/nodes/ExpressionBases.py398 constant=int(iter_length), # make sure to downcast long
LOWnuitka/nodes/VariableRefNodes.py107 constant=int(iter_length), # make sure to downcast long
LOWnuitka/nodes/LoopNodes.py150 # Don't forget to initialize the loop resume traces with the starting point. We use
LOW…ka/plugins/standard/standard.nuitka-package.config.yml8643 # have a "__file__" value, so make sure to ignore it.
LOWnuitka/freezer/Standalone.py733 # Sometimes an extension module is used like a DLL, make sure to
LOWnuitka/code_generation/FrameCodes.py79 # For nested frames, make sure to restore set the type description.
LOWnuitka/code_generation/FrameCodes.py168 # For nested frames, make sure to restore set the type description.
AI Slop Vocabulary4 hits · 10 pts
SeverityFileLineSnippet
LOWnuitka/plugins/standard/SpacyPlugin.py94 # TODO: Can we not just return the OrderedSet.
MEDIUMnuitka/plugins/standard/TkinterPlugin.py304 # TODO: Not very version robust, may we ought to
MEDIUMnuitka/code_generation/ComparisonHelperDefinitions.py109 # TODO: Absolutely possible to shortcut, why aren't we doing it?
MEDIUMnuitka/code_generation/ComparisonHelperDefinitions.py112 # TODO: Absolutely possible to shortcut, why aren't we doing it?
Dead Code4 hits · 8 pts
SeverityFileLineSnippet
MEDIUMtests/basics/BuiltinsTest.py58
MEDIUMtests/basics/ReferencingTest.py1335
MEDIUMtests/basics/ReferencingTest36.py227
MEDIUM…/benchmarks/constructs/CallLambdaExpressionDirectly.py13
Fake / Example Data6 hits · 6 pts
SeverityFileLineSnippet
LOW…istutils/example_5_uv_pyproject/pyproject.cpython.toml11authors = [{name = "Nuitka User", email = "user@example.com"}]
LOW…distutils/example_5_uv_pyproject/pyproject.nuitka.toml11authors = [{name = "Nuitka User", email = "user@example.com"}]
LOW…ils/example_6_uv_pyproject_flat/pyproject.cpython.toml11authors = [{name = "Nuitka User", email = "user@example.com"}]
LOW…tils/example_6_uv_pyproject_flat/pyproject.nuitka.toml11authors = [{name = "Nuitka User", email = "user@example.com"}]
LOW…ka/plugins/standard/standard.nuitka-package.config.yml2286 - 'Lorem ipsum.txt'
LOW…ka/plugins/standard/standard.nuitka-package.config.yml4632 "lorem_ipsum: str = files(__name__).joinpath('Lorem ipsum.txt').read_text()": ''