Skip to content

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

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

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

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

Details: None

Summary by Sourcery

Chores:

  • Apply automatic code formatting to improve code style.

This commit fixes the style issues introduced in 648f7ba 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 improves code style by formatting it with Autopep8, isort, and Ruff Formatter. The changes primarily involve removing unnecessary blank lines and simplifying expressions.

Class diagram showing affected classes with style changes

classDiagram
    class TextClassifier {
        -model_config
        -model_path
        -pipeline
        +load_data(texts, labels, data_name)
        +_init_sklearn_pipeline(pipeline_config)
        +_split_data(x, y)
    }

    class Generator {
        +_openai_generate(user_input)
        +_huggingface_generate(user_input)
    }

    class DataLoader {
        -file_name_or_path
        -file_type
        -filter
        +load_data2list(max_count)
    }

    note for TextClassifier "Style formatting changes in class methods"
    note for Generator "Simplified line breaks in methods"
    note for DataLoader "Simplified conditional expression"
Loading

File-Level Changes

Change Details Files
Formatted code with Autopep8, isort, and Ruff Formatter
  • Removed unnecessary blank lines and whitespace
  • Combined multi-line expressions into single lines
  • Simplified logging statements
src/everyai/classfier/classfy.py
src/everyai/main.py
src/everyai/generator/generate.py
src/everyai/data_loader/data_load.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 648f7ba..d0a7724. 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