Skip to content

Commit 9592f36

Browse files
committed
don't remove ...
1 parent f56ab96 commit 9592f36

4 files changed

Lines changed: 11 additions & 2 deletions

File tree

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
# Changelog
22
*`shed` uses [calendar versioning](https://calver.org/), with a year.month.patch scheme.*
33

4+
- Disable `PIE790` fix due to [ruff issue #10538](https://github.com/astral-sh/ruff/issues/10538)
5+
46
#### 2024.3.1 - 2024-03-13
57
- Replace usage of Autoflake, PyUpgrade and isort with ruff.
68

‎src/shed/__init__.py‎

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from black.mode import TargetVersion
1919
from black.parsing import lib2to3_parse
2020

21-
__version__ = "2024.3.1"
21+
__version__ = "2024.4.1"
2222
__all__ = ["shed", "docshed"]
2323

2424
# Conditionally imported in refactor mode to reduce startup latency in the common case
@@ -64,7 +64,8 @@
6464
"C417", # unnecessary-map
6565
"C418", # unnecessary-literal-within-dict-call
6666
"C419", # unnecessary-comprehension-any-all
67-
"PIE790", # unnecessary-placeholder; unnecessary pass/... statement
67+
# Disabled pending https://github.com/astral-sh/ruff/issues/10538
68+
# "PIE790", # unnecessary-placeholder; unnecessary pass/... statement
6869
"SIM101", # duplicate-isinstance-call # Replacing `collapse_isinstance_checks`
6970
# partially replaces assert codemod
7071
"B011", # assert False -> raise

‎tests/recorded/pattern-matching.txt‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,6 +217,7 @@ class Click:
217217
def __init__(self, pos, btn):
218218
self.position = pos
219219
self.button = btn
220+
...
220221

221222

222223
match event.get():

‎tests/recorded/split_assert.txt‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -243,6 +243,7 @@ assert b # 7 b_comment
243243
# 12.2 after b
244244
# 13.1 end_paren_comment
245245
# 13.2 end_paren_comment
246+
pass
246247
# 14.1 after assert
247248
# 14.2 after assert
248249

@@ -260,6 +261,7 @@ assert b # 7 b_comment
260261
assert c # 11 c_comment
261262
# 12 after c
262263
# 13 end_paren_comment
264+
pass
263265
# 14 after assert
264266

265267
# 0.1 before assert
@@ -289,6 +291,7 @@ assert c # 11 c_comment
289291
# 13.11
290292
# 13.12
291293
# 13.2 end_paren_comment
294+
pass
292295
# 14.1 after assert
293296
# 14.2 after assert
294297

@@ -337,6 +340,7 @@ assert c # 11 c_comment
337340
# 12.33
338341
# 12.41
339342
# 13.2 end_paren_comment
343+
pass
340344
# 14.1 after assert
341345
# 14.2 after assert
342346

@@ -429,4 +433,5 @@ b # 7
429433
# 9
430434
) # 10
431435
# 11
436+
pass
432437
# fmt: on

0 commit comments

Comments
 (0)