File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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
Original file line number Diff line number Diff line change 1818from black .mode import TargetVersion
1919from 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
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
Original file line number Diff line number Diff 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
222223match event.get():
Original file line number Diff line number Diff 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
260261assert 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
You can’t perform that action at this time.
0 commit comments