summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2022-12-30 08:55:10 -0500
committerNed Batchelder <ned@nedbatchelder.com>2022-12-30 09:57:46 -0500
commit96f290af9a4f3c9ea9d0954d06de8894ec9066b4 (patch)
tree0bca2f89f9fe5a0dfd137adb4a5b984a10db6bbf
parent27990185352f035bafbb0cc7c8ac4159e87fe070 (diff)
downloadpython-coveragepy-git-96f290af9a4f3c9ea9d0954d06de8894ec9066b4.tar.gz
style: correct some lint errors
-rw-r--r--coverage/control.py4
-rw-r--r--coverage/plugin.py2
-rw-r--r--pylintrc1
-rw-r--r--tests/test_api.py2
4 files changed, 4 insertions, 5 deletions
diff --git a/coverage/control.py b/coverage/control.py
index 69db200b..71b56a44 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -112,7 +112,7 @@ class Coverage(TConfigurable):
else:
return None
- def __init__(
+ def __init__( # pylint: disable=too-many-arguments
self,
data_file=DEFAULT_DATAFILE,
data_suffix=None,
@@ -130,7 +130,7 @@ class Coverage(TConfigurable):
check_preimported=False,
context=None,
messages=False,
- ) -> None: # pylint: disable=too-many-arguments
+ ) -> None:
"""
Many of these arguments duplicate and override values that can be
provided in a configuration file. Parameters that are missing here
diff --git a/coverage/plugin.py b/coverage/plugin.py
index 8f309f42..af586ec2 100644
--- a/coverage/plugin.py
+++ b/coverage/plugin.py
@@ -117,7 +117,7 @@ from __future__ import annotations
import functools
from types import FrameType
-from typing import Any, Dict, Iterable, List, Optional, Set, Tuple, Union
+from typing import Any, Dict, Iterable, Optional, Set, Tuple, Union
from coverage import files
from coverage.misc import _needs_to_implement
diff --git a/pylintrc b/pylintrc
index a0a19aea..cc693613 100644
--- a/pylintrc
+++ b/pylintrc
@@ -75,6 +75,7 @@ disable=
self-assigning-variable,
consider-using-with,
missing-timeout,
+ use-implicit-booleaness-not-comparison,
# Formatting stuff
superfluous-parens,
# Messages that are noisy for now, eventually maybe we'll turn them on:
diff --git a/tests/test_api.py b/tests/test_api.py
index 71712f8e..ee24aa8f 100644
--- a/tests/test_api.py
+++ b/tests/test_api.py
@@ -32,8 +32,6 @@ BAD_SQLITE_REGEX = r"file( is encrypted or)? is not a database"
class ApiTest(CoverageTest):
"""Api-oriented tests for coverage.py."""
- # pylint: disable=use-implicit-booleaness-not-comparison
-
def clean_files(self, files, pats):
"""Remove names matching `pats` from `files`, a list of file names."""
good = []