Skip to content

Commit b9c09c9

Browse files
authored
Pin codegen version (#17)
1 parent 1410c59 commit b9c09c9

File tree

3 files changed

+2163
-0
lines changed

3 files changed

+2163
-0
lines changed

.pre-commit-config.yaml

Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
default_language_version:
2+
python: python3.12
3+
fail_fast: true
4+
repos:
5+
- repo: https://github.com/astral-sh/ruff-pre-commit
6+
rev: v0.9.3
7+
hooks:
8+
# Run the linter.
9+
- id: ruff
10+
types_or: [python, jupyter, pyi]
11+
args: [--fix]
12+
13+
# Run the formatter.
14+
- id: ruff-format
15+
types_or: [python, jupyter, pyi]
16+
17+
- repo: https://github.com/kynan/nbstripout
18+
rev: 0.8.1
19+
hooks:
20+
- id: nbstripout
21+
22+
- repo: https://github.com/pre-commit/pre-commit-hooks
23+
rev: v5.0.0
24+
hooks:
25+
- id: trailing-whitespace
26+
exclude: tests/
27+
exclude_types: [mdx, pyi]
28+
- id: check-yaml
29+
- id: end-of-file-fixer
30+
files: .*/expected_diff.patch
31+
- id: check-merge-conflict
32+
33+
- repo: https://github.com/python-jsonschema/check-jsonschema
34+
rev: 0.31.0
35+
hooks:
36+
- id: check-github-workflows
37+
- id: check-github-actions
38+
args: ["--verbose"]
39+
40+
- repo: https://github.com/mxr/sync-pre-commit-deps
41+
rev: v0.0.3
42+
hooks:
43+
- id: sync-pre-commit-deps
44+
45+
- repo: https://github.com/codespell-project/codespell
46+
rev: v2.4.0
47+
hooks:
48+
- id: codespell
49+
additional_dependencies:
50+
- tomli
51+
files: "docs/.*/.*.mdx"
52+
53+
- repo: https://github.com/fpgmaas/deptry.git
54+
rev: "0.23.0"
55+
hooks:
56+
- id: deptry
57+
pass_filenames: false
58+
always_run: true
59+
entry: bash -c "uv run --frozen --all-extras --dev deptry src --ignore DEP001"
60+
- repo: "local"
61+
hooks:
62+
- id: disallowed-words-check
63+
name: Check for disallowed words
64+
entry: scripts/disallowed-words-check.sh
65+
language: script
66+
files: '' # Check all files
67+
- repo: https://github.com/renovatebot/pre-commit-hooks
68+
rev: 39.120.4
69+
hooks:
70+
- id: renovate-config-validator
71+
- repo: https://github.com/astral-sh/uv-pre-commit
72+
rev: "0.5.24"
73+
hooks:
74+
- id: uv-lock
75+
entry: bash -c "uv lock --frozen"

pyproject.toml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
[project]
2+
name = "codegen-examples"
3+
version = "0.0.0"
4+
readme = "README.md"
5+
requires-python = ">=3.12, <3.14"
6+
dependencies = [
7+
"codegen==0.5.3"
8+
]
9+
license = {file = "LICENSE"}
10+
classifiers = [
11+
"License :: OSI Approved :: Apache Software License",
12+
"Intended Audience :: Developers",
13+
"Programming Language :: Python :: 3.12",
14+
"Programming Language :: Python :: 3.13",
15+
"Topic :: Software Development",
16+
"Development Status :: 4 - Beta",
17+
"Environment :: MacOS X",
18+
"Programming Language :: Python :: 3",
19+
"Programming Language :: Python",
20+
]
21+
22+
[tool.ruff]
23+
line-length = 200
24+
25+
[tool.uv]
26+
cache-keys = [{ git = { commit = true, tags = true } }]
27+
dev-dependencies = [
28+
"pre-commit>=4.0.1",
29+
"pre-commit-uv>=4.1.4",
30+
"uv>=0.4.25",
31+
]
32+
33+
[tool.pre-commit-uv]
34+
cache-keys = [{ git = { commit = true, tags = true } }]
35+
requirements = [
36+
"strict-requirements",
37+
]

0 commit comments

Comments
 (0)