Skip to content

Commit

Permalink
[pre-commit.ci] pre-commit autoupdate (#217)
Browse files Browse the repository at this point in the history
* [pre-commit.ci] pre-commit autoupdate

updates:
- [github.com/astral-sh/ruff-pre-commit: v0.7.4 → v0.8.0](astral-sh/ruff-pre-commit@v0.7.4...v0.8.0)
- [github.com/pappasam/toml-sort: v0.24.1 → v0.24.2](pappasam/toml-sort@v0.24.1...v0.24.2)

* use f-string

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Mathieu Scheltienne <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and mscheltienne authored Nov 26, 2024
1 parent 02afdbc commit e8f4bf1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
repos:
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.7.4
rev: v0.8.0
hooks:
- id: ruff
name: ruff linter
Expand All @@ -23,7 +23,7 @@ repos:
args: [--exit-non-zero-on-fix]

- repo: https://github.com/pappasam/toml-sort
rev: v0.24.1
rev: v0.24.2
hooks:
- id: toml-sort-fix
files: pyproject.toml
Expand Down
2 changes: 1 addition & 1 deletion doc/conf.py
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ def linkcode_resolve(domain: str, info: dict[str, str]) -> Optional[str]:

# retrieve start/stop lines
source, start_line = inspect.getsourcelines(pyobject)
lines = "L%d-L%d" % (start_line, start_line + len(source) - 1)
lines = f"L{start_line}-L{start_line + len(source) - 1}"

# create URL
if "dev" in release:
Expand Down

0 comments on commit e8f4bf1

Please sign in to comment.