Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

precommit: add pyproject's hooks #1412

Merged
merged 6 commits into from Apr 29, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 10 additions & 0 deletions dev_config/python/.pre-commit-config.yaml
Expand Up @@ -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
Expand Down
4 changes: 3 additions & 1 deletion pyproject.toml
Expand Up @@ -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
Expand Down