The following issues were found

pipenv/patched/notpip/_internal/distributions/sdist.py
4 issues
Unused argument 'conflicting_reqs'
Error

Line: 44 Column: 48

              
    def _setup_isolation(self, finder):
        # type: (PackageFinder) -> None
        def _raise_conflicts(conflicting_with, conflicting_reqs):
            # type: (str, Set[Tuple[str, str]]) -> None
            format_string = (
                "Some build dependencies for {requirement} "
                "conflict with {conflicting_with}: {description}."
            )

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              import logging

from pipenv.patched.notpip._internal.build_env import BuildEnvironment
from pipenv.patched.notpip._internal.distributions.base import AbstractDistribution
from pipenv.patched.notpip._internal.exceptions import InstallationError
from pipenv.patched.notpip._internal.utils.subprocess import runner_with_spinner_message
from pipenv.patched.notpip._internal.utils.typing import MYPY_CHECK_RUNNING

if MYPY_CHECK_RUNNING:

            

Reported by Pylint.

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Security

Line: 63
Suggestion: https://bandit.readthedocs.io/en/latest/plugins/b101_assert_used.html

                      # Isolate in a BuildEnvironment and install the build-time
        # requirements.
        pyproject_requires = self.req.pyproject_requires
        assert pyproject_requires is not None

        self.req.build_env = BuildEnvironment()
        self.req.build_env.install_requirements(
            finder, pyproject_requires, 'overlay',
            "Installing build dependencies"

            

Reported by Bandit.

Use of assert detected. The enclosed code will be removed when compiling to optimised byte code.
Security

Line: 94
Suggestion: https://bandit.readthedocs.io/en/latest/plugins/b101_assert_used.html

                              "Getting requirements to build wheel"
            )
            backend = self.req.pep517_backend
            assert backend is not None
            with backend.subprocess_runner(runner):
                reqs = backend.get_requires_for_build_wheel()

        conflicting, missing = self.req.build_env.check_requirements(reqs)
        if conflicting:

            

Reported by Bandit.

pipenv/vendor/attr/_config.py
4 issues
Using the global statement
Error

Line: 15 Column: 5

                  """
    if not isinstance(run, bool):
        raise TypeError("'run' must be bool.")
    global _run_validators
    _run_validators = run


def get_run_validators():
    """

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              from __future__ import absolute_import, division, print_function


__all__ = ["set_run_validators", "get_run_validators"]

_run_validators = True


def set_run_validators(run):

            

Reported by Pylint.

Constant name "_run_validators" doesn't conform to UPPER_CASE naming style
Error

Line: 6 Column: 1

              
__all__ = ["set_run_validators", "get_run_validators"]

_run_validators = True


def set_run_validators(run):
    """
    Set whether or not validators are run.  By default, they are run.

            

Reported by Pylint.

Constant name "_run_validators" doesn't conform to UPPER_CASE naming style
Error

Line: 15 Column: 5

                  """
    if not isinstance(run, bool):
        raise TypeError("'run' must be bool.")
    global _run_validators
    _run_validators = run


