JdeRobot / JdeRobot/PerceptionMetrics

[ENH] Add pre commit hooks for consistent code formatting and basic hygine

Open
#483 7 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
112
Forks
109
PR merge metrics
No merged PRs in 30d

Description

Currently we are using Black for python code formatting and since we have to run it manually people tend to forget.

Proposed solution : To setup pre-commit hooks to run black and other basic hooks for checking yaml/toml files, checks for end of file, trailing white spaces etc (all usual pre commit hooks)

Further maybe we could replace black with ruff for linting and formatting ?

@dpascualhe I'd like to know your opinion on this when you have the time. If you think this a good idea I'd be more than happy to work on this and make a PR :) .

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.