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

Usage of pre-commit autoupdate CI #37

Open
observingClouds opened this issue Nov 12, 2024 · 5 comments
Open

Usage of pre-commit autoupdate CI #37

observingClouds opened this issue Nov 12, 2024 · 5 comments

Comments

@observingClouds
Copy link
Contributor

Shall we use the pre-commit autoupdate ci? Either with the GitHub Action or with our own scheduled pre-commit autoupdate CI.

I often run into the issues that the pre-commit hooks are too outdated when I develop locally.

@leifdenby
Copy link
Member

Shall we use the pre-commit autoupdate ci? Either with the GitHub Action or with our own scheduled pre-commit autoupdate CI.

Would that mean that linting tool versions are automatically updated? I am ok with this, but this might also be a frustration for people. Is that a benefit to have that do you think?

@observingClouds
Copy link
Contributor Author

observingClouds commented Nov 12, 2024

Linting tool versions would be updated through a PR, e.g. observingClouds/ecmwfspec#23. The autoupdate would not interfere with any other PR.

@leifdenby
Copy link
Member

I see. So that could mean that some source files would change because the linting tool now applies the rules subtlety differently, right? And is a good idea to stay up-to-date with the linting tools? :) I'm never quite sure...

@leifdenby
Copy link
Member

I often run into the issues that the pre-commit hooks are too outdated when I develop locally.

I haven't experience this, but that sounds annoying. In principle this would be fine with me. As long as we update the changelog then I am ok with it :)

Thanks for suggesting this! I've never thought of it as an issue before. Maybe if you have a screendump of what goes wrong then that would be helpful.

@observingClouds
Copy link
Contributor Author

