Skip to content

Commit

Permalink
Merge pull request #3 from airwoodix/fix-mirror-readme-update
Browse files Browse the repository at this point in the history
Fix mirror readme update
  • Loading branch information
emdoyle authored Nov 25, 2024
2 parents 2fd80f9 + f5c89ae commit 7bd6c04
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
2 changes: 1 addition & 1 deletion mirror.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 7bd6c04

Please sign in to comment.