Skip to content
This repository was archived by the owner on Feb 25, 2025. It is now read-only.

Conversation

@zanderso
Copy link
Member

@zanderso zanderso commented May 28, 2022

pylint is part of depot_tools and so should be available everywhere we need to run it.

The .pylintrc file is take from chromium with a couple modifications. First the line length is longer. This is the hard limit. The shorter soft limit is enforced by yapf. Second, more lints are enabled that couldn't be enabled for chromium since they're violated in too many places in that codebase. Third, the limit on the number of local variables is increased from 15 to 25.

Most of the changes needed in our scripts so far have been using single-quotes rather than double-quotes consistently, and using snake_case rather than UpperCamelCase for function and method names.

@zanderso zanderso added the Work in progress (WIP) Not ready (yet) for review! label Jun 2, 2022
@zanderso zanderso changed the title pylint a few python scripts and lint in lint.sh lint a few python scripts with pylint Jun 4, 2022
@zanderso zanderso removed the Work in progress (WIP) Not ready (yet) for review! label Jun 4, 2022
@zanderso zanderso requested review from chinmaygarde and dnfield June 4, 2022 20:22
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants