Skip to content

Conversation

@TheSecurityDev
Copy link
Contributor

Enables the following Ruff lint rule set (Pylint errors):
https://docs.astral.sh/ruff/rules/#error-ple

Also fixes the single error that was raised from this.

Copilot AI review requested due to automatic review settings November 7, 2025 04:44
@TheSecurityDev
Copy link
Contributor Author

There's a few others that could be useful, such as PLW, but those have lots of violations in the code currently

Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull Request Overview

This PR fixes a bug in the DirectoryTarChunkReader.__init__ method and enables Pylint Error rules in the linter configuration to catch similar issues.

  • Removed incorrect return statement from __init__ method in DirectoryTarChunkReader class
  • Enabled "PLE" (Pylint Error) rules in Ruff linter configuration to prevent similar errors

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated no comments.

File Description
system/updated/casync/casync.py Fixed incorrect return statement in DirectoryTarChunkReader.__init__ method
pyproject.toml Added "PLE" (Pylint Error rules) to Ruff linter select list to catch errors like returning values from __init__

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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