Skip to content

Commit 858b959

Browse files
[pre-commit.ci] pre-commit autoupdate (#5)
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Chris Sewell <[email protected]>
1 parent cca8ea8 commit 858b959

File tree

3 files changed

+11
-11
lines changed

3 files changed

+11
-11
lines changed

.pre-commit-config.yaml

Lines changed: 6 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,30 +2,29 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
repos:
44
- repo: https://github.com/pre-commit/pre-commit-hooks
5-
rev: v4.4.0
5+
rev: v4.5.0
66
hooks:
77
- id: trailing-whitespace
88
- id: end-of-file-fixer
99
- id: check-yaml
1010

1111
- repo: https://github.com/psf/black
12-
rev: 22.12.0
12+
rev: 23.12.1
1313
hooks:
1414
- id: black
1515

1616
- repo: https://github.com/pycqa/isort
17-
rev: 5.11.4
17+
rev: 5.13.2
1818
hooks:
1919
- id: isort
2020

21-
- repo: https://github.com/charliermarsh/ruff-pre-commit
22-
rev: v0.0.217
21+
- repo: https://github.com/astral-sh/ruff-pre-commit
22+
rev: v0.1.11
2323
hooks:
2424
- id: ruff
25-
args: ["--force-exclude"]
2625

2726
- repo: https://github.com/pre-commit/mirrors-mypy
28-
rev: v0.991
27+
rev: v1.8.0
2928
hooks:
3029
- id: mypy
3130
args: [--config-file=pyproject.toml]

.readthedocs.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,11 @@
11
version: 2
22

3+
build:
4+
os: ubuntu-22.04
5+
tools:
6+
python: "3.8"
7+
38
python:
4-
version: "3.8"
59
install:
610
- method: pip
711
path: .

src/sphinx_tippy.py

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,6 @@ def collect_tips(
249249
doi_names: set[str] = set()
250250
rtd_urls: set[str] = set()
251251
for anchor in body.find_all("a", {"href": True}):
252-
253252
if not isinstance(anchor["href"], str):
254253
continue
255254

@@ -375,7 +374,6 @@ def create_id_to_tip_html(
375374

376375
# these are tags where we copy the HTML in a bespoke way
377376
for tag in body.find_all(id=True):
378-
379377
if tag.name == "dt":
380378
# copy the whole HTML
381379
id_to_html[str(tag["id"])] = str(strip_classes(tag.__copy__()))
@@ -651,7 +649,6 @@ def write_tippy_props_page(
651649
if rtd in rtd_cache:
652650
selector_to_html[f'a[href="{rtd}"]'] = rtd_cache[rtd]
653651
for refpage, target in data["refs_in_page"]:
654-
655652
if refpage is not None:
656653
relpage = posixpath.normpath(
657654
posixpath.relpath(refpage, posixpath.dirname(pagename))

0 commit comments

Comments
 (0)