def get_run_validators():
    """

            

Reported by Pylint.

pipenv/vendor/urllib3/contrib/_securetransport/low_level.py
4 issues
Attempted relative import beyond top-level package
Error

Line: 19 Column: 1

              import struct
import tempfile

from .bindings import CFConst, CoreFoundation, Security

# This regular expression is used to grab PEM data out of a PEM bundle.
_PEM_CERTS_RE = re.compile(
    b"-----BEGIN CERTIFICATE-----\n(.*?)\n-----END CERTIFICATE-----", re.DOTALL
)

            

Reported by Pylint.

Catching too general exception Exception
Error

Line: 186 Column: 12

              
            CoreFoundation.CFArrayAppendValue(cert_array, cert)
            CoreFoundation.CFRelease(cert)
    except Exception:
        # We need to free the array before the exception bubbles further.
        # We only want to do that if an error occurs: otherwise, the caller
        # should free.
        CoreFoundation.CFRelease(cert_array)


            

Reported by Pylint.

Variable name "e" doesn't conform to snake_case naming style
Error

Line: 97 Column: 5

                              CoreFoundation.CFArrayAppendValue(cf_arr, cf_str)
            finally:
                CoreFoundation.CFRelease(cf_str)
    except BaseException as e:
        if cf_arr:
            CoreFoundation.CFRelease(cf_arr)
        raise ssl.SSLError("Unable to allocate array: %s" % (e,))
    return cf_arr


            

Reported by Pylint.

Variable name "f" doesn't conform to snake_case naming style
Error

Line: 257 Column: 30

                  identities = []
    result_array = None

    with open(path, "rb") as f:
        raw_filedata = f.read()

    try:
        filedata = CoreFoundation.CFDataCreate(
            CoreFoundation.kCFAllocatorDefault, raw_filedata, len(raw_filedata)

            

Reported by Pylint.

pipenv/pep508checker.py
4 issues
Missing module docstring
Error

Line: 1 Column: 1

              import json
import os
import platform
import sys


def format_full_version(info):
    version = "{0.major}.{0.minor}.{0.micro}".format(info)
    kind = info.releaselevel

            

Reported by Pylint.

Missing function or method docstring
Error

Line: 7 Column: 1

              import sys


def format_full_version(info):
    version = "{0.major}.{0.minor}.{0.micro}".format(info)
    kind = info.releaselevel
    if kind != "final":
        version += kind[0] + str(info.serial)
    return version

            

Reported by Pylint.

Constant name "implementation_version" doesn't conform to UPPER_CASE naming style
Error

Line: 19 Column: 5

              if hasattr(sys, "implementation"):
    implementation_version = format_full_version(sys.implementation.version)
else:
    implementation_version = "0"
# Default to cpython for 2.7.
if hasattr(sys, "implementation"):
    implementation_name = sys.implementation.name
else:
    implementation_name = "cpython"

            

Reported by Pylint.

Constant name "implementation_name" doesn't conform to UPPER_CASE naming style
Error

Line: 24 Column: 5

              if hasattr(sys, "implementation"):
    implementation_name = sys.implementation.name
else:
    implementation_name = "cpython"
lookup = {
    "os_name": os.name,
    "sys_platform": sys.platform,
    "platform_machine": platform.machine(),
    "platform_python_implementation": platform.python_implementation(),

            

Reported by Pylint.

tests/conftest.py
4 issues
Unable to import 'pytest'
Error

Line: 1 Column: 1

              import pytest


@pytest.fixture()
def project():
    from pipenv.project import Project
    return Project()

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              import pytest


@pytest.fixture()
def project():
    from pipenv.project import Project
    return Project()

            

Reported by Pylint.

Missing function or method docstring
Error

Line: 5 Column: 1

              

@pytest.fixture()
def project():
    from pipenv.project import Project
    return Project()

            

Reported by Pylint.

Import outside toplevel (pipenv.project.Project)
Error

Line: 6 Column: 5

              
@pytest.fixture()
def project():
    from pipenv.project import Project
    return Project()

            

Reported by Pylint.

pipenv/patched/safety/errors.py
4 issues
Missing class docstring
Error

Line: 1 Column: 1

              class DatabaseFetchError(Exception):
    pass


class DatabaseFileNotFoundError(DatabaseFetchError):
    pass


class InvalidKeyError(DatabaseFetchError):

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              class DatabaseFetchError(Exception):
    pass


class DatabaseFileNotFoundError(DatabaseFetchError):
    pass


class InvalidKeyError(DatabaseFetchError):

            

Reported by Pylint.

Missing class docstring
Error

Line: 5 Column: 1

                  pass


class DatabaseFileNotFoundError(DatabaseFetchError):
    pass


class InvalidKeyError(DatabaseFetchError):
    pass

            

Reported by Pylint.

Missing class docstring
Error

Line: 9 Column: 1

                  pass


class InvalidKeyError(DatabaseFetchError):
    pass

            

Reported by Pylint.

pipenv/patched/notpip/_internal/utils/appdirs.py
4 issues
Missing function or method docstring
Error

Line: 21 Column: 1

                  from typing import List


def user_cache_dir(appname):
    # type: (str) -> str
    return _appdirs.user_cache_dir(appname, appauthor=False)


def user_config_dir(appname, roaming=True):

            

Reported by Pylint.

Missing function or method docstring
Error

Line: 26 Column: 1

                  return _appdirs.user_cache_dir(appname, appauthor=False)


def user_config_dir(appname, roaming=True):
    # type: (str, bool) -> str
    return _appdirs.user_config_dir(appname, appauthor=False, roaming=roaming)


def user_data_dir(appname, roaming=False):

            

Reported by Pylint.

Missing function or method docstring
Error

Line: 31 Column: 1

                  return _appdirs.user_config_dir(appname, appauthor=False, roaming=roaming)


def user_data_dir(appname, roaming=False):
    # type: (str, bool) -> str
    return _appdirs.user_data_dir(appname, appauthor=False, roaming=roaming)


def site_config_dirs(appname):

            

Reported by Pylint.

Missing function or method docstring
Error

Line: 36 Column: 1

                  return _appdirs.user_data_dir(appname, appauthor=False, roaming=roaming)


def site_config_dirs(appname):
    # type: (str) -> List[str]
    dirval = _appdirs.site_config_dir(appname, appauthor=False, multipath=True)
    if _appdirs.system not in ["win32", "darwin"]:
        return dirval.split(os.pathsep)
    return [dirval]

            

Reported by Pylint.

pipenv/patched/piptools/click.py
4 issues
Module import itself
Error

Line: 3 Column: 1

              from __future__ import absolute_import

import click
from click import *  # noqa

click.disable_unicode_literals_warning = True

            

Reported by Pylint.

Module import itself
Error

Line: 4 Column: 1

              from __future__ import absolute_import

import click
from click import *  # noqa

click.disable_unicode_literals_warning = True

            

Reported by Pylint.

Wildcard import click
Error

Line: 4 Column: 1

              from __future__ import absolute_import

import click
from click import *  # noqa

click.disable_unicode_literals_warning = True

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              from __future__ import absolute_import

import click
from click import *  # noqa

click.disable_unicode_literals_warning = True

            

Reported by Pylint.

pipenv/patched/notpip/_vendor/colorama/__init__.py
4 issues
Unable to import '__init__.initialise'
Error

Line: 2 Column: 1

              # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
from .initialise import init, deinit, reinit, colorama_text
from .ansi import Fore, Back, Style, Cursor
from .ansitowin32 import AnsiToWin32

__version__ = '0.4.3'

            

Reported by Pylint.

Unable to import '__init__.ansi'
Error

Line: 3 Column: 1

              # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
from .initialise import init, deinit, reinit, colorama_text
from .ansi import Fore, Back, Style, Cursor
from .ansitowin32 import AnsiToWin32

__version__ = '0.4.3'

            

Reported by Pylint.

Unable to import '__init__.ansitowin32'
Error

Line: 4 Column: 1

              # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
from .initialise import init, deinit, reinit, colorama_text
from .ansi import Fore, Back, Style, Cursor
from .ansitowin32 import AnsiToWin32

__version__ = '0.4.3'

            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              # Copyright Jonathan Hartley 2013. BSD 3-Clause license, see LICENSE file.
from .initialise import init, deinit, reinit, colorama_text
from .ansi import Fore, Back, Style, Cursor
from .ansitowin32 import AnsiToWin32

__version__ = '0.4.3'

            

Reported by Pylint.

pipenv/patched/piptools/__main__.py
4 issues
Unable to import 'piptools.scripts'
Error

Line: 3 Column: 1

              import click

from piptools.scripts import compile, sync


@click.group()
def cli():
    pass


            

Reported by Pylint.

Redefining built-in 'compile'
Error

Line: 3 Column: 1

              import click

from piptools.scripts import compile, sync


@click.group()
def cli():
    pass


            

Reported by Pylint.

Missing module docstring
Error

Line: 1 Column: 1

              import click

from piptools.scripts import compile, sync


@click.group()
def cli():
    pass


            

Reported by Pylint.

Missing function or method docstring
Error

Line: 7 Column: 1

              

@click.group()
def cli():
    pass


cli.add_command(compile.cli, "compile")
cli.add_command(sync.cli, "sync")

            

Reported by Pylint.