Skip to content

Commit c3a4f8e

Browse files
[pre-commit.ci] pre-commit autoupdate (#238)
* [pre-commit.ci] pre-commit autoupdate updates: - https://github.com/pre-commit/mirrors-isorthttps://github.com/PyCQA/isort - [github.com/PyCQA/isort: v5.9.3 → 5.9.3](PyCQA/isort@v5.9.3...5.9.3) - https://gitlab.com/pycqa/flake8https://github.com/PyCQA/flake8 * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 8190de9 commit c3a4f8e

File tree

5 files changed

+13
-13
lines changed

5 files changed

+13
-13
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -89,4 +89,4 @@ ENV/
8989
.ropeproject
9090

9191
.mypy_cache
92-
.pytest_cache
92+
.pytest_cache

.pre-commit-config.yaml

+3-3
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@ repos:
88
rev: v1.2.3
99
hooks:
1010
- id: yesqa
11-
- repo: https://github.com/pre-commit/mirrors-isort
12-
rev: 'v5.9.3'
11+
- repo: https://github.com/PyCQA/isort
12+
rev: '5.9.3'
1313
hooks:
1414
- id: isort
1515
- repo: https://github.com/psf/black
@@ -45,7 +45,7 @@ repos:
4545
hooks:
4646
- id: pyupgrade
4747
args: ['--py36-plus']
48-
- repo: https://gitlab.com/pycqa/flake8
48+
- repo: https://github.com/PyCQA/flake8
4949
rev: '3.9.2'
5050
hooks:
5151
- id: flake8

async_timeout/__init__.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -142,7 +142,7 @@ def reject(self) -> None:
142142
# cancel is maybe better name but
143143
# task.cancel() raises CancelledError in asyncio world.
144144
if self._state not in (_State.INIT, _State.ENTER):
145-
raise RuntimeError("invalid state {}".format(self._state.value))
145+
raise RuntimeError(f"invalid state {self._state.value}")
146146
self._reject()
147147

148148
def _reject(self) -> None:
@@ -185,7 +185,7 @@ def shift_to(self, deadline: float) -> None:
185185

186186
def _do_enter(self) -> None:
187187
if self._state != _State.INIT:
188-
raise RuntimeError("invalid state {}".format(self._state.value))
188+
raise RuntimeError(f"invalid state {self._state.value}")
189189
self._state = _State.ENTER
190190

191191
def _do_exit(self, exc_type: Type[BaseException]) -> None:

async_timeout/py.typed

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
Placeholder
1+
Placeholder

requirements.txt

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
1-
isort==5.9.3
1+
-e .
22
black==21.8b0; implementation_name=="cpython"
3-
pytest==6.2.5
4-
pytest-asyncio==0.15.1
5-
pytest-cov==2.12.1
63
docutils==0.17.1
7-
mypy==0.910; implementation_name=="cpython"
84
flake8==3.9.2
5+
isort==5.9.3
6+
mypy==0.910; implementation_name=="cpython"
97
pre-commit==2.15
10-
-e .
8+
pytest==6.2.5
9+
pytest-asyncio==0.15.1
10+
pytest-cov==2.12.1

0 commit comments

Comments
 (0)