Skip to content

Commit 2b78cbf

Browse files
committed
Fixed linting unit tests
1 parent 922c718 commit 2b78cbf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

.flake8

+2-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ filename =
33
./docs/*.py,
44
./scripts/*.py,
55
./src/*.py,
6-
./test/*.py,
6+
./tests/*.py,
77
./setup.py
88
max_line_length = 150
99
# Google docstring convention + D204 & D401
@@ -19,6 +19,7 @@ ignore =
1919
D408
2020
D409
2121
D413
22+
U101
2223
ignore-decorators = _make_async_docs
2324
per-file-ignores =
2425
docs/*: D

tests/unit/test_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ class RetryableError(Exception):
120120
class NonRetryableError(Exception):
121121
pass
122122

123-
def returns_on_fifth_attempt(stop_retrying: Callable, attempt: int) -> Any:
123+
def returns_on_fifth_attempt(_stop_retrying: Callable, attempt: int) -> Any:
124124
nonlocal attempt_counter
125125
attempt_counter += 1
126126

@@ -168,7 +168,7 @@ class RetryableError(Exception):
168168
class NonRetryableError(Exception):
169169
pass
170170

171-
async def returns_on_fifth_attempt(stop_retrying: Callable, attempt: int) -> Any:
171+
async def returns_on_fifth_attempt(_stop_retrying: Callable, attempt: int) -> Any:
172172
nonlocal attempt_counter
173173
attempt_counter += 1
174174

0 commit comments

Comments
 (0)