Skip to content

Starting on v5.0#361

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

Starting on v5.0#361
scott-griffiths wants to merge 61 commits into
mainfrom
5_0

Conversation

@scott-griffiths

Copy link
Copy Markdown
Owner
  • Removing bitarray dependency.
  • Removing tobitarray() method and other compatibilities.
  • Removing options.using_rust_core flag.
  • Removing bitarray tests from CI.

@codacy-production

codacy-production Bot commented May 5, 2026

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 149 complexity · 2 duplication

Metric Results
Complexity 149
Duplication 2

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.

Scott Griffiths added 30 commits May 9, 2026 18:35
… be sped up a lot be not allocating intermediate objects.
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.
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