Skip to content

Commit c1edc82

Browse files
eacodegenbagel897
andauthored
Update pyproject.toml metadata (#127)
Co-authored-by: bagel897 <ellenagarwal897@gmail.com>
1 parent c592e1b commit c1edc82

File tree

3 files changed

+214
-163
lines changed

3 files changed

+214
-163
lines changed

.pre-commit-config.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,10 @@ repos:
2020
- id: biome-check
2121
additional_dependencies: ["@biomejs/biome@1.9.4"]
2222
exclude: (src/codemods/eval)|(tests/unit/skills/snapshots)|(tests/unit/codegen/sdk/output)|(tests/integration/verified_codemods)|(docs/samples)
23-
23+
- repo: https://github.com/ComPWA/taplo-pre-commit
24+
rev: v0.9.3
25+
hooks:
26+
- id: taplo-format
2427
- repo: https://github.com/MarcoGorelli/cython-lint
2528
rev: v0.16.6
2629
hooks:

hatch.toml

Lines changed: 28 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,9 @@ tool = ["uv", "pip"]
1212
[envs.hatch-build.overrides]
1313
matrix.tool.installer = { value = "{matrix:tool}" }
1414
matrix.tool.scripts = [
15-
{ key = "pip", value = "{env:HATCH_UV} pip {args}", if = [
16-
"uv",
17-
] },
15+
{ key = "pip", value = "{env:HATCH_UV} pip {args}", if = [
16+
"uv",
17+
] },
1818
]
1919

2020
[version]
@@ -25,19 +25,19 @@ UV_EXTRA_INDEX_URL = "https://aws@codegen-922078275900.d.codeartifact.us-east-1.
2525

2626
[build.targets.wheel.hooks.cython]
2727
dependencies = [
28-
"hatch-cython @ git+https://github.com/codegen-sh/hatch-cython.git",
29-
"cython>=3.0.11",
30-
"tree-sitter",
31-
"networkx",
28+
"hatch-cython @ git+https://github.com/codegen-sh/hatch-cython.git",
29+
"cython>=3.0.11",
30+
"tree-sitter",
31+
"networkx",
3232
]
3333

3434
[build.targets.wheel.hooks.cython.options]
3535
src = "codegen/sdk"
3636
compile_args = [
37-
"-O3",
38-
{ platforms = [
39-
"darwin",
40-
], arch = "arm64", arg = "-mcpu=apple-m1" },
37+
"-O3",
38+
{ platforms = [
39+
"darwin",
40+
], arch = "arm64", arg = "-mcpu=apple-m1" },
4141
]
4242
cythonize_kwargs = { annotate = true, nthreads = 16, exclude_failures = false, cache = true }
4343
compiled_sdist = true
@@ -57,27 +57,30 @@ c_string_type = "unicode"
5757

5858
[build.targets.wheel.hooks.cython.options.files]
5959
exclude = [
60-
"**/__init__.py",
61-
"**/code_generation",
62-
"**/skills",
63-
"**/codebase/factory",
64-
"**/guides",
65-
"**/testing",
66-
"**/codebase_graph_utils.py",
60+
"**/__init__.py",
61+
"**/code_generation",
62+
"**/skills",
63+
"**/codebase/factory",
64+
"**/guides",
65+
"**/testing",
66+
"**/codebase_graph_utils.py",
6767
]
6868

6969
[build.targets.wheel]
7070
macos-max-compat = false
7171

7272
[build]
73-
packages = [
74-
"src/codegen",
75-
]
76-
77-
[metadata.hooks.vcs]
78-
Homepage = "https://github.com/codegen-sh/codegen-sdk"
79-
source_archive = "https://github.com/codegen-sh/codegen-sdk/archive/{commit_hash}.zip"
73+
packages = ["src/codegen"]
8074

75+
[metadata.hooks.vcs.urls]
76+
Homepage = "https://www.codegen.com/"
77+
Repository = "https://github.com/codegen-sh/codegen-sdk"
78+
download = "https://github.com/codegen-sh/codegen-sdk/archive/{commit_hash}.zip"
79+
Changelog = "https://docs.codegen.com/changelog/changelog"
80+
Releasenotes = "https://github.com/codegen-sh/codegen-sdk/releases"
81+
Issues = "https://github.com/codegen-sh/codegen-sdk/issues"
82+
Documentation = "https://docs.codegen.sh"
83+
Playground = "https://www.codegen.sh/"
8184

8285
[build.targets.wheel.hooks.custom]
8386
enable-by-default = false

0 commit comments

Comments
 (0)