Commit Graph
9 Commits
Author SHA1 Message Date
James HilliardandArun Babu Neelicattu 6a65ca94bc Update ruff and run ruff format 2025-01-16 03:15:32 +01:00
James HilliardandGitHub f33a42b082 Update metadata to use PEP 621 (#654)
* Drop python version 3.8 support
* Add python 3.13 support in CI
2025-01-14 15:42:13 +01:00
AdrienandGitHub f41934a0e2 Use ruff instead of black+isort (#644)
* Use ruff

* Update .gitignore

* Format code

* Use Ruff on generated code

* Update pre-commit hook

* Wrong commit

* Remove wrong imports

* Update hook

* Format code

* Target Python 3.8

* Reformat

* Pin ruff version
2025-01-03 01:59:43 +00:00
Joshua LeiversandGitHub 4f18ed1325 Add support for streaming delimited messages (#529)
* Add support for streaming delimited messages

This allows developers to easily dump and load multiple messages
from a stream in a way that is compatible with official
protobuf implementations (such as Java's
`MessageLite#writeDelimitedTo(...)`).

* Add Java compatibility tests for streaming

These tests stream data such as messages to output files, have a
Java binary read them and then write them back using the
`protobuf-java` functions, and then read them back in on the Python
side to check that the returned data is as expected. This checks
that the official Java implementation (and so any other matching
implementations) can properly parse outputs from Betterproto, and
vice-versa, ensuring compatibility in these functions between the
two.

* Replace `xxxxableBuffer` with `SupportsXxxx`
2023-10-16 21:59:33 +11:00
Alexander KhabarovandGitHub 6faac1d1ca Raise AttributeError on attempts to access unset oneof fields (#510) 2023-07-21 13:26:30 +01:00
James Hilton-BalfeandGitHub 6df8cef3f0 Fix CI (#456) 2023-02-13 00:20:58 +00:00
James Hilton-BalfeandGitHub 402c21256f Fix unicodefun import error in black (#366) 2022-04-16 22:15:14 +01:00
Arun Babu NeelicattuandGitHub 70310c9e8c pre-commit: add isort hook and apply (#354) 2022-03-17 00:01:17 +00:00
Arun Babu NeelicattuandGitHub a836fb23bc Configure pre-commit for project (#346) 2022-03-03 18:10:01 +00:00