Skip to content

Commit e71e1e1

Browse files
committed
use pre-commit for unified formatting
1 parent 8233687 commit e71e1e1

File tree

3 files changed

+17
-6
lines changed

3 files changed

+17
-6
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ wheels/
2424
.installed.cfg
2525
*.egg
2626
MANIFEST
27+
*.lock
2728

2829
# Virtual environments
2930
venv/

.pre-commit-config.yaml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
repos:
2+
- repo: https://github.com/pycqa/isort
3+
rev: "7.0.0"
4+
hooks:
5+
- id: isort
6+
args: ["--profile", "black"]
7+
8+
- repo: https://github.com/psf/black
9+
rev: "25.12.0"
10+
hooks:
11+
- id: black

pyproject.toml

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,8 @@ dynamic = ["version"]
88
description = "Open-source implementation of AlphaEvolve"
99
readme = "README.md"
1010
requires-python = ">=3.10"
11-
license = {text = "Apache-2.0"}
12-
authors = [
13-
{name = "codelion"}
14-
]
11+
license = { text = "Apache-2.0" }
12+
authors = [{ name = "codelion" }]
1513
dependencies = [
1614
"openai>=1.0.0",
1715
"pyyaml>=6.0",
@@ -28,6 +26,7 @@ dev = [
2826
"isort>=5.10.0",
2927
"mypy>=0.950",
3028
"requests>=2.28.0",
29+
"pre-commit>=4.5.1",
3130
]
3231

3332
[tool.black]
@@ -52,7 +51,7 @@ openevolve-run = "openevolve.cli:main"
5251
[tool.pytest.ini_options]
5352
markers = [
5453
"slow: marks tests as slow (deselect with '-m \"not slow\"')",
55-
"integration: marks tests as integration tests requiring external services"
54+
"integration: marks tests as integration tests requiring external services",
5655
]
5756
addopts = "--strict-markers"
5857

@@ -63,4 +62,4 @@ include = ["openevolve*"]
6362
openevolve = ["prompts/defaults/*.txt", "prompts/defaults/*.json"]
6463

6564
[tool.setuptools.dynamic]
66-
version = {attr = "openevolve._version.__version__"}
65+
version = { attr = "openevolve._version.__version__" }

0 commit comments

Comments
 (0)