Skip to content

Tests: the house rules run through samebytes v0.3.0 (docs, source) - #5

Merged
loggger101 merged 1 commit into
mainfrom
samebytes-house-rules
Oct 26, 2026
Merged

loggger101 merged 1 commit into
mainfrom
samebytes-house-rules

Conversation

@loggger101

Copy link
Copy Markdown
Owner

tests/test_rules.py keeps its standard-library-only, ASCII, docstring and version-written-once rules, now run through samebytes.source. samebytes is a test extra; the package's runtime dependencies are unchanged.

The rules now live in samebytes v0.3.0 (samebytes.docs, samebytes.source; loggger101/samebytes#4). That release replaces the five or six hand-written copies of each rule that the repositories in this family had kept, which had drifted apart.

  • The import rule now answers on Python 3.9, where it used to skip.
  • Async definitions need a docstring too.

Verified

  • Full suite: 50 passed, with samebytes v0.3.0.
  • Planted defects each FAILED a test: an undocumented function, a lazy import numpy, and a typed version = in pyproject.

The hand-written ASCII, docstring, import, quiet-import, printed-string,
link and structure checks become calls into samebytes.docs and
samebytes.source, the one copy the family shares, pinned as a test extra.
The package and its runtime dependencies are unchanged.
@loggger101
loggger101 merged commit bf0b489 into main Oct 26, 2026
10 checks passed
@loggger101
loggger101 deleted the samebytes-house-rules branch October 26, 2026 22:32
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