summaryrefslogtreecommitdiff
path: root/pkg_resources
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2021-01-16 17:01:05 -0500
committerGitHub <noreply@github.com>2021-01-16 17:01:05 -0500
commit470dd358c2f1fc3c8a9a9348d157fae3f6989961 (patch)
treeada16b4f7bd2f914fe0d630eacc24b53f42c6b43 /pkg_resources
parent7e7b6b99dc595c9197c659678c94fedb1b7234b8 (diff)
parent6f74941c2649b6154dee860417b8b4a576d19974 (diff)
downloadpython-setuptools-git-470dd358c2f1fc3c8a9a9348d157fae3f6989961.tar.gz
Merge pull request #2518 from webknjaz/maintenance/flake8-mccabe-complexity
Enable McCabe complexity check in flake8
Diffstat (limited to 'pkg_resources')
-rw-r--r--pkg_resources/__init__.py9
1 files changed, 6 insertions, 3 deletions
diff --git a/pkg_resources/__init__.py b/pkg_resources/__init__.py
index 99b7f680..b58f2937 100644
--- a/pkg_resources/__init__.py
+++ b/pkg_resources/__init__.py
@@ -697,7 +697,8 @@ class WorkingSet:
keys2.append(dist.key)
self._added_new(dist)
- def resolve(self, requirements, env=None, installer=None,
+ # FIXME: 'WorkingSet.resolve' is too complex (11)
+ def resolve(self, requirements, env=None, installer=None, # noqa: C901
replace_conflicting=False, extras=None):
"""List all distributions needed to (recursively) meet `requirements`
@@ -1746,7 +1747,8 @@ class ZipProvider(EggProvider):
timestamp = time.mktime(date_time)
return timestamp, size
- def _extract_resource(self, manager, zip_path):
+ # FIXME: 'ZipProvider._extract_resource' is too complex (12)
+ def _extract_resource(self, manager, zip_path): # noqa: C901
if zip_path in self._index():
for name in self._index()[zip_path]:
@@ -2859,7 +2861,8 @@ class Distribution:
"""Return the EntryPoint object for `group`+`name`, or ``None``"""
return self.get_entry_map(group).get(name)
- def insert_on(self, path, loc=None, replace=False):
+ # FIXME: 'Distribution.insert_on' is too complex (13)
+ def insert_on(self, path, loc=None, replace=False): # noqa: C901
"""Ensure self.location is on path
If replace=False (default):