Skip to content

Commit

Permalink
tests: bump pre-commit
Browse files Browse the repository at this point in the history
  • Loading branch information
casperdcl committed Aug 5, 2023
1 parent 2efa1e8 commit d13dfbf
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ repos:
- pytest-timeout
- pytest-asyncio
- repo: https://github.com/PyCQA/flake8
rev: 5.0.4
rev: 6.1.0
hooks:
- id: flake8
args: [-j8]
Expand Down
2 changes: 1 addition & 1 deletion tqdm/contrib/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
from contextlib import contextmanager

try:
from typing import Iterator, List, Optional, Type # pylint: disable=unused-import
from typing import Iterator, List, Optional, Type # noqa: F401
except ImportError:
pass

Expand Down
2 changes: 1 addition & 1 deletion tqdm/gui.py
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ def display(self, *_, **__):
"{bar}", "<bar/>")
msg = self.format_meter(**d)
if '<bar/>' in msg:
msg = "".join(re.split(r'\|?<bar/>\|?', msg, 1))
msg = "".join(re.split(r'\|?<bar/>\|?', msg, maxsplit=1))
ax.set_title(msg, fontname="DejaVu Sans Mono", fontsize=11)
self.plt.pause(1e-9)

Expand Down
2 changes: 1 addition & 1 deletion tqdm/notebook.py
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ def display(self, msg=None, pos=None,
if msg:
# html escape special characters (like '&')
if '<bar/>' in msg:
left, right = map(escape, re.split(r'\|?<bar/>\|?', msg, 1))
left, right = map(escape, re.split(r'\|?<bar/>\|?', msg, maxsplit=1))
else:
left, right = '', escape(msg)

Expand Down
2 changes: 1 addition & 1 deletion tqdm/tk.py
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,7 @@ def display(self, *_, **__):
"{bar}", "<bar/>")
msg = self.format_meter(**d)
if '<bar/>' in msg:
msg = "".join(re.split(r'\|?<bar/>\|?', msg, 1))
msg = "".join(re.split(r'\|?<bar/>\|?', msg, maxsplit=1))
self._tk_text_var.set(msg)
if not self._tk_dispatching:
self._tk_window.update()
Expand Down

0 comments on commit d13dfbf

Please sign in to comment.