Skip to content

Commit 0104aea

Browse files
Copilotwolph
andauthored
Finalize formatter-compatible tox fixes
Agent-Logs-Url: https://github.com/wolph/python-progressbar/sessions/7a92701d-42dc-4a5a-85a7-458e27ca00b2 Co-authored-by: wolph <270571+wolph@users.noreply.github.com>
1 parent 47e4c3e commit 0104aea

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

progressbar/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,13 @@ def create_argument_parser() -> argparse.ArgumentParser:
6262
Create the argument parser for the `progressbar` command.
6363
"""
6464

65-
parser = argparse.ArgumentParser(description="""
65+
description = """
6666
Monitor the progress of data through a pipe.
6767
6868
Note that this is a Python implementation of the original `pv` command
6969
that is functional but not yet feature complete.
70-
""")
70+
"""
71+
parser = argparse.ArgumentParser(description=description)
7172

7273
# Display switches
7374
parser.add_argument(

progressbar/bar.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1095,8 +1095,7 @@ def currval(self):
10951095
progressbar package.
10961096
"""
10971097
warnings.warn(
1098-
'The usage of `currval` is deprecated, please use '
1099-
'`value` instead',
1098+
'The usage of `currval` is deprecated, please use `value` instead',
11001099
DeprecationWarning,
11011100
stacklevel=1,
11021101
)

progressbar/env.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,5 +185,5 @@ def is_terminal(
185185
'vt(10[02]|220|320)',
186186
)
187187
ANSI_TERM_RE: re.Pattern[str] = re.compile(
188-
f"^({'|'.join(ANSI_TERMS)})", re.IGNORECASE
188+
f'^({"|".join(ANSI_TERMS)})', re.IGNORECASE
189189
)

0 commit comments

Comments
 (0)