π OpenHands: AI-Driven Development
precommit: add `pyproject`'s hooks (#1412)
Jirka Borovec46bd83678a09
diff --git a/dev_config/python/.pre-commit-config.yaml b/dev_config/python/.pre-commit-config.yamlindex a7afaffde4..3fca8dba10 100644--- a/dev_config/python/.pre-commit-config.yaml+++ b/dev_config/python/.pre-commit-config.yaml@@ -7,6 +7,16 @@ repos:- id: check-yaml- id: debug-statements+ - repo: https://github.com/tox-dev/pyproject-fmt+ rev: 1.7.0+ hooks:+ - id: pyproject-fmt+ - repo: https://github.com/abravalheri/validate-pyproject+ rev: v0.16+ hooks:+ - id: validate-pyproject++- repo: https://github.com/astral-sh/ruff-pre-commit# Ruff version.rev: v0.3.7diff --git a/pyproject.toml b/pyproject.tomlindex a47a0fce6e..47e13ebb56 100644--- a/pyproject.toml+++ b/pyproject.toml@@ -49,8 +49,10 @@ pytest-asyncio = "*"torch = "2.2.2"[build-system]-requires = ["poetry-core"]build-backend = "poetry.core.masonry.api"+requires = [+ "poetry-core",+][tool.autopep8]# autopep8 fights with mypy on line length issue