Skip to content

style: apply ALL ruff rules #158

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

style: apply ALL ruff rules #158

wants to merge 3 commits into from

Conversation

lsorber
Copy link
Member

@lsorber lsorber commented Jun 15, 2025

Changes:

  1. Apply "ALL" ruff rules, modulo a minimal set of exceptions.
  2. Disable the 'magic' trailing comma for more consistent and automatic formatting.
  3. Fix linting issues resulting from (1).

@lsorber lsorber requested a review from Copilot June 15, 2025 10:43
@lsorber lsorber self-assigned this Jun 15, 2025
Copy link

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR applies "ALL" ruff linting rules across the codebase and fixes the resulting linting issues. Key changes include reformatting function signatures and parameter lists, adding trailing commas, updating ignore rules in pyproject.toml, and minor documentation adjustments.

Reviewed Changes

Copilot reviewed 30 out of 30 changed files in this pull request and generated no comments.

Show a summary per file
File Description
src/raglite/_split_chunklets.py Adjusted numpy.asarray formatting for better style compliance.
src/raglite/_search.py Reformatted function arguments and list comprehensions; added trailing commas.
src/raglite/_rag.py Updated parameter formatting and added type annotations.
src/raglite/_query_adapter.py Updated tqdm parameter formatting and ruff ignore comment.
src/raglite/_mcp.py Minor trailing comma and formatting changes.
src/raglite/_markdown.py Improved list formatting with trailing commas.
src/raglite/_litellm.py Added missing type annotations and trailing commas.
src/raglite/_lazy_llama.py Added return type annotations and adjusted inline comments.
src/raglite/_insert.py Reformatted function calls and parameter ordering.
src/raglite/_extract.py Updated comment annotations and trailing commas.
src/raglite/_eval.py Reformatted parameters and added commas for consistency.
src/raglite/_embed.py Adjusted multi-line argument formatting and trailing commas.
src/raglite/_database.py Reformatted init functions and added inline noqa comments.
src/raglite/_config.py Updated parameter formatting for consistency.
src/raglite/_cli.py Reformatted CLI option ordering and comments.
src/raglite/_chatml_function_calling.py Adjusted inline comments and parameter formatting.
src/raglite/_chainlit.py Minor formatting changes for consistency.
src/raglite/_bench.py Reformatted constructor methods and property definitions.
src/raglite/init.py Adjusted all declaration with inline noqa comment.
pyproject.toml Updated ruff configuration to select "ALL" rules and appropriate ignores.

@lsorber lsorber requested a review from PGerardi June 16, 2025 07:06
@lsorber lsorber changed the title style: apply all ruff rules style: apply ALL ruff rules Jun 19, 2025
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