Skip to content

Commit 1e9aa59

Browse files
committed
Add ruff lint rule - PIE
1 parent 2d9054e commit 1e9aa59

File tree

5 files changed

+2
-17
lines changed

5 files changed

+2
-17
lines changed

packages/smithy-core/src/smithy_core/interceptors.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def read_before_execution(
148148
the `response`. If multiple `read_before_execution` methods throw exceptions,
149149
the latest will be used and earlier ones will be logged and dropped.
150150
"""
151-
pass
152151

153152
def modify_before_serialization(
154153
self, context: InterceptorContext[Request, None, None, None]
@@ -193,7 +192,6 @@ def read_before_serialization(
193192
If exceptions are thrown by this hook, execution will jump to
194193
`modify_before_completion` with the thrown exception as the `response`.
195194
"""
196-
pass
197195

198196
def read_after_serialization(
199197
self, context: InterceptorContext[Request, None, TransportRequest, None]
@@ -214,7 +212,6 @@ def read_after_serialization(
214212
If exceptions are thrown by this hook, execution will jump to
215213
`modify_before_completion` with the thrown exception as the `response`.
216214
"""
217-
pass
218215

219216
def modify_before_retry_loop(
220217
self, context: InterceptorContext[Request, None, TransportRequest, None]
@@ -259,7 +256,6 @@ def read_before_attempt(
259256
exception as the `response` If multiple `read_before_attempt` methods throw
260257
exceptions, the latest will be used and earlier ones will be logged and dropped.
261258
"""
262-
pass
263259

264260
def modify_before_signing(
265261
self, context: InterceptorContext[Request, None, TransportRequest, None]
@@ -309,7 +305,6 @@ def read_before_signing(
309305
If exceptions are thrown by this hook, execution will jump to
310306
`modify_before_attempt_completion` with the thrown exception as the `response`.
311307
"""
312-
pass
313308

314309
def read_after_signing(
315310
self, context: InterceptorContext[Request, None, TransportRequest, None]
@@ -333,7 +328,6 @@ def read_after_signing(
333328
If exceptions are thrown by this hook, execution will jump to
334329
`modify_before_attempt_completion` with the thrown exception as the `response`.
335330
"""
336-
pass
337331

338332
def modify_before_transmit(
339333
self, context: InterceptorContext[Request, None, TransportRequest, None]
@@ -384,7 +378,6 @@ def read_before_transmit(
384378
If exceptions are thrown by this hook, execution will jump to
385379
`modify_before_attempt_completion` with the thrown exception as the `response`.
386380
"""
387-
pass
388381

389382
def read_after_transmit(
390383
self,
@@ -411,7 +404,6 @@ def read_after_transmit(
411404
If exceptions are thrown by this hook, execution will jump to
412405
`modify_before_attempt_completion` with the thrown exception as the `response`.
413406
"""
414-
pass
415407

416408
def modify_before_deserialization(
417409
self,
@@ -467,7 +459,6 @@ def read_before_deserialization(
467459
If exceptions are thrown by this hook, execution will jump to
468460
`modify_before_attempt_completion` with the thrown exception as the `response`.
469461
"""
470-
pass
471462

472463
def read_after_deserialization(
473464
self,
@@ -495,7 +486,6 @@ def read_after_deserialization(
495486
If exceptions are thrown by this hook, execution will jump to
496487
`modify_before_attempt_completion` with the thrown exception as the `response`.
497488
"""
498-
pass
499489

500490
def modify_before_attempt_completion(
501491
self,
@@ -554,7 +544,6 @@ def read_after_attempt(
554544
execution will then jump to `read_before_attempt`. Otherwise, execution will
555545
jump to `modify_before_completion` with the thrown exception as the `response`.
556546
"""
557-
pass
558547

559548
def modify_before_completion(
560549
self,
@@ -605,4 +594,3 @@ def read_after_execution(
605594
final response. If multiple `read_after_execution` methods throw exceptions,
606595
the latest will be used and earlier ones will be logged and dropped.
607596
"""
608-
pass

packages/smithy-core/src/smithy_core/interfaces/identity.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ def is_expired(self) -> bool:
2525
class IdentityProperties(TypedDict):
2626
"""Properties used to help determine the identity to return."""
2727

28-
...
2928

3029

3130
IdentityPropertiesType = TypeVar("IdentityPropertiesType", bound=IdentityProperties)

packages/smithy-core/src/smithy_core/retries.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -242,4 +242,3 @@ def refresh_retry_token_for_retry(
242242

243243
def record_success(self, *, token: retries_interface.RetryToken) -> None:
244244
"""Not used by this retry strategy."""
245-
pass

packages/smithy-http/src/smithy_http/aio/interfaces/auth.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,6 @@
2323
class SigningProperties(TypedDict):
2424
"""Additional properties loaded to modify the signing process."""
2525

26-
...
2726

2827

2928
SigningPropertiesType = TypeVar("SigningPropertiesType", bound=SigningProperties)

pyproject.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,11 +46,11 @@ black = true
4646
target-version = "py312"
4747

4848
[tool.ruff.lint]
49-
# candidates: DTZ, EM, INP, ISC, PERF, PIE, RUF, SIM118, SIM401, SLOT
49+
# candidates: DTZ, EM, INP, ISC, PERF, RUF, SIM118, SIM401, SLOT
5050
# perhaps in the future: N, PYI, TC, TID
5151
# probably not, a lot of work: DOC, D, PL, TRY
5252

53-
select = [ "ASYNC", "C4", "E1", "E4", "E7", "E9", "F", "FURB", "G", "I", "LOG", "S", "T", "UP" ]
53+
select = [ "ASYNC", "C4", "E1", "E4", "E7", "E9", "F", "FURB", "G", "I", "LOG", "PIE", "S", "T", "UP" ]
5454
exclude = [ "packages/smithy-core/src/smithy_core/rfc3986.py" ]
5555

5656
[tool.ruff.lint.per-file-ignores]

0 commit comments

Comments
 (0)