Would you consider adding pre-commit
config to the repo? This wouldn't mean people have to enable it, but would make it possible for people who are happy to use it, to enable it and have a nicer time dealing with linting issues.
It could be a variation of this:
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v5.0.0
hooks:
- id: check-yaml
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/astral-sh/ruff-pre-commit
# Ruff version.
rev: v0.8.0
hooks:
- id: ruff
args: ["--fix", "--output-format=full", "--select=I"]
- id: ruff-format
To enable, the user would do:
pip install pre-commit
pre-commit install
Comment From: sachinprasadhs
Thanks for reporting the issue.
We have pre-commit available for Keras repo now, which will take care of lint issues by auto formating before making the commit. Here is the file with the change https://github.com/keras-team/keras/blob/master/.pre-commit-config.yaml
Feel free to close the issue.