Skip to content

Conversation

ghost
Copy link

@ghost ghost commented Dec 11, 2024

Description

This pull request aims to address the issue titled "more ruff configuration" by providing support for custom first party libraries and allowing the configuration file to define additional settings. Currently, the default behavior includes I (isort rules) even when isort=False, which is not ideal.

Changes Made

  • Added support for custom first party libraries in the configuration.
  • Updated the configuration file to support defining additional settings.
  • Excluded I (isort rules) when the isort parameter is set to False.

Related Issue

Closes #issue_number

How to Test

  1. Add custom first party libraries to the configuration file.
  2. Define additional settings in the configuration file.
  3. Set isort=False and ensure that I (isort rules) are excluded as expected.

Screenshots

(Optional: Include any relevant screenshots to demonstrate the changes, if applicable)

Please review and merge this pull request. Thank you!

Copy link
Member

@samuelcolvin samuelcolvin left a comment

Choose a reason for hiding this comment

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

I think it would be better to just have a ruff_flags argument.

Comment on lines -75 to +77
if self.ruff_ignore:
if self.first_party:
args.append(f'--first-party={",".join(self.first_party)}')
Copy link
Member

Choose a reason for hiding this comment

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

this looks wrong.

@ghost ghost closed this by deleting the head repository Jun 10, 2025
This pull request was closed.
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