Skip to content

Version 1.2.0

Compare
Choose a tag to compare
@dosisod dosisod released this 01 Oct 04:46
· 314 commits to master since this release
9fac0e9

This new release contains some bug fixes, documentation improvements, pre-commit support, and 2 new checks!

The "readlines()" check

This code

with open("file.txt") as f:
    for line in f.readlines():
        pass

Is suggested to be changed to:

with open("file.txt") as f:
    for line in f:
        pass

The "in keys" check

This code

d = {"key": "value"}

if "key" in d.keys():
    pass

Is suggested to be changed to:

d = {"key": "value"}

if "key" in d:
    pass

What's Changed

New Contributors

Full Changelog: v1.1.0...v1.2.0