Skip to content

Commit

Permalink
chore(deps): update pre-commit hooks (#504)
Browse files Browse the repository at this point in the history
* chore(deps): update pre-commit hooks

updates:
- [github.com/charliermarsh/ruff-pre-commit: v0.0.272 → v0.0.275](astral-sh/ruff-pre-commit@v0.0.272...v0.0.275)
- [github.com/pre-commit/mirrors-mypy: v1.3.0 → v1.4.1](pre-commit/mirrors-mypy@v1.3.0...v1.4.1)

* style: pre-commit fixes

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
  • Loading branch information
pre-commit-ci[bot] authored Jun 27, 2023
1 parent 777e844 commit a02f170
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -24,13 +24,13 @@ repos:
- id: black-jupyter

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: "v0.0.272"
rev: "v0.0.275"
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
rev: v1.4.1
hooks:
- id: mypy
files: src
Expand Down
3 changes: 1 addition & 2 deletions src/particle/particle/utilities.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,5 +176,4 @@ def latex_to_html_name(name: str) -> str:
name = name.replace(rf"\{gl}", f"&#x{name2codepoint[gl]:04x};")
name = re.sub(r"\\tilde\{(.*?)\}", r"\1&#771;", name)
name = re.sub(r"\\overline\{(.*?)\}", r"\1&#773;", name)
name = re.sub(r"\\bar\{(.*?)\}", r"\1&#773;", name)
return name
return re.sub(r"\\bar\{(.*?)\}", r"\1&#773;", name)

0 comments on commit a02f170

Please sign in to comment.