Skip to content

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

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

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

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 ab54ba7 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 ab54ba7 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 resolving issues identified by Autopep8, isort, and Ruff Formatter. The changes primarily involve whitespace adjustments, line breaks, and import order corrections, enhancing readability and maintainability.

Class diagram showing affected classes with style changes

classDiagram
    class DataLoader {
        +load_data2list(max_count)
    }
    class TextClassifier {
        +load_data(texts, labels, data_name)
        +_init_sklearn_pipeline(pipeline_config)
        +_split_data(x, y)
    }
    class MultiFeatureModel {
        +forward(f1, f2, f3)
    }
    note for TextClassifier "Style improvements in method formatting"
    note for DataLoader "Simplified conditional statements and logging"
    note for MultiFeatureModel "Improved line wrapping in tensor operations"
Loading

File-Level Changes

Change Details Files
Applied Autopep8, isort, and Ruff Formatter to fix style issues.
  • Removed unnecessary blank lines.
  • Combined multiple short lines into single lines.
  • Corrected import order and style.
  • Fixed whitespace inconsistencies.
  • Improved line breaks for better readability.
src/everyai/classfier/classfy.py
src/everyai/main.py
src/everyai/data_loader/data_load.py
src/everyai/classfier/multi_feature/model.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 ab54ba7..9681b7a. 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