Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[WIP] Upgrade pylint to 1.5.x #2249

Closed
wants to merge 11 commits into from
Closed

[WIP] Upgrade pylint to 1.5.x #2249

wants to merge 11 commits into from

Conversation

Kami
Copy link
Member

@Kami Kami commented Nov 30, 2015

This pull request upgrades pylint and astroid to latest version which include some checking related improvements.

In addition that, it includes some lint cleanup and related improvements.

# Hack for attributes with multiple types (e.g. string, null)
property_type = property_type[0]

if property_type == 'object':
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is cool since pylint is now also aware of each API model attribute type.

It means we get improved static checking for API model members (e.g. if API model attribute type is defined as string and you want perform division on it, pylint will now throw since it knows the attribute type is string a not int / float).

@Kami Kami changed the title [WIP] Upgrade pylint to 1.5.0 Upgrade pylint to 1.5.0 Nov 30, 2015
@Kami Kami changed the title Upgrade pylint to 1.5.0 [WIP] Upgrade pylint to 1.5.0 Nov 30, 2015
@Kami
Copy link
Member Author

Kami commented Nov 30, 2015

I decided to wait with upgrade to pylint 1.5.0 since I found some more blocking regressions in pylint.

I will cherry-pick other improvements in a new branch and get back to this branch once new version of pylint with fixes is released.

@Kami Kami mentioned this pull request Nov 30, 2015
@Kami Kami changed the title [WIP] Upgrade pylint to 1.5.0 [WIP] Upgrade pylint to 1.5.x Dec 10, 2015
@Kami Kami mentioned this pull request Feb 16, 2016
@Kami Kami mentioned this pull request Apr 10, 2016
@Kami
Copy link
Member Author

Kami commented Apr 10, 2016

Superseded by #2613.

@Kami Kami closed this Apr 10, 2016
@Kami Kami deleted the upgrade_pylint branch April 10, 2016 18:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant