summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2019-10-18 06:52:58 -0400
committerNed Batchelder <ned@nedbatchelder.com>2019-10-18 06:52:58 -0400
commitfafa21ac89ba49069c62ecd3bee802e9cab7e2c0 (patch)
treea46f13d74c7d37cb62eab81a807c0867862611d2
parent070d3d1db11ab092860c660136744d886e750105 (diff)
downloadpython-coveragepy-git-fafa21ac89ba49069c62ecd3bee802e9cab7e2c0.tar.gz
Upgrade pylint
-rw-r--r--pylintrc5
-rw-r--r--requirements/dev.pip2
-rw-r--r--tests/covmodzip1.py2
-rw-r--r--tests/test_cmdline.py2
-rw-r--r--tests/test_context.py4
-rw-r--r--tests/test_process.py2
6 files changed, 11 insertions, 6 deletions
diff --git a/pylintrc b/pylintrc
index 6145efc9..d250e9b9 100644
--- a/pylintrc
+++ b/pylintrc
@@ -73,6 +73,11 @@ disable=
too-many-nested-blocks,
too-many-ancestors,
unnecessary-pass,
+ no-else-break,
+ no-else-continue,
+# Questionable things, but it's ok, I don't need to be told:
+ import-outside-toplevel,
+ self-assigning-variable,
# Formatting stuff
superfluous-parens,
bad-continuation,
diff --git a/requirements/dev.pip b/requirements/dev.pip
index 2010dcc0..b3acfd90 100644
--- a/requirements/dev.pip
+++ b/requirements/dev.pip
@@ -15,7 +15,7 @@ pluggy==0.12.0
# for linting.
greenlet==0.4.15
-pylint==2.3.1
+pylint==2.4.3
check-manifest==0.38
readme_renderer==24.0
diff --git a/tests/covmodzip1.py b/tests/covmodzip1.py
index 0133ed6a..c4867e17 100644
--- a/tests/covmodzip1.py
+++ b/tests/covmodzip1.py
@@ -3,7 +3,7 @@
# Module-level docstrings are counted differently in different versions of Python,
# so don't add one here.
-# pylint: disable=missing-docstring
+# pylint: disable=missing-module-docstring
# covmodzip.py: for putting into a zip file.
j = 1
diff --git a/tests/test_cmdline.py b/tests/test_cmdline.py
index e15c5fcb..26624b19 100644
--- a/tests/test_cmdline.py
+++ b/tests/test_cmdline.py
@@ -904,7 +904,7 @@ class CmdMainTest(CoverageTest):
class CoverageReportingFake(object):
"""A fake Coverage.coverage test double."""
- # pylint: disable=missing-docstring
+ # pylint: disable=missing-function-docstring
def __init__(self, report_result, html_result, xml_result, json_report):
self.config = CoverageConfig()
self.report_result = report_result
diff --git a/tests/test_context.py b/tests/test_context.py
index b002b603..137300a5 100644
--- a/tests/test_context.py
+++ b/tests/test_context.py
@@ -201,7 +201,7 @@ def get_qualname():
caller_frame = stack[0][0]
return qualname_from_frame(caller_frame)
-# pylint: disable=missing-docstring, unused-argument
+# pylint: disable=missing-class-docstring, missing-function-docstring, unused-argument
class Parent(object):
def meth(self):
@@ -239,7 +239,7 @@ class OldStyle:
class OldChild(OldStyle):
pass
-# pylint: enable=missing-docstring, unused-argument
+# pylint: enable=missing-class-docstring, missing-function-docstring, unused-argument
class QualnameTest(CoverageTest):
diff --git a/tests/test_process.py b/tests/test_process.py
index 4298244a..98134d2d 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -4,7 +4,7 @@
"""Tests for process behavior of coverage.py."""
-import distutils.sysconfig # pylint: disable=import-error
+import distutils.sysconfig
import glob
import os
import os.path