Skip to content

<string>:1: SyntaxWarning: "is" with 'int' literal. Did you mean "=="? #783

@satoridev01

Description

@satoridev01

Hello,

We were preparing a blog post about how to use autopep8 with a Satori CI playbook, and we wanted to check first if everything looks ok.

We ran autopep8 against 16769 recently updated public repositories and sometimes is throwing a warning:

<string>:1: SyntaxWarning: "is" with 'int' literal. Did you mean "=="?

POC:
Image

Here is a list of reports & outputs with that warning:

https://satori.ci/search/?playbook=satori%3A%2F%2Fcode%2Fpython%2Flint%2Fautopep8.yml&report_visibility=Public-Global&query=SyntaxWarning

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions