mirror of
https://github.com/All-Hands-AI/OpenHands.git
synced 2026-01-09 23:08:04 -05: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:
@@ -7,6 +7,16 @@ repos:
|
|||||||
- id: check-yaml
|
- id: check-yaml
|
||||||
- id: debug-statements
|
- 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
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
||||||
# Ruff version.
|
# Ruff version.
|
||||||
rev: v0.3.7
|
rev: v0.3.7
|
||||||
|
|||||||
@@ -49,8 +49,10 @@ pytest-asyncio = "*"
|
|||||||
torch = "2.2.2"
|
torch = "2.2.2"
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry-core"]
|
|
||||||
build-backend = "poetry.core.masonry.api"
|
build-backend = "poetry.core.masonry.api"
|
||||||
|
requires = [
|
||||||
|
"poetry-core",
|
||||||
|
]
|
||||||
|
|
||||||
[tool.autopep8]
|
[tool.autopep8]
|
||||||
# autopep8 fights with mypy on line length issue
|
# autopep8 fights with mypy on line length issue
|
||||||
|
|||||||
Reference in New Issue
Block a user