[ 
https://issues.apache.org/jira/browse/AVRO-4319?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

ASF GitHub Bot updated AVRO-4319:
---------------------------------
    Labels: pull-request-available  (was: )

> [build] python lint fails on 1.13.x 
> ------------------------------------
>
>                 Key: AVRO-4319
>                 URL: https://issues.apache.org/jira/browse/AVRO-4319
>             Project: Apache Avro
>          Issue Type: Bug
>            Reporter: Ryan Skraba
>            Priority: Major
>              Labels: pull-request-available
>          Time Spent: 10m
>  Remaining Estimate: 0h
>
> GitHub actions and local build fails for python on {{main. (unreleased 
> 1.13.0)}}
> It looks like these are reasonable but I can't find the tool or version bump 
> that causes this failure. 
> This (python) commit succeeds: 
> [https://github.com/apache/avro/commit/eab0e48bb8b7b21d78b0aa2121fe107600e10af6]
> And this (unrelated C#) commit fails: 
> [https://github.com/apache/avro/commit/787adb119c707815e8c6e75289a40a8ec989bc65]
>  
> {code:java}
> 2026-08-02T10:59:17.8040811Z RUF022 [*] `__all__` is not sorted
> 2026-08-02T10:59:17.8041047Z   --> avro/utils.py:40:11
> 2026-08-02T10:59:17.8041148Z    |
> 2026-08-02T10:59:17.8041343Z 38 | randbytes = getattr(random, "randbytes", 
> _randbytes)
> 2026-08-02T10:59:17.8041455Z 39 |
> 2026-08-02T10:59:17.8041603Z 40 | __all__ = ("randbytes", "TypedDict")
> 2026-08-02T10:59:17.8041746Z    |           ^^^^^^^^^^^^^^^^^^^^^^^^^^
> 2026-08-02T10:59:17.8041890Z help: Apply an isort-style sorting to `__all__`
> 2026-08-02T10:59:17.8042022Z    |
> 2026-08-02T10:59:17.8042137Z 39 |
> 2026-08-02T10:59:17.8042318Z    - __all__ = ("randbytes", "TypedDict")
> 2026-08-02T10:59:17.8042434Z 40 + __all__ = ("TypedDict", "randbytes")
> 2026-08-02T10:59:17.8042630Z    |
> 2026-08-02T10:59:17.8042635Z 
> 2026-08-02T10:59:17.8042756Z RUF012 Mutable default value for class attribute
> 2026-08-02T10:59:17.8042942Z   --> setup.py:84:20
> 2026-08-02T10:59:17.8043043Z    |
> 2026-08-02T10:59:17.8043254Z 82 |       """A command to generate Avro files 
> for data interop test."""
> 2026-08-02T10:59:17.8043349Z 83 |
> 2026-08-02T10:59:17.8043484Z 84 |       user_options = [
> 2026-08-02T10:59:17.8044196Z    |  ____________________^
> 2026-08-02T10:59:17.8044449Z 85 | |         ("schema-file=", None, "path to 
> input Avro schema file"),
> 2026-08-02T10:59:17.8044615Z 86 | |         ("output-path=", None, "path to 
> output Avro data files"),
> 2026-08-02T10:59:17.8044754Z 87 | |     ]
> 2026-08-02T10:59:17.8044852Z    | |_____^
> 2026-08-02T10:59:17.8044990Z 88 |
> 2026-08-02T10:59:17.8045132Z 89 |       def initialize_options(self):
> 2026-08-02T10:59:17.8045266Z    |
> 2026-08-02T10:59:17.8045534Z help: Consider initializing in `__init__` or 
> annotating with `typing.ClassVar`
> 2026-08-02T10:59:17.8045539Z 
> 2026-08-02T10:59:17.8045652Z Found 247 errors.
> 2026-08-02T10:59:17.8045974Z [*] 144 fixable with the `--fix` option (22 
> hidden fixes can be enabled with the `--unsafe-fixes` option). {code}
>  
>  



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to