Skip to content

Commit 3d47760

Browse files
committed
Update version to v1.1.2
Changes: meson.build, pyproject.toml: 1. Update version. 2. Update related URLs. noterools/bibliography.py: 1. Fix the bug that doesn't import AddHyperlinkError. 2. Add two "type: ignore" comments to pass PyCharm check. noterools/citation.py: Update log.
1 parent 6942115 commit 3d47760

File tree

4 files changed

+9
-9
lines changed

4 files changed

+9
-9
lines changed

meson.build

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
project(
22
'noterools',
3-
version: '1.1.1',
3+
version: '1.1.2',
44
license: 'BSD-3',
55
meson_version: '>=0.64.0',
66
default_options: ['warning_level=2'],

noterools/bibliography.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
from rich.progress import Progress
66

77
from .csl import GetCSLJsonHook, add_get_csl_json_hook
8-
from .error import HookNotRegisteredError, ParamsError
8+
from .error import AddHyperlinkError, HookNotRegisteredError, ParamsError
99
from .hook import ExtensionHookBase, HOOKTYPE, HookBase
1010
from .utils import logger, find_urls
1111
from .word import Word
@@ -648,7 +648,7 @@ def on_iterate(self, word: Word, word_range):
648648
:param word_range: Range object of the bibliography entry.
649649
:type word_range: object
650650
"""
651-
bib_text = word_range.Text
651+
bib_text = word_range.Text # type: ignore
652652

653653
# Find URLs in the bibliography text
654654
url_positions = find_urls(bib_text)
@@ -661,7 +661,7 @@ def on_iterate(self, word: Word, word_range):
661661
# Process URLs in reverse order to maintain position integrity
662662
for start_pos, end_pos, url in reversed(url_positions):
663663
# Create a duplicate range for the URL
664-
url_range = word_range.Duplicate
664+
url_range = word_range.Duplicate # type: ignore
665665

666666
# Move start and end positions to isolate just the URL text
667667
url_range.MoveStart(Unit=1, Count=start_pos)

noterools/citation.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,7 @@ def on_iterate(self, word_obj: Word, field):
107107
text = oRange.Text
108108
oRange.MoveStart(Unit=1, Count=-20)
109109
oRange.MoveEnd(Unit=1, Count=20)
110-
logger.warning(f"Can't set hyperlinks for [{text}] in {oRange.Text}")
110+
logger.warning(f"Can't set hyperlinks for '{text}' in {oRange.Text}")
111111
oRange.MoveStart(Unit=1, Count=20)
112112
oRange.MoveEnd(Unit=1, Count=-20)
113113

pyproject.toml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ requires = ["meson-python"]
44

55
[project]
66
name = "noterools"
7-
version = "1.1.1"
7+
version = "1.1.2"
88
readme = "README_EN.md"
99
license = { text = "GPL-3.0-or-later" }
1010
requires-python = '>=3.10'
@@ -17,9 +17,9 @@ description = "Not just zotero tools."
1717
dependencies = ["pywin32", "rich", "pyzotero"]
1818

1919
[project.urls]
20-
homepage = "https://github.com/Syize/link-zotero-citation-bibliography"
21-
repository = "https://github.com/Syize/link-zotero-citation-bibliography"
22-
"Bug Tracker" = "https://github.com/Syize/link-zotero-citation-bibliography/issues"
20+
homepage = "https://github.com/Syize/noterools"
21+
repository = "https://github.com/Syize/noterools"
22+
"Bug Tracker" = "https://github.com/Syize/noterools/issues"
2323

2424
[tool.poetry]
2525
readme = "README_EN.md"

0 commit comments

Comments
 (0)