Skip to content

Add checks for not x in y and not x is None #236

@alex

Description

@alex

These would error on code like:

not x in y and not x is None

and suggest

x not in y and x is not None

This can be based on this code from OpenStack: https://github.com/openstack-dev/hacking/blob/master/hacking/core.py#L808

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions