Skip to content

Commit c66f275

Browse files
committed
fixed all tests?
1 parent 94f2e78 commit c66f275

File tree

6 files changed

+14
-14
lines changed

6 files changed

+14
-14
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
timeout-minutes: 10
1212
strategy:
1313
matrix:
14-
python-version: ['3.7', '3.8', '3.9', '3.10']
14+
python-version: ['3.8', '3.9', '3.10', '3.11']
1515

1616
steps:
1717
- uses: actions/checkout@v3

docs/conf.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -330,4 +330,4 @@
330330

331331

332332
# Example configuration for intersphinx: refer to the Python standard library.
333-
intersphinx_mapping = {'http://docs.python.org/': None}
333+
intersphinx_mapping = {'python': ('https://docs.python.org/3', None)}

progressbar/bar.py

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,9 @@ def update(self, *args: types.Any, **kwargs: types.Any) -> None:
202202
except UnicodeEncodeError: # pragma: no cover
203203
self.fd.write(line.encode('ascii', 'replace'))
204204

205-
def finish(self, *args: types.Any, **kwargs: types.Any) -> None: # pragma: no cover
206-
205+
def finish(
206+
self, *args: types.Any, **kwargs: types.Any
207+
) -> None: # pragma: no cover
207208
if self._finished:
208209
return
209210

@@ -826,9 +827,9 @@ def update(self, value=None, force=False, **kwargs):
826827
self.fd.flush()
827828

828829
def start( # type: ignore[override]
829-
self,
830-
max_value: int | None=None,
831-
init: bool=True,
830+
self,
831+
max_value: int | None = None,
832+
init: bool = True,
832833
):
833834
'''Starts measuring time, and prints the bar at 0%.
834835

progressbar/shortcuts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,15 @@ def progressbar(
88
widgets=None,
99
prefix=None,
1010
suffix=None,
11-
**kwargs
11+
**kwargs,
1212
):
1313
progressbar = bar.ProgressBar(
1414
min_value=min_value,
1515
max_value=max_value,
1616
widgets=widgets,
1717
prefix=prefix,
1818
suffix=suffix,
19-
**kwargs
19+
**kwargs,
2020
)
2121

2222
for result in progressbar(iterator):

progressbar/widgets.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,6 @@ def __init__(
417417
format_NA='ETA: N/A',
418418
**kwargs,
419419
):
420-
421420
if '%s' in format and '%(eta)s' not in format:
422421
format = format.replace('%s', '%(eta)s')
423422

tox.ini

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
[tox]
2-
envlist = py37, py38, py39, py310, flake8, docs, black, mypy, pyright
2+
envlist = py38, py39, py310, py311, py312, flake8, docs, black, mypy, pyright
33
skip_missing_interpreters = True
44

55
[testenv]
66
basepython =
7-
py36: python3.6
8-
py37: python3.7
97
py38: python3.8
108
py39: python3.9
119
py310: python3.10
10+
py311: python3.11
11+
py312: python3.12
1212
pypy3: pypy3
1313

1414
deps = -r{toxinidir}/tests/requirements.txt
@@ -42,7 +42,7 @@ commands = black --skip-string-normalization --line-length 79 {toxinidir}/progre
4242
changedir =
4343
basepython = python3
4444
deps = -r{toxinidir}/docs/requirements.txt
45-
whitelist_externals =
45+
allowlist_externals =
4646
rm
4747
cd
4848
mkdir

0 commit comments

Comments
 (0)