Traceback
git commit
[INFO] Installing environment for https://github.com/pre-commit/pre-commit-hooks.
[INFO] Once installed this environment will be reused.
[INFO] This may take a few minutes...
An unexpected error has occurred: CalledProcessError: command: ('/Users/***/.cache/pre-commit/repo9btuw2gv/py_env-python3.9/bin/python', '-mpip', 'install', '.')
return code: 1
expected return code: 0
stdout:
    Processing /Users/***/.cache/pre-commit/repo9btuw2gv
      Preparing metadata (setup.py): started
      Preparing metadata (setup.py): finished with status 'done'
    Collecting ruamel.yaml>=0.15
      Using cached ruamel.yaml-0.18.6-py3-none-any.whl (117 kB)
    Collecting toml
      Using cached toml-0.10.2-py2.py3-none-any.whl (16 kB)
    Collecting ruamel.yaml.clib>=0.2.7
      Using cached ruamel.yaml.clib-0.2.12.tar.gz (225 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'
    Building wheels for collected packages: pre-commit-hooks, ruamel.yaml.clib
      Building wheel for pre-commit-hooks (setup.py): started
      Building wheel for pre-commit-hooks (setup.py): finished with status 'done'
      Created wheel for pre-commit-hooks: filename=pre_commit_hooks-4.0.1-py2.py3-none-any.whl size=39600 sha256=6161c6ac69ce15caec681eac698c069ced67663f6406cfea5d72b51b2b9298bd
      Stored in directory: /private/var/folders/fj/g0x4n_f15tb6zfwjhzc8gvzr0000gn/T/pip-ephem-wheel-cache-v8oxb9rz/wheels/50/67/74/be9015f5a2f61762356272f0ceda0ef34602c67d619041edd5
      Building wheel for ruamel.yaml.clib (pyproject.toml): started
      Building wheel for ruamel.yaml.clib (pyproject.toml): finished with status 'error'
    Successfully built pre-commit-hooks
    Failed to build ruamel.yaml.clib
    
stderr:
      error: subprocess-exited-with-error
      
      × Building wheel for ruamel.yaml.clib (pyproject.toml) did not run successfully.
      │ exit code: 1
      ╰─> [328 lines of output]
          /private/var/folders/fj/g0x4n_f15tb6zfwjhzc8gvzr0000gn/T/pip-build-env-22hqfnqd/overlay/lib/python3.9/site-packages/setuptools/_distutils/dist.py:261: UserWarning: Unknown distribution option: 'test_suite'
            warnings.warn(msg)
          running bdist_wheel
          running build
          running build_py
          creating build/lib.macosx-10.9-x86_64-cpython-39/ruamel/yaml/clib
          copying ./__init__.py -> build/lib.macosx-10.9-x86_64-cpython-39/ruamel/yaml/clib
          copying ./setup.py -> build/lib.macosx-10.9-x86_64-cpython-39/ruamel/yaml/clib
          copying ./LICENSE -> build/lib.macosx-10.9-x86_64-cpython-39/ruamel/yaml/clib
          running build_ext
          building '_ruamel_yaml' extension
          creating build/temp.macosx-10.9-x86_64-cpython-39
          clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/***/mambaforge/include -fPIC -O2 -isystem /Users/***/mambaforge/include -I/Users/***/.cache/pre-commit/repo9btuw2gv/py_env-python3.9/include -I/Users/***/mambaforge/include/python3.9 -c _ruamel_yaml.c -o build/temp.macosx-10.9-x86_64-cpython-39/_ruamel_yaml.o
          In file included from _ruamel_yaml.c:1222:
          ./_ruamel_yaml.h:10:9: warning: 'PyString_CheckExact' macro redefined [-Wmacro-redefined]
             10 | #define PyString_CheckExact PyBytes_CheckExact
                |         ^
          _ruamel_yaml.c:1062:11: note: previous definition is here
           1062 |   #define PyString_CheckExact          PyUnicode_CheckExact
                |           ^
          _ruamel_yaml.c:4089:17: warning: assigning to 'char *' from 'const char *' discards qualifiers [-Wincompatible-pointer-types-discards-qualifiers]
           4089 |   __pyx_v_value = yaml_get_version_string();
                |                 ^ ~~~~~~~~~~~~~~~~~~~~~~~~~
          _ruamel_yaml.c:6117:59: warning: passing 'char *' to parameter of type 'const unsigned char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           6117 |     yaml_parser_set_input_string((&__pyx_v_self->parser), PyString_AS_STRING(__pyx_v_stream), PyString_GET_SIZE(__pyx_v_stream));
                |                                                           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          ./_ruamel_yaml.h:11:29: note: expanded from macro 'PyString_AS_STRING'
             11 | #define PyString_AS_STRING  PyBytes_AS_STRING
                |                             ^
          /Users/***/mambaforge/include/python3.9/cpython/bytesobject.h:32:31: note: expanded from macro 'PyBytes_AS_STRING'
             32 | #define PyBytes_AS_STRING(op) (assert(PyBytes_Check(op)), \
                |                               ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
             33 |                                 (((PyBytesObject *)(op))->ob_sval))
                |                                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          ./yaml.h:1344:30: note: passing argument to parameter 'input' here
           1344 |         const unsigned char *input, size_t size);
                |                              ^
          _ruamel_yaml.c:7809:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           7809 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag_directive.handle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 416, __pyx_L1_error)
                |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:7821:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           7821 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag_directive.prefix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 417, __pyx_L1_error)
                |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:8494:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           8494 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.alias.value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 447, __pyx_L1_error)
                |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:8552:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           8552 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.anchor.value); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 450, __pyx_L1_error)
                |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:8610:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           8610 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag.handle); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 453, __pyx_L1_error)
                |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:8622:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           8622 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_token->data.tag.suffix); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 454, __pyx_L1_error)
                |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/****/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:8719:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           8719 |     __pyx_t_2 = PyUnicode_DecodeUTF8(__pyx_v_token->data.scalar.value, __pyx_v_token->data.scalar.length, ((char const *)"strict")); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 459, __pyx_L1_error)
                |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:452:17: note: passing argument to parameter 'string' here
            452 |     const char *string,         /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:10429:42: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           10429 |         __pyx_t_4 = PyUnicode_FromString(__pyx_v_tag_directive->handle); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 573, __pyx_L1_error)
                 |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:10441:42: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           10441 |         __pyx_t_4 = PyUnicode_FromString(__pyx_v_tag_directive->prefix); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 574, __pyx_L1_error)
                 |                                          ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:10624:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           10624 |     __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.alias.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 585, __pyx_L1_error)
                 |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:10702:40: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           10702 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.scalar.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 590, __pyx_L1_error)
                 |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/**/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:10743:40: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           10743 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.scalar.tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 593, __pyx_L1_error)
                 |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:10764:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           10764 |     __pyx_t_4 = PyUnicode_DecodeUTF8(__pyx_v_event->data.scalar.value, __pyx_v_event->data.scalar.length, ((char const *)"strict")); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 594, __pyx_L1_error)
                 |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:452:17: note: passing argument to parameter 'string' here
            452 |     const char *string,         /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:11066:40: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           11066 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.sequence_start.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 619, __pyx_L1_error)
                 |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:11107:40: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           11107 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.sequence_start.tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 622, __pyx_L1_error)
                 |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:11303:40: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           11303 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.mapping_start.anchor); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 636, __pyx_L1_error)
                 |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:11344:40: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           11344 |       __pyx_t_4 = PyUnicode_FromString(__pyx_v_event->data.mapping_start.tag); if (unlikely(!__pyx_t_4)) __PYX_ERR(0, 639, __pyx_L1_error)
                 |                                        ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:13047:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           13047 |     __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.alias.anchor); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 733, __pyx_L1_error)
                 |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:13308:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           13308 |     __pyx_t_5 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.scalar.anchor); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 749, __pyx_L1_error)
                 |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:13364:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           13364 |     __pyx_t_5 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.sequence_start.anchor); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 752, __pyx_L1_error)
                 |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:13420:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           13420 |     __pyx_t_5 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.mapping_start.anchor); if (unlikely(!__pyx_t_5)) __PYX_ERR(0, 755, __pyx_L1_error)
                 |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:14002:36: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           14002 |   __pyx_t_2 = PyUnicode_DecodeUTF8(__pyx_v_self->parsed_event.data.scalar.value, __pyx_v_self->parsed_event.data.scalar.length, ((char const *)"strict")); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 790, __pyx_L1_error)
                 |                                    ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/**/mambaforge/include/python3.9/unicodeobject.h:452:17: note: passing argument to parameter 'string' here
            452 |     const char *string,         /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:14197:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           14197 |     __pyx_t_2 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.scalar.tag); if (unlikely(!__pyx_t_2)) __PYX_ERR(0, 803, __pyx_L1_error)
                 |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:14677:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           14677 |     __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.sequence_start.tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 836, __pyx_L1_error)
                 |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:15243:38: warning: passing 'yaml_char_t *' (aka 'unsigned char *') to parameter of type 'const char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           15243 |     __pyx_t_3 = PyUnicode_FromString(__pyx_v_self->parsed_event.data.mapping_start.tag); if (unlikely(!__pyx_t_3)) __PYX_ERR(0, 875, __pyx_L1_error)
                 |                                      ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          /Users/***/mambaforge/include/python3.9/unicodeobject.h:138:17: note: passing argument to parameter 'u' here
            138 |     const char *u              /* UTF-8 encoded string */
                |                 ^
          _ruamel_yaml.c:16140:86: warning: comparison of integers of different signs: 'int' and 'size_t' (aka 'unsigned long') [-Wsign-compare]
           16140 |   __pyx_t_2 = ((__pyx_v_parser->stream_cache_len - __pyx_v_parser->stream_cache_pos) < __pyx_v_size);
                 |                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~  ^ ~~~~~~~~~~~~
          _ruamel_yaml.c:18098:44: warning: assigning to 'yaml_char_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           18098 |         __pyx_v_tag_directives_end->handle = PyString_AS_STRING(__pyx_v_handle);
                 |                                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          _ruamel_yaml.c:18213:44: warning: assigning to 'yaml_char_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           18213 |         __pyx_v_tag_directives_end->prefix = PyString_AS_STRING(__pyx_v_prefix);
                 |                                            ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          _ruamel_yaml.c:18548:61: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           18548 |     __pyx_t_2 = (yaml_alias_event_initialize(__pyx_v_event, __pyx_v_anchor) == 0);
                 |                                                             ^~~~~~~~~~~~~~
          ./yaml.h:555:63: note: passing argument to parameter 'anchor' here
            555 | yaml_alias_event_initialize(yaml_event_t *event, yaml_char_t *anchor);
                |                                                               ^
          _ruamel_yaml.c:19259:62: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           19259 |     __pyx_t_2 = (yaml_scalar_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0);
                 |                                                              ^~~~~~~~~~~~~~
          ./yaml.h:581:22: note: passing argument to parameter 'anchor' here
            581 |         yaml_char_t *anchor, yaml_char_t *tag,
                |                      ^
          _ruamel_yaml.c:19259:78: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           19259 |     __pyx_t_2 = (yaml_scalar_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0);
                 |                                                                              ^~~~~~~~~~~
          ./yaml.h:581:43: note: passing argument to parameter 'tag' here
            581 |         yaml_char_t *anchor, yaml_char_t *tag,
                |                                           ^
          _ruamel_yaml.c:19259:91: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           19259 |     __pyx_t_2 = (yaml_scalar_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0);
                 |                                                                                           ^~~~~~~~~~~~~
          ./yaml.h:582:22: note: passing argument to parameter 'value' here
            582 |         yaml_char_t *value, int length,
                |                      ^
          _ruamel_yaml.c:19690:70: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           19690 |     __pyx_t_2 = (yaml_sequence_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0);
                 |                                                                      ^~~~~~~~~~~~~~
          ./yaml.h:604:22: note: passing argument to parameter 'anchor' here
            604 |         yaml_char_t *anchor, yaml_char_t *tag, int implicit,
                |                      ^
          _ruamel_yaml.c:19690:86: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           19690 |     __pyx_t_2 = (yaml_sequence_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0);
                 |                                                                                      ^~~~~~~~~~~
          ./yaml.h:604:43: note: passing argument to parameter 'tag' here
            604 |         yaml_char_t *anchor, yaml_char_t *tag, int implicit,
                |                                           ^
          _ruamel_yaml.c:20121:69: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           20121 |     __pyx_t_2 = (yaml_mapping_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0);
                 |                                                                     ^~~~~~~~~~~~~~
          ./yaml.h:636:22: note: passing argument to parameter 'anchor' here
            636 |         yaml_char_t *anchor, yaml_char_t *tag, int implicit,
                |                      ^
          _ruamel_yaml.c:20121:85: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           20121 |     __pyx_t_2 = (yaml_mapping_start_event_initialize(__pyx_v_event, __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0);
                 |                                                                                     ^~~~~~~~~~~
          ./yaml.h:636:43: note: passing argument to parameter 'tag' here
            636 |         yaml_char_t *anchor, yaml_char_t *tag, int implicit,
                |                                           ^
          _ruamel_yaml.c:22008:42: warning: assigning to 'yaml_char_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           22008 |       __pyx_v_tag_directives_end->handle = PyString_AS_STRING(__pyx_v_handle);
                 |                                          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          _ruamel_yaml.c:22123:42: warning: assigning to 'yaml_char_t *' (aka 'unsigned char *') from 'char *' converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           22123 |       __pyx_v_tag_directives_end->prefix = PyString_AS_STRING(__pyx_v_prefix);
                 |                                          ^ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
          _ruamel_yaml.c:23005:64: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           23005 |     __pyx_t_2 = (yaml_alias_event_initialize((&__pyx_v_event), __pyx_v_anchor) == 0);
                 |                                                                ^~~~~~~~~~~~~~
          ./yaml.h:555:63: note: passing argument to parameter 'anchor' here
            555 | yaml_alias_event_initialize(yaml_event_t *event, yaml_char_t *anchor);
                |                                                               ^
          _ruamel_yaml.c:23735:67: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           23735 |       __pyx_t_2 = (yaml_scalar_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0);
                 |                                                                   ^~~~~~~~~~~~~~
          ./yaml.h:581:22: note: passing argument to parameter 'anchor' here
            581 |         yaml_char_t *anchor, yaml_char_t *tag,
                |                      ^
          _ruamel_yaml.c:23735:83: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           23735 |       __pyx_t_2 = (yaml_scalar_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0);
                 |                                                                                   ^~~~~~~~~~~
          ./yaml.h:581:43: note: passing argument to parameter 'tag' here
            581 |         yaml_char_t *anchor, yaml_char_t *tag,
                |                                           ^
          _ruamel_yaml.c:23735:96: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           23735 |       __pyx_t_2 = (yaml_scalar_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_value, __pyx_v_length, __pyx_v_plain_implicit, __pyx_v_quoted_implicit, __pyx_v_scalar_style) == 0);
                 |                                                                                                ^~~~~~~~~~~~~
          ./yaml.h:582:22: note: passing argument to parameter 'value' here
            582 |         yaml_char_t *value, int length,
                |                      ^
          _ruamel_yaml.c:24092:75: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           24092 |       __pyx_t_2 = (yaml_sequence_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0);
                 |                                                                           ^~~~~~~~~~~~~~
          ./yaml.h:604:22: note: passing argument to parameter 'anchor' here
            604 |         yaml_char_t *anchor, yaml_char_t *tag, int implicit,
                |                      ^
          _ruamel_yaml.c:24092:91: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           24092 |       __pyx_t_2 = (yaml_sequence_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_sequence_style) == 0);
                 |                                                                                           ^~~~~~~~~~~
          ./yaml.h:604:43: note: passing argument to parameter 'tag' here
            604 |         yaml_char_t *anchor, yaml_char_t *tag, int implicit,
                |                                           ^
          _ruamel_yaml.c:24605:74: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           24605 |       __pyx_t_2 = (yaml_mapping_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0);
                 |                                                                          ^~~~~~~~~~~~~~
          ./yaml.h:636:22: note: passing argument to parameter 'anchor' here
            636 |         yaml_char_t *anchor, yaml_char_t *tag, int implicit,
                |                      ^
          _ruamel_yaml.c:24605:90: warning: passing 'char *' to parameter of type 'yaml_char_t *' (aka 'unsigned char *') converts between pointers to integer types where one is of the unique plain 'char' type and the other is not [-Wpointer-sign]
           24605 |       __pyx_t_2 = (yaml_mapping_start_event_initialize((&__pyx_v_event), __pyx_v_anchor, __pyx_v_tag, __pyx_v_implicit, __pyx_v_mapping_style) == 0);
                 |                                                                                          ^~~~~~~~~~~
          ./yaml.h:636:43: note: passing argument to parameter 'tag' here
            636 |         yaml_char_t *anchor, yaml_char_t *tag, int implicit,
                |                                           ^
          49 warnings generated.
          clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/***/mambaforge/include -fPIC -O2 -isystem /Users/***/mambaforge/include -I/Users/***/.cache/pre-commit/repo9btuw2gv/py_env-python3.9/include -I/Users/***/mambaforge/include/python3.9 -c api.c -o build/temp.macosx-10.9-x86_64-cpython-39/api.o
          clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/***/mambaforge/include -fPIC -O2 -isystem /Users/***/mambaforge/include -I/Users/***/.cache/pre-commit/repo9btuw2gv/py_env-python3.9/include -I/Users/***/mambaforge/include/python3.9 -c dumper.c -o build/temp.macosx-10.9-x86_64-cpython-39/dumper.o
          clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/****/mambaforge/include -fPIC -O2 -isystem /Users/***/mambaforge/include -I/Users/***/.cache/pre-commit/repo9btuw2gv/py_env-python3.9/include -I/Users/***/mambaforge/include/python3.9 -c emitter.c -o build/temp.macosx-10.9-x86_64-cpython-39/emitter.o
          clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/***/mambaforge/include -fPIC -O2 -isystem /Users/***/mambaforge/include -I/Users/***/.cache/pre-commit/repo9btuw2gv/py_env-python3.9/include -I/Users/***/mambaforge/include/python3.9 -c loader.c -o build/temp.macosx-10.9-x86_64-cpython-39/loader.o
          clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/***/mambaforge/include -fPIC -O2 -isystem /Users/***/mambaforge/include -I/Users/***/.cache/pre-commit/repo9btuw2gv/py_env-python3.9/include -I/Users/***/mambaforge/include/python3.9 -c parser.c -o build/temp.macosx-10.9-x86_64-cpython-39/parser.o
          parser.c:762:21: warning: variable 'dummy_mark' set but not used [-Wunused-but-set-variable]
            762 |         yaml_mark_t dummy_mark;     /* Used to eliminate a compiler warning. */
                |                     ^
          parser.c:872:21: warning: variable 'dummy_mark' set but not used [-Wunused-but-set-variable]
            872 |         yaml_mark_t dummy_mark;     /* Used to eliminate a compiler warning. */
                |                     ^
          parser.c:955:17: warning: variable 'dummy_mark' set but not used [-Wunused-but-set-variable]
            955 |     yaml_mark_t dummy_mark;     /* Used to eliminate a compiler warning. */
                |                 ^
          parser.c:1107:17: warning: variable 'dummy_mark' set but not used [-Wunused-but-set-variable]
           1107 |     yaml_mark_t dummy_mark;     /* Used to eliminate a compiler warning. */
                |                 ^
          4 warnings generated.
          clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/***/mambaforge/include -fPIC -O2 -isystem /Users/*******/mambaforge/include -I/Users/***/.cache/pre-commit/repo9btuw2gv/py_env-python3.9/include -I/Users/***/mambaforge/include/python3.9 -c reader.c -o build/temp.macosx-10.9-x86_64-cpython-39/reader.o
          clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/***/mambaforge/include -fPIC -O2 -isystem /Users/***/mambaforge/include -I/Users/***/.cache/pre-commit/repo9btuw2gv/py_env-python3.9/include -I/Users/***/mambaforge/include/python3.9 -c scanner.c -o build/temp.macosx-10.9-x86_64-cpython-39/scanner.o
          scanner.c:1189:23: warning: variable 'dummy_key' set but not used [-Wunused-but-set-variable]
           1189 |     yaml_simple_key_t dummy_key;    /* Used to eliminate a compiler warning. */
                |                       ^
          1 warning generated.
          clang -Wno-unused-result -Wsign-compare -Wunreachable-code -DNDEBUG -g -fwrapv -O2 -Wall -fPIC -O2 -isystem /Users/***/mambaforge/include -fPIC -O2 -isystem /Users/**/mambaforge/include -I/Users/**/.cache/pre-commit/repo9btuw2gv/py_env-python3.9/include -I/Users/**/mambaforge/include/python3.9 -c writer.c -o build/temp.macosx-10.9-x86_64-cpython-39/writer.o
          clang -bundle -undefined dynamic_lookup -Wl,-rpath,/Users/*/mambaforge/lib -L/Users/*/mambaforge/lib -Wl,-rpath,/Users/*/mambaforge/lib -L/Users/*/mambaforge/lib build/temp.macosx-10.9-x86_64-cpython-39/_ruamel_yaml.o build/temp.macosx-10.9-x86_64-cpython-39/api.o build/temp.macosx-10.9-x86_64-cpython-39/dumper.o build/temp.macosx-10.9-x86_64-cpython-39/emitter.o build/temp.macosx-10.9-x86_64-cpython-39/loader.o build/temp.macosx-10.9-x86_64-cpython-39/parser.o build/temp.macosx-10.9-x86_64-cpython-39/reader.o build/temp.macosx-10.9-x86_64-cpython-39/scanner.o build/temp.macosx-10.9-x86_64-cpython-39/writer.o -o build/lib.macosx-10.9-x86_64-cpython-39/_ruamel_yaml.cpython-39-darwin.so
          ld: library not found for -lSystem
          clang: error: linker command failed with exit code 1 (use -v to see invocation)
          error: command '/usr/local/opt/llvm/bin/clang' failed with exit code 1
          [end of output]
      
      note: This error originates from a subprocess, and is likely not a problem with pip.
      ERROR: Failed building wheel for ruamel.yaml.clib
    ERROR: Could not build wheels for ruamel.yaml.clib, which is required to install pyproject.toml-based projects
    
Check the log at /Users/***/.cache/pre-commit/pre-commit.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants