Skip to content

Commit

Permalink
REL: 0.19.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MartinThoma committed Mar 28, 2022
1 parent 216afdc commit 0930f49
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
24 changes: 24 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,30 @@
Release History
===============

### 0.19.0
Released on 28.03.2022

New rules:

* SIM902: Use keyword-argument instead of magic boolean
* SIM903: Use keyword-argument instead of magic number
* SIM907: Use Optional[Type] instead of Union[Type, None]
* SIM908: Use ".get" instead of "if X in dict: dict[X]"
* SIM909: Avoid reflexive assignments

Removed rules due to false-positives:

* SIM119: Hinting to dataclasses in a proper way is hard

Fixed false-positives:

* SIM108: Encourage the use of a terniary operator only when it is
actually possible
* SIM111: Recommending to use all/any only if there is no side-effect after
the for-loop
* SIM116: When a function is called, we cannot simply convert the
if-else block to a dictionary

### 0.18.2
Released on 26.03.2022

Expand Down
2 changes: 2 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ Current experimental rules:
* `SIM904`: Assign values to dictionary directly at initialization ([example](#SIM904))
* [`SIM905`](https://github.com/MartinThoma/flake8-simplify/issues/86): Split string directly if only constants are used ([example](#SIM905))
* [`SIM906`](https://github.com/MartinThoma/flake8-simplify/issues/101): Merge nested os.path.join calls ([example](#SIM906))
* [`SIM907`](https://github.com/MartinThoma/flake8-simplify/issues/64): Use Optional[Type] instead of Union[Type, None]
* [`SIM908`](https://github.com/MartinThoma/flake8-simplify/issues/50): Use dict.get(key)

## Disabling Rules

Expand Down
2 changes: 1 addition & 1 deletion setup.cfg
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ author_email = info@martin-thoma.de
maintainer = Martin Thoma
maintainer_email = info@martin-thoma.de

version = 0.18.2
version = 0.19.0

description = flake8 plugin which checks for code that can be simplified
long_description = file: README.md
Expand Down

0 comments on commit 0930f49

Please sign in to comment.