Skip to content

Conversation

@rohanpm
Copy link
Contributor

@rohanpm rohanpm commented Jul 5, 2021

This commit inverts the behavior for pylint checks.

Previously, we started with all checks enabled and then disabled
some we didn't want. Now we'll instead start with all checks
disabled and enable those we do want.

The reasons for this include:

  • pylint output is far too noisy right now, meaning that the output is
    generally ignored except for errors. It would be good to make it more
    useful by cutting down on the number of checks.

  • pylint adds new checks regularly. If all checks are enabled by
    default, this adds to the maintenance overhead for us to keep our
    dependencies continuously up-to-date, since it's more likely that a
    pylint update will require code changes in order to pass CI or to
    avoid more noise.

  • the most valuable pylint checks, such as dangerous-default-value,
    were implemented long ago and are enabled. By comparison, new pylint
    checks being added these days are more likely to be opinionated
    recommendations which are less valuable, so we shouldn't lose much by
    not enabling them by default.

This commit inverts the behavior for pylint checks.

Previously, we started with all checks enabled and then disabled
some we didn't want. Now we'll instead start with all checks
*disabled* and enable those we *do* want.

The reasons for this include:

- pylint output is far too noisy right now, meaning that the output is
  generally ignored except for errors. It would be good to make it more
  useful by cutting down on the number of checks.

- pylint adds new checks regularly. If all checks are enabled by
  default, this adds to the maintenance overhead for us to keep our
  dependencies continuously up-to-date, since it's more likely that a
  pylint update will require code changes in order to pass CI or to
  avoid more noise.

- the most valuable pylint checks, such as dangerous-default-value,
  were implemented long ago and are enabled. By comparison, new pylint
  checks being added these days are more likely to be opinionated
  recommendations which are less valuable, so we shouldn't lose much by
  not enabling them by default.
@rohanpm rohanpm marked this pull request as ready for review July 6, 2021 03:32
@rohanpm rohanpm merged commit f0c46c0 into release-engineering:master Jul 6, 2021
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.

2 participants