Skip to content

fix(ruff): some ruff shenanigans - #76

Merged
dunderrrrrr merged 1 commit into
mainfrom
push-uuqpmpxxnrsk
Sep 7, 2026
Merged

fix(ruff): some ruff shenanigans#76
dunderrrrrr merged 1 commit into
mainfrom
push-uuqpmpxxnrsk

Conversation

@dunderrrrrr

@dunderrrrrr dunderrrrrr commented Sep 7, 2026

Copy link
Copy Markdown
Owner

Summary by CodeRabbit

  • Refactor

    • Improved internal code consistency and readability without changing application behavior.
    • Standardized import ordering and formatting across the project.
    • Simplified internal validation and cleanup logic.
  • Chores

    • Updated linting configuration to accommodate existing code patterns.
    • Maintained the same exported API and documentation output.

@coderabbitai

coderabbitai Bot commented Sep 7, 2026

Copy link
Copy Markdown

Review Change Stack

Caution

Review failed

The pull request is closed.

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: defaults

Review profile: CHILL

Plan: Team

Run ID: 330e23c2-dd37-4c7b-9101-94b135e2a21a

📥 Commits

Reviewing files that changed from the base of the PR and between 9b8861c and 910dae5.

📒 Files selected for processing (15)
  • blocket_api/__init__.py
  • blocket_api/async_blocket.py
  • blocket_api/blocket.py
  • docs/components/changelog.py
  • docs/components/tips.py
  • docs/components_base.py
  • docs/views/changelog.py
  • docs/views/endpoints.py
  • docs/views/examples.py
  • docs/views/index.py
  • docs/views/python.py
  • docs/views/quickstart.py
  • docs/views/tips.py
  • pyproject.toml
  • scripts/check_all_exports.py

📝 Walkthrough

Walkthrough

The pull request applies non-functional cleanup across API exports, typing, documentation components, import ordering, Ruff configuration, and export-checking logic. It preserves exported names, rendered documentation text, HTMX attributes, and export-detection behavior.

Changes

Code quality cleanup

Layer / File(s) Summary
API export and typing cleanup
blocket_api/__init__.py, blocket_api/async_blocket.py, blocket_api/blocket.py
The export list and imports were reordered. AsyncBlocketAPI.__aexit__ now uses object for its variadic exception parameter.
Documentation component and lint cleanup
docs/components/tips.py, docs/components_base.py, pyproject.toml
Documentation string formatting was adjusted. Ruff suppressions were added. _htmx now returns an equivalent dictionary literal.
Documentation import ordering
docs/views/*.py, docs/components/changelog.py
Imports were reordered and grouped without changing runtime behavior.
Export checker simplification
scripts/check_all_exports.py
Nested conditions were flattened while preserving public-name and __all__ extraction behavior.

Estimated code review effort: 2 (Simple) | ~10 minutes

✨ Finishing Touches
📝 Generate docstrings
  • Create stacked PR
  • Commit on current branch
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Commit unit tests in branch push-uuqpmpxxnrsk

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@dunderrrrrr
dunderrrrrr merged commit 0d3205d into main Sep 7, 2026
4 of 5 checks passed
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