mirror of
https://github.com/OpenHands/OpenHands.git
synced 2025-12-26 05:48:36 +08:00
precommit: add pyproject's hooks (#1412)
* precommit: add `pyproject`'s hooks * apply precommit * Update dev_config/python/.pre-commit-config.yaml --------- Co-authored-by: Engel Nyst <enyst@users.noreply.github.com> Co-authored-by: Robert Brennan <accounts@rbren.io>
This commit is contained in:
parent
1597f0093e
commit
46bd83678a
@ -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.7
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user