Skip to content

More 5.0 stuff that I should have done on main.#367

Open
scott-griffiths wants to merge 66 commits into
mainfrom
5_0
Open

More 5.0 stuff that I should have done on main.#367
scott-griffiths wants to merge 66 commits into
mainfrom
5_0

Conversation

@scott-griffiths

Copy link
Copy Markdown
Owner

No description provided.

scott-griffiths and others added 30 commits March 11, 2026 18:57
* Removing bitarray dependency.
* Removing tobitarray() method and other compatibilities.
* Removing options.using_rust_core flag.
* Removing bitarray tests from CI.
Scott Griffiths added 29 commits May 27, 2026 12:45
Adding Reader class that adds a bit position by wrapping either a Bits or BitArray.
…errors and confusion especially for start and end parameters.
Key changes:
Added Bits.from_zeros, from_ones, from_bools, from_bytes, from_file, from_joined, from_dtype, and from_string.
Added matching BitArray factories returning mutable instances.
Added Bits.to_bitarray() and BitArray.to_bits().
Removed fromstring; use from_string.
Made Bits(100) / BitArray(100) raise with a from_zeros hint.
Removed direct constructor paths for arbitrary bool iterables, BytesIO, file objects, and array.array; tests/docs now use explicit factories.
Updated internal uses such as Array(...) storage allocation and display helpers to avoid BitArray(n) / Bits(n).
Bits.to_bytes() / to_file() with tobytes() / tofile() aliases.
Array.to_list() / to_bytes() / to_file() / from_file() with old aliases.
Reader.read_list() / peek_list() / read_to() / byte_align() with old aliases.
Left bytealigned unchanged.
Updated README, docs, quick reference, walkthrough notebook, and release notes to prefer the new names.
Added tests covering the new spellings and the old compatibility shims.
@codacy-production

Copy link
Copy Markdown

Not up to standards ⛔

🔴 Issues 3 high · 51 minor

Alerts:
⚠ 54 issues (≤ 0 issues of at least minor severity)

Results:
54 new issues

Category Results
Documentation 51 minor
ErrorProne 3 high

View in Codacy

🟢 Metrics 154 complexity · 4 duplication

Metric Results
Complexity 154
Duplication 4

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

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

Successfully merging this pull request may close these issues.

1 participant