The following issues were found
pipenv/vendor/pythonfinder/_vendor/pep514tools/__init__.py
2 issues
Line: 11
Column: 1
__author__ = 'Steve Dower <steve.dower@python.org>'
__version__ = '0.1.0'
from pythonfinder._vendor.pep514tools.environment import findall, find, findone
Reported by Pylint.
Line: 1
Column: 1
#-------------------------------------------------------------------------
# Copyright (c) Steve Dower
# All rights reserved.
#
# Distributed under the terms of the MIT License
#-------------------------------------------------------------------------
__author__ = 'Steve Dower <steve.dower@python.org>'
__version__ = '0.1.0'
Reported by Pylint.
pipenv/vendor/pythonfinder/exceptions.py
2 issues
Line: 8
Column: 5
class InvalidPythonVersion(Exception):
"""Raised when parsing an invalid python version"""
pass
Reported by Pylint.
Line: 1
Column: 1
# -*- coding=utf-8 -*-
from __future__ import absolute_import, print_function
class InvalidPythonVersion(Exception):
"""Raised when parsing an invalid python version"""
pass
Reported by Pylint.
pipenv/patched/notpip/_internal/utils/virtualenv.py
2 issues
Line: 1
Column: 1
from __future__ import absolute_import
import logging
import os
import re
import site
import sys
from pipenv.patched.notpip._internal.utils.typing import MYPY_CHECK_RUNNING
Reported by Pylint.
Line: 54
Column: 39
"""
pyvenv_cfg_file = os.path.join(sys.prefix, 'pyvenv.cfg')
try:
with open(pyvenv_cfg_file) as f:
return f.read().splitlines() # avoids trailing newlines
except IOError:
return None
Reported by Pylint.
pipenv/patched/notpip/_internal/utils/models.py
2 issues
Line: 42
Column: 42
if not isinstance(other, self._defining_class):
return NotImplemented
return method(self._compare_key, other._compare_key)
Reported by Pylint.
Line: 9
Column: 1
import operator
class KeyBasedCompareMixin(object):
"""Provides comparison capabilities that is based on a key
"""
def __init__(self, key, defining_class):
self._compare_key = key
Reported by Pylint.
pipenv/patched/notpip/_internal/utils/marker_files.py
2 issues
Line: 1
Column: 1
import os.path
DELETE_MARKER_MESSAGE = '''\
This file is placed here by pip to indicate the source was put
here by pip.
Once this package is successfully installed this source code will be
deleted (unless you remove this file).
'''
Reported by Pylint.
Line: 13
Column: 1
PIP_DELETE_MARKER_FILENAME = 'pip-delete-this-directory.txt'
def has_delete_marker_file(directory):
# type: (str) -> bool
return os.path.exists(os.path.join(directory, PIP_DELETE_MARKER_FILENAME))
def write_delete_marker_file(directory):
Reported by Pylint.
pipenv/vendor/requests/exceptions.py
2 issues
Line: 36
Column: 1
"""An HTTP error occurred."""
class ConnectionError(RequestException):
"""A Connection error occurred."""
class ProxyError(ConnectionError):
"""A proxy error occurred."""
Reported by Pylint.
Line: 25
Column: 9
if (response is not None and not self.request and
hasattr(response, 'request')):
self.request = self.response.request
super(RequestException, self).__init__(*args, **kwargs)
class InvalidJSONError(RequestException):
"""A JSON error occurred."""
Reported by Pylint.
pipenv/cli/__init__.py
2 issues
Line: 1
Column: 1
from .command import cli # noqa
Reported by Pylint.
Line: 1
Column: 1
from .command import cli # noqa
Reported by Pylint.
pipenv/patched/notpip/_internal/operations/check.py
2 issues
Line: 69
Column: 27
package name and returns a boolean.
"""
if should_ignore is None:
def should_ignore(name):
return False
missing = {}
conflicting = {}
Reported by Pylint.
Line: 54
Column: 9
name = canonicalize_name(dist.project_name)
try:
package_set[name] = PackageDetails(dist.version, dist.requires())
except RequirementParseError as e:
# Don't crash on broken metadata
logger.warning("Error parsing requirements for %s: %s", name, e)
problems = True
return package_set, problems
Reported by Pylint.
pipenv/patched/notpip/_internal/models/wheel.py
2 issues
Line: 15
Column: 1
from typing import List
class Wheel(object):
"""A wheel file"""
wheel_file_re = re.compile(
r"""^(?P<namever>(?P<name>.+?)-(?P<ver>.*?))
((-(?P<build>\d[^-]*?))?-(?P<pyver>.+?)-(?P<abi>.+?)-(?P<plat>.+?)
Reported by Pylint.
Line: 15
Column: 1
from typing import List
class Wheel(object):
"""A wheel file"""
wheel_file_re = re.compile(
r"""^(?P<namever>(?P<name>.+?)-(?P<ver>.*?))
((-(?P<build>\d[^-]*?))?-(?P<pyver>.+?)-(?P<abi>.+?)-(?P<plat>.+?)
Reported by Pylint.
pipenv/patched/notpip/_internal/models/target_python.py
2 issues
Line: 1
Column: 1
import sys
from pipenv.patched.notpip._internal.pep425tags import get_supported, version_info_to_nodot
from pipenv.patched.notpip._internal.utils.misc import normalize_version_info
from pipenv.patched.notpip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from typing import List, Optional, Tuple
Reported by Pylint.
Line: 13
Column: 1
from pipenv.patched.notpip._vendor.packaging.tags import Tag
class TargetPython(object):
"""
Encapsulates the properties of a Python interpreter one is targeting
for a package install, download, etc.
"""
Reported by Pylint.