<feed xmlns='http://www.w3.org/2005/Atom'>
<title>tools/git-repo.git/.pylintrc, branch v2.4</title>
<subtitle>Mirror of gerrit.googlesource.com/git-repo</subtitle>
<id>https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.4</id>
<link rel='self' href='https://git.enea.com/cgit/tools/git-repo.git/atom?h=v2.4'/>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/'/>
<updated>2016-09-14T07:49:02+00:00</updated>
<entry>
<title>Replace pylint with pyflakes/flake8</title>
<updated>2016-09-14T07:49:02+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>dpursehouse@collab.net</email>
</author>
<published>2016-09-02T05:20:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=bb5b1a076b86a67508bbcc94baf08deea50e1d09'/>
<id>urn:sha1:bb5b1a076b86a67508bbcc94baf08deea50e1d09</id>
<content type='text'>
pylint reports a lot of warnings, but many of them are false positive,
and it's difficult to configure it. It also seems that for some reason
the included config file is not working well with the latest version.

Update the documentation to recommend using pyflakes and flake8 instead
of pylint. Remove the pylint config and add a basic flake8 config with
minimum settings:

- Maximum line length 80 columns
- Ignore warnings about indentation (repo uses 2 rather than expected 4)
- Ignore warnings about import placement

In this commit no code cleanup is done, and it's expected that most of
the files will throw up quite a few warnings, at least for flake8. These
can be cleaned up in follow-up commits.

The existing pylint suppression comments are left as-is. These will be
helpful when cleaning up pyflakes warnings later.

Change-Id: I2f7cb4340266ed07cc973ca6483b8f09d66a765b
</content>
</entry>
<entry>
<title>pylint: ignore bad-whitespace</title>
<updated>2016-06-17T23:37:24+00:00</updated>
<author>
<name>Stefan Beller</name>
<email>sbeller@google.com</email>
</author>
<published>2016-06-17T23:36:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=d64e8eee518714c0d164a0acae03886a3ff675c9'/>
<id>urn:sha1:d64e8eee518714c0d164a0acae03886a3ff675c9</id>
<content type='text'>
This ignores whitespaces errors, which we have quite a few of in argument
lists, for example:

************* Module git_config
C:209, 0: No space allowed around keyword argument assignment
  def HasSection(self, section, subsection = ''):
                                           ^ (bad-whitespace)
C:320, 0: No space allowed around keyword argument assignment
                   capture_stdout = True,
                                  ^ (bad-whitespace)
C:321, 0: No space allowed around keyword argument assignment
                   capture_stderr = True)
                                  ^ (bad-whitespace)
C:427, 0: Exactly one space required after comma
                     '-o','ControlPath %s' % ssh_sock(),
                         ^ (bad-whitespace)
C:436, 0: Exactly one space required after comma
    check_command = command_base + ['-O','check']
                                        ^ (bad-whitespace)
C:464, 0: Exactly one space required after comma
             % (host,port, str(e)), file=sys.stderr)
                    ^ (bad-whitespace)
C:707, 0: No space allowed around keyword argument assignment
    return self._config.GetString(key, all_keys = all_keys)
                                                ^ (bad-whitespace)
C:759, 0: No space allowed around keyword argument assignment
    return self._config.GetString(key, all_keys = all_keys)
                                                ^ (bad-whitespace)

Change-Id: Ia8f154f6741ce609787551f65877d7584c457903
Signed-off-by: Stefan Beller &lt;sbeller@google.com&gt;
</content>
</entry>
<entry>
<title>Remove deprecated `include-ids` setting from pylint config</title>
<updated>2015-04-07T02:10:17+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2015-04-07T02:08:04+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=33fe4e99f95125a0083e97c4c143d1fb5134cf36'/>
<id>urn:sha1:33fe4e99f95125a0083e97c4c143d1fb5134cf36</id>
<content type='text'>
Change-Id: Ie5ab21e434d24ff862bb5e0c263761370d71f56f
</content>
</entry>
<entry>
<title>Disable warning about locally disabling pylint warnings</title>
<updated>2013-05-15T09:06:06+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2013-05-15T08:31:49+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=de50d81c918ff8aa84ac2d2f2c64a0c42d94f0a3'/>
<id>urn:sha1:de50d81c918ff8aa84ac2d2f2c64a0c42d94f0a3</id>
<content type='text'>
Several files have local suppression of pylint warnings.  We don't
need these to be reported; code review should catch any unnecessary
suppressions.

Change-Id: Ie71ba3e910714ef3fe44554a71bb62519d0a891d
</content>
</entry>
<entry>
<title>Disable pylint warnings about similar lines in multiple files</title>
<updated>2013-05-04T12:40:56+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2013-05-04T12:40:56+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=56f4eea26c703992d0a27fd99b7083593f209677'/>
<id>urn:sha1:56f4eea26c703992d0a27fd99b7083593f209677</id>
<content type='text'>
When running pylint over the entire code base, it reports the
warning:

  R0801:  Similar lines in 2 files

for several pairs of files.

The code referred to is boilerplate code related to imports and
error handling.  It is not practical to change the code to avoid
the warnings, so simply disable them in the config.

Change-Id: Ie685fdf1cab60fb8f1503be560166a14058698d8
</content>
</entry>
<entry>
<title>Disable warnings related to imports in pylint config</title>
<updated>2013-05-03T13:10:26+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2013-05-03T13:01:41+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=f385d0ca09cf5076d602b6d585c1f06e84b757fe'/>
<id>urn:sha1:f385d0ca09cf5076d602b6d585c1f06e84b757fe</id>
<content type='text'>
There are several modules that have imports to support various
versions of Python.  Pylint reports the following errors when
run in a version of Python that does not have the module or the
method/class in the module.

  F0401: Unable to import 'module'
  E0611: No name 'name' in module 'module'

Disable these warnings to reduce the noise on the output.

Change-Id: I97e7e2698bccb1e501a45a0869f97f90d54adfb7
</content>
</entry>
<entry>
<title>Tidy up code formatting a bit more</title>
<updated>2012-11-14T03:09:38+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2012-11-14T03:09:38+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=8f62fb7bd305337994bced7d23b347d0d39f5faf'/>
<id>urn:sha1:8f62fb7bd305337994bced7d23b347d0d39f5faf</id>
<content type='text'>
Enable the following Pylint warnings:

  C0322: Operator not preceded by a space
  C0323: Operator not followed by a space
  C0324: Comma not followed by a space

And make the necessary fixes.

Change-Id: I74d74283ad5138cbaf28d492b18614eb355ff9fe
</content>
</entry>
<entry>
<title>Fix inconsistent indentation</title>
<updated>2012-11-14T02:38:57+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2012-11-14T02:36:51+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=c1b86a232383748811c6faf17f364e63e10f7dd4'/>
<id>urn:sha1:c1b86a232383748811c6faf17f364e63e10f7dd4</id>
<content type='text'>
The repo coding style is to indent at 2 characters, but there are
many places where this is not followed.

Enable pylint warning "W0311: Bad indentation" and make sure all
indentation is at multiples of 2 characters.

Change-Id: I68f0f64470789ce2429ab11104d15d380a63e6a8
</content>
</entry>
<entry>
<title>Add pylint configuration and instructions</title>
<updated>2012-10-24T01:18:13+00:00</updated>
<author>
<name>David Pursehouse</name>
<email>david.pursehouse@sonymobile.com</email>
</author>
<published>2012-10-22T03:50:15+00:00</published>
<link rel='alternate' type='text/html' href='https://git.enea.com/cgit/tools/git-repo.git/commit/?id=4f7bdea9d24c4eb52f83ada2b67b88ad67cb57a7'/>
<id>urn:sha1:4f7bdea9d24c4eb52f83ada2b67b88ad67cb57a7</id>
<content type='text'>
pylint configuration file (.pylintrc) is added, and submission
instructions are updated to include pylint usage steps.

Deprecated pylint suppression (`disable-msg`) is updated in a few
modules to make it work properly with the latest version (0.26).

Change-Id: I4ec2ef318e23557a374ecdbf40fe12645766830c
</content>
</entry>
</feed>
