Skip to content

Pre Commit #91

@mithun2003

Description

@mithun2003

I create a pre commit file which will check this ruff, format of the staged code if format require it format the file and stop that commit and also check for prints if a print occur in the staged code it will throw an error and stop the commit.

this is the code for that pre commit
Screenshot 2024-01-01 100617

but for run this the system have pre-commit and flake8-print installed.

pip install pre-commit flake8-print

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions