Skip to content

Add support for Ruff #90

@fazeelghafoor

Description

@fazeelghafoor

I have a proposal for adding ruff for this project to improve code quality and standard according to pep8. I have forked the repo and checked that it is already using black and pyre but I have a suggestion to use ruff instead for both as a linter and formatter instead of black.

.pre-commit-config.yaml:

    rev: "v0.5.4"
    hooks:
      - id: ruff
        args: ["--fix"]
      - id: ruff-format

this will resolve all the unused imports and catch any unused code like the following

Undefined name time RuffF821

"time" is not defined PylancereportUndefinedVariable

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions