Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[BUG] v2.5.0 fails to install as a pre-commit hook #258

Open
scottwn opened this issue Feb 3, 2025 · 1 comment · May be fixed by #259
Open

[BUG] v2.5.0 fails to install as a pre-commit hook #258

scottwn opened this issue Feb 3, 2025 · 1 comment · May be fixed by #259
Labels
bug Something isn't working

Comments

@scottwn
Copy link

scottwn commented Feb 3, 2025

After upgrading to 2.5.0, the pycln pre-commit hook fails with an installation error.

~/aliro-orchestrator (BUGFIX-AQC-1570-Update-AQC-frontend-to-use-latest-typings-package-with-pagination-PR-check|●1) $ pre-commit run --all-files --verbose
[INFO] Installing environment for https://github.com/hadialqattan/pycln.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/Users/scott/.cache/pre-commit/repor6dh1oyp/py_env-python3/bin/python', '-mpip', 'install', '.')

To Reproduce Steps to reproduce the behavior:

  1. In your .pre-commit-config.yaml, upgrade to pycln v2.5.0
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

files: '^[:punct:]*code'
exclude: 'migrations/.*'
default_language_version:
  python: python3.12

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: check-yaml
      - id: requirements-txt-fixer
        args:
          - requirements.txt
          - code/dd_service/test_requirements.txt
          - code/dd_service/requirements.txt
          - code/dd_netconf/requirements.txt
          - code/django/requirements.txt
          - playwright-requirements.txt
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.9.3
    hooks:
      - id: ruff
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.9.3
    hooks:
      - id: ruff-format
  - repo: https://github.com/hadialqattan/pycln
    rev: v2.5.0
    hooks:
      - id: pycln
  - repo: https://github.com/Yelp/detect-secrets
    rev: v1.5.0
    hooks:
      - id: detect-secrets
        args: ['--baseline', '.secrets.baseline']
        # Base64-encoded YANG modules trigger false positives in this auto-generated file
        exclude: "code/django/static_data.json" 
  - repo: local
    hooks:
      - id: check-migrations
        name: Check for missing migrations
        entry: python check_migrations.py
        language: python
        verbose: true
  1. Run pre-commit
~/aliro-orchestrator (BUGFIX-AQC-1570-Update-AQC-frontend-to-use-latest-typings-package-with-pagination-PR-check|●1) $ pre-commit run --all-files --verbose
[INFO] Installing environment for https://github.com/hadialqattan/pycln.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/Users/scott/.cache/pre-commit/repor6dh1oyp/py_env-python3/bin/python', '-mpip', 'install', '.')
return code: 1
stdout:
    Processing /Users/scott/.cache/pre-commit/repor6dh1oyp
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Getting requirements to build wheel: started
      Getting requirements to build wheel: finished with status 'done'
      Preparing metadata (pyproject.toml): started
      Preparing metadata (pyproject.toml): finished with status 'done'
    Collecting libcst>=0.3.10 (from pycln==2.5.0)
      Using cached libcst-1.6.0.tar.gz (776 kB)
      Installing build dependencies: started
      Installing build dependencies: finished with status 'done'
      Getting requirements to build wheel: started
      Getting requirements to build wheel: finished with status 'done'
      Preparing metadata (pyproject.toml): started
      Preparing metadata (pyproject.toml): finished with status 'done'
    Collecting pathspec>=0.9.0 (from pycln==2.5.0)
      Using cached pathspec-0.12.1-py3-none-any.whl.metadata (21 kB)
    Collecting pyyaml>=5.3.1 (from pycln==2.5.0)
      Using cached PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl.metadata (2.1 kB)
    Collecting tomlkit>=0.11.1 (from pycln==2.5.0)
      Using cached tomlkit-0.13.2-py3-none-any.whl.metadata (2.7 kB)
    Collecting typer>=0.4.1 (from pycln==2.5.0)
      Using cached typer-0.15.1-py3-none-any.whl.metadata (15 kB)
    Collecting click>=8.0.0 (from typer>=0.4.1->pycln==2.5.0)
      Using cached click-8.1.8-py3-none-any.whl.metadata (2.3 kB)
    Collecting typing-extensions>=3.7.4.3 (from typer>=0.4.1->pycln==2.5.0)
      Using cached typing_extensions-4.12.2-py3-none-any.whl.metadata (3.0 kB)
    Collecting shellingham>=1.3.0 (from typer>=0.4.1->pycln==2.5.0)
      Using cached shellingham-1.5.4-py2.py3-none-any.whl.metadata (3.5 kB)
    Collecting rich>=10.11.0 (from typer>=0.4.1->pycln==2.5.0)
      Using cached rich-13.9.4-py3-none-any.whl.metadata (18 kB)
    Collecting markdown-it-py>=2.2.0 (from rich>=10.11.0->typer>=0.4.1->pycln==2.5.0)
      Using cached markdown_it_py-3.0.0-py3-none-any.whl.metadata (6.9 kB)
    Collecting pygments<3.0.0,>=2.13.0 (from rich>=10.11.0->typer>=0.4.1->pycln==2.5.0)
      Using cached pygments-2.19.1-py3-none-any.whl.metadata (2.5 kB)
    Collecting mdurl~=0.1 (from markdown-it-py>=2.2.0->rich>=10.11.0->typer>=0.4.1->pycln==2.5.0)
      Using cached mdurl-0.1.2-py3-none-any.whl.metadata (1.6 kB)
    Using cached pathspec-0.12.1-py3-none-any.whl (31 kB)
    Using cached PyYAML-6.0.2-cp312-cp312-macosx_10_9_x86_64.whl (183 kB)
    Using cached tomlkit-0.13.2-py3-none-any.whl (37 kB)
    Using cached typer-0.15.1-py3-none-any.whl (44 kB)
    Using cached click-8.1.8-py3-none-any.whl (98 kB)
    Using cached rich-13.9.4-py3-none-any.whl (242 kB)
    Using cached shellingham-1.5.4-py2.py3-none-any.whl (9.8 kB)
    Using cached typing_extensions-4.12.2-py3-none-any.whl (37 kB)
    Using cached markdown_it_py-3.0.0-py3-none-any.whl (87 kB)
    Using cached pygments-2.19.1-py3-none-any.whl (1.2 MB)
    Using cached mdurl-0.1.2-py3-none-any.whl (10.0 kB)
    Building wheels for collected packages: pycln, libcst
      Building wheel for pycln (pyproject.toml): started
      Building wheel for pycln (pyproject.toml): finished with status 'done'
      Created wheel for pycln: filename=pycln-2.5.0-py3-none-any.whl size=38788 sha256=49eb661f944a615b4413c2d7af5634c651720596f3a245eba19e830e12e12d55
      Stored in directory: /private/var/folders/55/5hpx0kd97s7dmm83smjkgt7h0000gq/T/pip-ephem-wheel-cache-k0lweejq/wheels/be/3a/b3/7429664a4b10a75661631b39a73418f732a769d706c392a3d3
      Building wheel for libcst (pyproject.toml): started
      Building wheel for libcst (pyproject.toml): finished with status 'error'
    Successfully built pycln
    Failed to build libcst
