cheshire-cat-ai / core

Production ready AI agent framework
https://cheshirecat.ai
GNU General Public License v3.0
2.14k stars 282 forks source link

[Feature] Add python linter #847

Closed valentimarco closed 1 week ago

valentimarco commented 4 weeks ago

Description

Add Ruff as pre-commit hook and CI/CD to the repo. Ruff is an extremely fast Python linter and code formatter, written in Rust. It's added as dependency in the container, so anyone can choose to use it as hook or as CLI command!

To resolve all error, use ruff format

Related to issue #815

Type of change

Checklist:

pieroit commented 1 week ago

Thanks @valentimarco fixed all the warnings by ruff Using this command: docker exec cheshire_cat_core ruff check