Skip to content

style: format code with Autopep8, isort and Ruff Formatter#17

Open
deepsource-autofix[bot] wants to merge 1 commit into
mainfrom
deepsource-transform-abb9b163
Open

style: format code with Autopep8, isort and Ruff Formatter#17
deepsource-autofix[bot] wants to merge 1 commit into
mainfrom
deepsource-transform-abb9b163

Conversation

@deepsource-autofix

@deepsource-autofix deepsource-autofix Bot commented Dec 27, 2024

Copy link
Copy Markdown
Contributor

This commit fixes the style issues introduced in a1984fa according to the output
from Autopep8, isort and Ruff Formatter.

Details: None

Summary by Sourcery

Chores:

  • Apply automatic code formatting.

This commit fixes the style issues introduced in a1984fa according to the output
from Autopep8, isort and Ruff Formatter.

Details: None
@sourcery-ai

sourcery-ai Bot commented Dec 27, 2024

Copy link
Copy Markdown

Reviewer's Guide by Sourcery

This pull request applies style fixes using Autopep8, isort, and Ruff Formatter to the codebase. It primarily focuses on removing unnecessary parentheses and whitespace, resulting in more concise and readable code.

Class diagram for EveryAIDataset class with formatting changes

classDiagram
    class EveryAIDataset {
        +DataFrame datas
        +__init__(datas: DataFrame, ai_list: List)
        +insert_ai_response(question: str, ai_name: str, ai_response: str)
        +insert_human_response(question: str, human_response: str)
        -_update_new_row(question: str, arg1: str, arg2: str)
        +load(path_or_database: str|Path, formatter: str)
        +save(path_or_database: str|Path, formatter: str)
        -_load_from_mongodb(database: Database)
    }
    note for EveryAIDataset "Style changes:
    - Removed unnecessary parentheses
    - Fixed line wrapping
    - Improved code formatting"
Loading

File-Level Changes

Change Details Files
Removed extra parentheses and whitespace in assignments and function calls.
  • Removed extra parentheses around values being assigned to the 'datas' DataFrame.
  • Removed extra parentheses in function calls and assignments within the 'insert_ai_response', 'insert_human_response', '_update_new_row', 'load', and 'save' methods.
  • Simplified DataFrame column selection and assignment using more concise syntax.
src/everyai/data_loader/everyai_dataset.py
Fixed a minor grammatical error in a docstring comment.
  • Corrected the grammar in the docstring of the 'split_remove_stopwords_punctuation' function to improve clarity.
src/everyai/data_loader/dataprocess.py

Tips and commands

Interacting with Sourcery

  • Trigger a new review: Comment @sourcery-ai review on the pull request.
  • Continue discussions: Reply directly to Sourcery's review comments.
  • Generate a GitHub issue from a review comment: Ask Sourcery to create an
    issue from a review comment by replying to it.
  • Generate a pull request title: Write @sourcery-ai anywhere in the pull
    request title to generate a title at any time.
  • Generate a pull request summary: Write @sourcery-ai summary anywhere in
    the pull request body to generate a PR summary at any time. You can also use
    this command to specify where the summary should be inserted.

Customizing Your Experience

Access your dashboard to:

  • Enable or disable review features such as the Sourcery-generated pull request
    summary, the reviewer's guide, and others.
  • Change the review language.
  • Add, remove or edit custom review instructions.
  • Adjust other review settings.

Getting Help

@sourcery-ai sourcery-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

We have skipped reviewing this pull request. It seems to have been created by a bot (hey, deepsource-autofix[bot]!). We assume it knows what it's doing!

@deepsource-io

deepsource-io Bot commented Dec 27, 2024

Copy link
Copy Markdown
Contributor

Here's the code health analysis summary for commits a1984fa..f47cb6d. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython✅ Success
🎯 1 occurence resolved
View Check ↗

💡 If you’re a repository administrator, you can configure the quality gates from the settings.

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.

0 participants