Skip to content

Enable extra Ruff rules #79

@ruancomelli

Description

@ruancomelli

Is your improvement request related to a problem? Please describe.
Currently, the pyproject.toml includes only a basic set of Ruff rules. However, Ruff provides a wide range of additional rules that could help enforce better code quality, catch potential issues early, and ensure consistency across the project. Without these additional checks, some best practices and potential improvements might be overlooked.

Describe the improvement you'd like
Review the full list of Ruff rules available at Ruff's documentation and identify relevant rules that could be beneficial for our project. Then, update the pyproject.toml to include these rules and enforce them in CI.

Describe alternatives you've considered

  • Keeping the current minimal set of Ruff rules, but this may allow avoidable issues to slip through.
  • Manually enforcing best practices through code reviews, though this is less efficient than automated checks.

Benefits

  • Improves code quality and consistency.
  • Automates best practices enforcement, reducing the need for manual review.
  • Helps catch potential bugs, inefficiencies, and style issues before they make it to production.

Additional context

  • Reference: Ruff rules documentation
  • This improvement would make our codebase cleaner and easier to maintain over time.

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions