Skip to content

Commit 70b0103

Browse files
committed
perf: pre-compile regex and refactor code structure
1 parent fef6e45 commit 70b0103

File tree

13 files changed

+1016
-2137
lines changed

13 files changed

+1016
-2137
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
/cohn_credentials.json
55
/.benchmarks
66
/benchmark_*.svg
7+
/benchmarks
78

89
# Byte-compiled / optimized / DLL files
910
__pycache__/

.pre-commit-config.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ repos:
2323
- id: ruff-check
2424
args: ["--fix"]
2525
types_or: [python, pyi]
26-
exclude: ^(vendor/|scripts/)
26+
exclude: ^(vendor/)
2727
# Run ruff formatter
2828
- id: ruff-format
2929
types_or: [python, pyi]

.releaserc.yml

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,11 @@ plugins:
1919
- - "@semantic-release/changelog"
2020
- changelogFile: CHANGELOG.md
2121
- - "@semantic-release/exec"
22-
- prepareCmd: |
23-
python -c "import re; content = open('jsonpath/__init__.py').read(); open('jsonpath/__init__.py', 'w').write(re.sub(r'__version__ = \".*?\"', '__version__ = \"${nextRelease.version}\"', content))"
24-
uv version "${nextRelease.version}"
22+
- prepareCmd: uv version "${nextRelease.version}"
2523
publishCmd: uv build
2624
- - "@semantic-release/git"
2725
- assets:
2826
- CHANGELOG.md
29-
- jsonpath/__init__.py
3027
- pyproject.toml
3128
- uv.lock
3229
message: |-

benchmarks/README.md

Lines changed: 0 additions & 24 deletions
This file was deleted.

0 commit comments

Comments
 (0)