Skip to content

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

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

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

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 6b1e533 according to the output
from Autopep8, isort and Ruff Formatter.

Details: None

Summary by Sourcery

Chores:

  • Apply automatic code formatting to improve code readability and consistency.

This commit fixes the style issues introduced in 6b1e533 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 formats the code using Autopep8, isort, and Ruff Formatter, improving code readability and maintainability.

Class diagram showing the affected classes and their relationships

classDiagram
    class EveryaiDataset {
        +load(path_or_database: str|Path, formatter: str)
        +save(path_or_database: str|Path, formatter: str)
        -_initialize_mongo_connection()
    }
    class Generator {
        -_openai_generate(user_input: str)
        -_huggingface_generate(user_input: str)
    }
    note for EveryaiDataset "Code formatting improvements in load() and save() methods"
    note for Generator "Code formatting improvements in generation methods"
Loading

File-Level Changes

Change Details Files
Formatted code with Autopep8, isort, and Ruff Formatter.
  • Removed unnecessary line breaks and extra spaces.
  • Standardized import order and style.
  • Improved overall code formatting to enhance consistency and readability.
src/everyai/main.py
src/everyai/generator/generate.py
src/everyai/data_loader/everyai_dataset.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 6b1e533..bd9a70e. View details on DeepSource ↗.

Analysis Summary

AnalyzerStatusSummaryLink
DeepSource Python LogoPython✅ Success
🎯 7 occurences 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