stderr:
      error: subprocess-exited-with-error

      × Building wheel for libcst (pyproject.toml) did not run successfully.
      │ exit code: 1
      ╰─> [403 lines of output]
          /private/var/folders/55/5hpx0kd97s7dmm83smjkgt7h0000gq/T/pip-build-env-ntcrww5n/overlay/lib/python3.12/site-packages/setuptools/_distutils/dist.py:270: UserWarning: Unknown distribution option: 'test_suite'
            warnings.warn(msg)
          WARNING setuptools_scm.pyproject_reading toml section missing 'pyproject.toml does not contain a tool.setuptools_scm section'
          Traceback (most recent call last):
            File "/private/var/folders/55/5hpx0kd97s7dmm83smjkgt7h0000gq/T/pip-build-env-ntcrww5n/overlay/lib/python3.12/site-packages/setuptools_scm/_integration/pyproject_reading.py", line 36, in read_pyproject
              section = defn.get("tool", {})[tool_name]
                        ~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
          KeyError: 'setuptools_scm'
          running bdist_wheel
          running build
          running build_py
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_metadata_dependent.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_types.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_typed_visitor.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_add_slots.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_version.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_batched_visitor.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_removal_sentinel.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_type_enforce.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_visitors.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_typed_visitor_base.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_position.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_flatten_sentinel.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_tabs.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_exceptions.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/tool.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          copying libcst/_maybe_sentinel.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes
          copying libcst/_nodes/internal.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes
          copying libcst/_nodes/statement.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes
          copying libcst/_nodes/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes
          copying libcst/_nodes/op.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes
          copying libcst/_nodes/deep_equals.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes
          copying libcst/_nodes/module.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes
          copying libcst/_nodes/expression.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes
          copying libcst/_nodes/base.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes
          copying libcst/_nodes/whitespace.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/test_pyre_integration.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/test_tabs.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/test_type_enforce.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/test_exceptions.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/test_deep_replace.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/test_roundtrip.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/test_batched_visitor.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/test_visitor.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/test_e2e.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/test_add_slots.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/test_fuzz.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/__main__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          copying libcst/tests/test_deep_clone.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/codegen
          copying libcst/codegen/transforms.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codegen
          copying libcst/codegen/gather.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codegen
          copying libcst/codegen/gen_visitor_functions.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codegen
          copying libcst/codegen/generate.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codegen
          copying libcst/codegen/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codegen
          copying libcst/codegen/gen_type_mapping.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codegen
          copying libcst/codegen/gen_matcher_classes.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codegen
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/testing
          copying libcst/testing/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/testing
          copying libcst/testing/utils.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/testing
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser
          copying libcst/_parser/detect_config.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser
          copying libcst/_parser/wrapped_tokenize.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser
          copying libcst/_parser/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser
          copying libcst/_parser/grammar.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser
          copying libcst/_parser/python_parser.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser
          copying libcst/_parser/base_parser.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser
          copying libcst/_parser/py_whitespace_parser.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser
          copying libcst/_parser/custom_itertools.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser
          copying libcst/_parser/production_decorator.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser
          copying libcst/_parser/whitespace_parser.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser
          copying libcst/_parser/entrypoints.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/display
          copying libcst/display/graphviz.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/display
          copying libcst/display/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/display
          copying libcst/display/text.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/display
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers
          copying libcst/matchers/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers
          copying libcst/matchers/_visitors.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers
          copying libcst/matchers/_return_types.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers
          copying libcst/matchers/_decorators.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers
          copying libcst/matchers/_matcher_base.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/reentrant_codegen.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/wrapper.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/base_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/span_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/parent_node_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/position_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/type_inference_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/expression_context_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/name_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/full_repo_manager.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/scope_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/accessor_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          copying libcst/metadata/file_path_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers
          copying libcst/helpers/node_fields.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers
          copying libcst/helpers/paths.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers
          copying libcst/helpers/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers
          copying libcst/helpers/_template.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers
          copying libcst/helpers/common.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers
          copying libcst/helpers/module.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers
          copying libcst/helpers/expression.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod
          copying libcst/codemod/_codemod.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod
          copying libcst/codemod/_command.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod
          copying libcst/codemod/_dummy_pool.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod
          copying libcst/codemod/_cli.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod
          copying libcst/codemod/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod
          copying libcst/codemod/_visitor.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod
          copying libcst/codemod/_context.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod
          copying libcst/codemod/_testing.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod
          copying libcst/codemod/_runner.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_comment.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_type_alias.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_ifexp.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_while.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_removal_behavior.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_await.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_list.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_assign.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_indented_block.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_with.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_cst_node.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_docstring.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_subscript.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_module.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_unary_op.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_try.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_yield.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_del.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_simple_string.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_comparison.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_return.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_namedexpr.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_nonlocal.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_match.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_for.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_else.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_binary_op.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_funcdef.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_import.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_flatten_behavior.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_attribute.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_tuple.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_set.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_simple_comp.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_boolean_op.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_raise.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_simple_whitespace.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_empty_line.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_global.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_classdef.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_dict_comp.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_lambda.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_trailing_whitespace.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_if.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_atom.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_number.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_leaf_small_statements.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_small_statement.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_newline.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_call.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_matrix_multiply.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/base.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_dict.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_assert.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          copying libcst/_nodes/tests/test_simple_statement.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_nodes/tests
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/codegen/tests
          copying libcst/codegen/tests/test_codegen_clean.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codegen/tests
          copying libcst/codegen/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codegen/tests
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types
          copying libcst/_parser/types/py_config.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types
          copying libcst/_parser/types/whitespace_state.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types
          copying libcst/_parser/types/token.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types
          copying libcst/_parser/types/config.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types
          copying libcst/_parser/types/partials.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types
          copying libcst/_parser/types/conversions.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types
          copying libcst/_parser/types/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types
          copying libcst/_parser/types/py_token.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types
          copying libcst/_parser/types/py_whitespace_state.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types
          copying libcst/_parser/types/production.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/conversions
          copying libcst/_parser/conversions/params.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/conversions
          copying libcst/_parser/conversions/terminals.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/conversions
          copying libcst/_parser/conversions/statement.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/conversions
          copying libcst/_parser/conversions/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/conversions
          copying libcst/_parser/conversions/module.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/conversions
          copying libcst/_parser/conversions/expression.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/conversions
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/tests
          copying libcst/_parser/tests/test_detect_config.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/tests
          copying libcst/_parser/tests/test_whitespace_parser.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/tests
          copying libcst/_parser/tests/test_node_identity.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/tests
          copying libcst/_parser/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/tests
          copying libcst/_parser/tests/test_version_compare.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/tests
          copying libcst/_parser/tests/test_parse_errors.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/tests
          copying libcst/_parser/tests/test_wrapped_tokenize.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/tests
          copying libcst/_parser/tests/test_config.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/tests
          copying libcst/_parser/tests/test_footer_behavior.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/tests
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso
          copying libcst/_parser/parso/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso
          copying libcst/_parser/parso/utils.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types/tests
          copying libcst/_parser/types/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types/tests
          copying libcst/_parser/types/tests/test_config.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/types/tests
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/python
          copying libcst/_parser/parso/python/token.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/python
          copying libcst/_parser/parso/python/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/python
          copying libcst/_parser/parso/python/py_token.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/python
          copying libcst/_parser/parso/python/tokenize.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/python
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/tests
          copying libcst/_parser/parso/tests/test_fstring.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/tests
          copying libcst/_parser/parso/tests/test_utils.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/tests
          copying libcst/_parser/parso/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/tests
          copying libcst/_parser/parso/tests/test_tokenize.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/tests
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/pgen2
          copying libcst/_parser/parso/pgen2/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/pgen2
          copying libcst/_parser/parso/pgen2/generator.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/pgen2
          copying libcst/_parser/parso/pgen2/grammar_parser.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/parso/pgen2
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/display/tests
          copying libcst/display/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/display/tests
          copying libcst/display/tests/test_dump_graphviz.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/display/tests
          copying libcst/display/tests/test_dump_text.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/display/tests
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers/tests
          copying libcst/matchers/tests/test_visitors.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers/tests
          copying libcst/matchers/tests/test_decorators.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers/tests
          copying libcst/matchers/tests/test_matchers_with_metadata.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers/tests
          copying libcst/matchers/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers/tests
          copying libcst/matchers/tests/test_matchers.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers/tests
          copying libcst/matchers/tests/test_findall.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers/tests
          copying libcst/matchers/tests/test_extract.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers/tests
          copying libcst/matchers/tests/test_replace.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/matchers/tests
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_metadata_wrapper.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_file_path_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_span_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_full_repo_manager.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_base_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_expression_context_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_accessor_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_type_inference_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_name_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_scope_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_metadata_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_parent_node_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_reentrant_codegen.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          copying libcst/metadata/tests/test_position_provider.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/metadata/tests
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers/tests
          copying libcst/helpers/tests/test_expression.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers/tests
          copying libcst/helpers/tests/test_module.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers/tests
          copying libcst/helpers/tests/test_node_fields.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers/tests
          copying libcst/helpers/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers/tests
          copying libcst/helpers/tests/test_paths.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers/tests
          copying libcst/helpers/tests/test_template.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/helpers/tests
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors
          copying libcst/codemod/visitors/_gather_unused_imports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors
          copying libcst/codemod/visitors/_gather_global_names.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors
          copying libcst/codemod/visitors/_gather_comments.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors
          copying libcst/codemod/visitors/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors
          copying libcst/codemod/visitors/_imports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors
          copying libcst/codemod/visitors/_gather_string_annotation_names.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors
          copying libcst/codemod/visitors/_apply_type_annotations.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors
          copying libcst/codemod/visitors/_gather_exports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors
          copying libcst/codemod/visitors/_add_imports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors
          copying libcst/codemod/visitors/_remove_imports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors
          copying libcst/codemod/visitors/_gather_imports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/tests
          copying libcst/codemod/tests/test_codemod_cli.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/tests
          copying libcst/codemod/tests/test_codemod.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/tests
          copying libcst/codemod/tests/test_metadata.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/tests
          copying libcst/codemod/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/tests
          copying libcst/codemod/tests/test_runner.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/tests
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/convert_union_to_or.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/add_pyre_directive.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/rename.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/remove_pyre_directive.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/ensure_import_present.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/strip_strings_from_types.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/fix_variadic_callable.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/fix_pyre_directives.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/convert_namedtuple_to_dataclass.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/unnecessary_format_string.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/noop.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/convert_type_comments.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/convert_format_to_fstring.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/add_trailing_commas.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/rename_typing_generic_aliases.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/convert_percent_format_to_fstring.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          copying libcst/codemod/commands/remove_unused_imports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors/tests
          copying libcst/codemod/visitors/tests/test_gather_imports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors/tests
          copying libcst/codemod/visitors/tests/test_apply_type_annotations.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors/tests
          copying libcst/codemod/visitors/tests/test_gather_unused_imports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors/tests
          copying libcst/codemod/visitors/tests/test_remove_imports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors/tests
          copying libcst/codemod/visitors/tests/test_gather_global_names.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors/tests
          copying libcst/codemod/visitors/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors/tests
          copying libcst/codemod/visitors/tests/test_gather_string_annotation_names.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors/tests
          copying libcst/codemod/visitors/tests/test_gather_exports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors/tests
          copying libcst/codemod/visitors/tests/test_gather_comments.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors/tests
          copying libcst/codemod/visitors/tests/test_add_imports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/visitors/tests
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_unnecessary_format_string.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_fix_pyre_directives.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_remove_unused_imports.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_convert_type_comments.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_convert_format_to_fstring.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_convert_union_to_or.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/__init__.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_rename_typing_generic_aliases.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_convert_percent_format_to_fstring.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_ensure_import_present.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_noop.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_convert_namedtuple_to_dataclass.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_fix_variadic_callable.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_add_trailing_commas.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_strip_strings_from_types.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_rename.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_remove_pyre_directive.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          copying libcst/codemod/commands/tests/test_add_pyre_directive.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/commands/tests
          running egg_info
          writing libcst.egg-info/PKG-INFO
          writing dependency_links to libcst.egg-info/dependency_links.txt
          writing requirements to libcst.egg-info/requires.txt
          writing top-level names to libcst.egg-info/top_level.txt
          ERROR setuptools_scm._file_finders.git listing git files failed - pretending there aren't any
          reading manifest file 'libcst.egg-info/SOURCES.txt'
          reading manifest template 'MANIFEST.in'
          warning: no previously-included files matching '*' found under directory 'native/target'
          adding license file 'LICENSE'
          writing manifest file 'libcst.egg-info/SOURCES.txt'
          /private/var/folders/55/5hpx0kd97s7dmm83smjkgt7h0000gq/T/pip-build-env-ntcrww5n/overlay/lib/python3.12/site-packages/setuptools/command/build_py.py:212: _Warning: Package 'libcst.tests.pyre' is absent from the `packages` configuration.
          !!

                  ********************************************************************************
                  ############################
                  # Package would be ignored #
                  ############################
                  Python recognizes 'libcst.tests.pyre' as an importable package[^1],
                  but it is absent from setuptools' `packages` configuration.

                  This leads to an ambiguous overall configuration. If you want to distribute this
                  package, please make sure that 'libcst.tests.pyre' is explicitly added
                  to the `packages` configuration field.

                  Alternatively, you can also rely on setuptools' discovery methods
                  (for example by using `find_namespace_packages(...)`/`find_namespace:`
                  instead of `find_packages(...)`/`find:`).

                  You can read more about "package discovery" on setuptools documentation page:

                  - https://setuptools.pypa.io/en/latest/userguide/package_discovery.html

                  If you don't want 'libcst.tests.pyre' to be distributed and are
                  already explicitly excluding 'libcst.tests.pyre' via
                  `find_namespace_packages(...)/find_namespace` or `find_packages(...)/find`,
                  you can try to use `exclude_package_data`, or `include-package-data=False` in
                  combination with a more fine grained `package-data` configuration.

                  You can read more about "package data files" on setuptools documentation page:

                  - https://setuptools.pypa.io/en/latest/userguide/datafiles.html


                  [^1]: For Python, any directory (with suitable naming) can be imported,
                        even if it does not contain any `.py` files.
                        On the other hand, currently there is no concept of package data
                        directory, all directories are treated like packages.
                  ********************************************************************************

          !!
            check.warn(importable)
          copying libcst/py.typed -> build/lib.macosx-14.4-x86_64-cpython-312/libcst
          creating build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests/pyre
          copying libcst/tests/pyre/.pyre_configuration -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests/pyre
          copying libcst/tests/pyre/simple_class.json -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests/pyre
          copying libcst/tests/pyre/simple_class.py -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/tests/pyre
          copying libcst/_parser/conversions/README.md -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/_parser/conversions
          copying libcst/codemod/tests/codemod_formatter_error_input.py.txt -> build/lib.macosx-14.4-x86_64-cpython-312/libcst/codemod/tests
          running build_ext
          running build_rust
          error: can't find Rust compiler

          If you are using an outdated pip version, it is possible a prebuilt wheel is available for this package but pip is not able to install from it. Installing from the wheel would avoid the need for a Rust compiler.

          To update pip, run:

              pip install --upgrade pip

          and then retry package installation.

          If you did intend to build this package from source, try installing a Rust compiler from your system package manager and ensure it is on the PATH during installation. Alternatively, rustup (available at https://rustup.rs) is the recommended way to download and update the Rust compiler toolchain.
          [end of output]

      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for libcst
    ERROR: ERROR: Failed to build installable wheels for some pyproject.toml based projects (libcst)
Check the log at /Users/scott/.cache/pre-commit/pre-commit.log
  1. Note that v2.4.0 still works as expected.
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks

files: '^[:punct:]*code'
exclude: 'migrations/.*'
default_language_version:
  python: python3.12

repos:
  - repo: https://github.com/pre-commit/pre-commit-hooks
    rev: v5.0.0
    hooks:
      - id: trailing-whitespace
      - id: end-of-file-fixer
      - id: check-yaml
      - id: requirements-txt-fixer
        args:
          - requirements.txt
          - code/dd_service/test_requirements.txt
          - code/dd_service/requirements.txt
          - code/dd_netconf/requirements.txt
          - code/django/requirements.txt
          - playwright-requirements.txt
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.9.3
    hooks:
      - id: ruff
  - repo: https://github.com/astral-sh/ruff-pre-commit
    rev: v0.9.3
    hooks:
      - id: ruff-format
  - repo: https://github.com/hadialqattan/pycln
    rev: v2.4.0
    hooks:
      - id: pycln
  - repo: https://github.com/Yelp/detect-secrets
    rev: v1.5.0
    hooks:
      - id: detect-secrets
        args: ['--baseline', '.secrets.baseline']
        # Base64-encoded YANG modules trigger false positives in this auto-generated file
        exclude: "code/django/static_data.json" 
  - repo: local
    hooks:
      - id: check-migrations
        name: Check for missing migrations
        entry: python check_migrations.py
        language: python
        verbose: true
~/aliro-orchestrator (BUGFIX-AQC-1570-Update-AQC-frontend-to-use-latest-typings-package-with-pagination-PR-check|●1✚1) $ pre-commit run --all-files --verbose
trim trailing whitespace.................................................Passed
- hook id: trailing-whitespace
- duration: 0.17s
fix end of files.........................................................Passed
- hook id: end-of-file-fixer
- duration: 0.13s
check yaml...............................................................Passed
- hook id: check-yaml
- duration: 0.13s
fix requirements.txt.....................................................Passed
- hook id: requirements-txt-fixer
- duration: 0.05s
ruff.....................................................................Passed
- hook id: ruff
- duration: 0.87s

All checks passed!

ruff-format..............................................................Passed
- hook id: ruff-format
- duration: 0.05s

252 files left unchanged

pycln....................................................................Passed
- hook id: pycln
- duration: 0.7s

Looks good! ✨ 🍰 ✨
21 files left unchanged.
Looks good! ✨ 🍰 ✨
21 files left unchanged.
Looks good! ✨ 🍰 ✨
21 files left unchanged.
Looks good! ✨ 🍰 ✨
21 files left unchanged.
Looks good! ✨ 🍰 ✨
21 files left unchanged.
Looks good! ✨ 🍰 ✨
21 files left unchanged.
Looks good! ✨ 🍰 ✨
21 files left unchanged.
Looks good! ✨ 🍰 ✨
21 files left unchanged.
Looks good! ✨ 🍰 ✨
21 files left unchanged.
Looks good! ✨ 🍰 ✨
21 files left unchanged.
Looks good! ✨ 🍰 ✨
21 files left unchanged.
Looks good! ✨ 🍰 ✨
21 files left unchanged.

Detect secrets...........................................................Passed
- hook id: detect-secrets
- duration: 4.95s
Check for missing migrations.............................................Passed
- hook id: check-migrations
- duration: 0.16s

Changed files: ['.pre-commit-config.yaml']
No changes detected in models.py files.
Changed files: ['.pre-commit-config.yaml']
No changes detected in models.py files.
Changed files: ['.pre-commit-config.yaml']
No changes detected in models.py files.
Changed files: ['.pre-commit-config.yaml']
No changes detected in models.py files.
Changed files: ['.pre-commit-config.yaml']
No changes detected in models.py files.
Changed files: ['.pre-commit-config.yaml']
No changes detected in models.py files.
Changed files: ['.pre-commit-config.yaml']
No changes detected in models.py files.
Changed files: ['.pre-commit-config.yaml']
No changes detected in models.py files.
Changed files: ['.pre-commit-config.yaml']
No changes detected in models.py files.
Changed files: ['.pre-commit-config.yaml']
No changes detected in models.py files.
Changed files: ['.pre-commit-config.yaml']
No changes detected in models.py files.
Changed files: ['.pre-commit-config.yaml']
No changes detected in models.py files.

Expected behavior:

  1. Description: I expect the upgrade to v2.5.0 to not break the pre-commit hook.
    Environment (please complete the following informations):
  • Python Version: 3.12.2
  • Pycln Version: 2.5.0
  • OS Type: MacOS
@scottwn scottwn added the bug Something isn't working label Feb 3, 2025
@scottwn
Copy link
Author

scottwn commented Feb 3, 2025

Here is the pre-commit.log

scottwn added a commit to scottwn/pycln that referenced this issue Feb 3, 2025
@scottwn scottwn linked a pull request Feb 3, 2025 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant