diff --git a/README.md b/README.md index 7f6b37e..6eac213 100644 --- a/README.md +++ b/README.md @@ -12,7 +12,7 @@ To run `tach check` via pre-commit, add the following to your `.pre-commit-confi ```yaml - repo: https://github.com/gauge-sh/tach-pre-commit # Tach version. - rev: v0.14a0 + rev: v0.15.2 hooks: - id: tach ``` diff --git a/mirror.py b/mirror.py index 6bc2820..93d14fb 100644 --- a/mirror.py +++ b/mirror.py @@ -54,7 +54,7 @@ def replace_pyproject_toml(content: str) -> str: return re.sub(r'"tach==.*"', f'"tach=={version}"', content) def replace_readme_md(content: str) -> str: - return re.sub(r"rev: v\d+\.\d+\.\d+", f"rev: v{version}", content) + return re.sub(r"rev: v\d+\.\d+(?:\.|[a-z]+)\d+", f"rev: v{version}", content) paths = { "pyproject.toml": replace_pyproject_toml,