The following issues were found
pipenv/patched/notpip/_internal/models/candidate.py
2 issues
Line: 1
Column: 1
from pipenv.patched.notpip._vendor.packaging.version import parse as parse_version
from pipenv.patched.notpip._internal.utils.models import KeyBasedCompareMixin
from pipenv.patched.notpip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from pipenv.patched.notpip._vendor.packaging.version import _BaseVersion
from pipenv.patched.notpip._internal.models.link import Link
Reported by Pylint.
Line: 22
Column: 9
self.link = link
self.requires_python = requires_python
super(InstallationCandidate, self).__init__(
key=(self.name, self.version, self.link),
defining_class=InstallationCandidate
)
def __repr__(self):
Reported by Pylint.
pipenv/patched/notpip/_internal/main.py
2 issues
Line: 1
Column: 1
from pipenv.patched.notpip._internal.utils.typing import MYPY_CHECK_RUNNING
if MYPY_CHECK_RUNNING:
from typing import Optional, List
def main(args=None):
# type: (Optional[List[str]]) -> int
"""This is preserved for old console scripts that may still be referencing
Reported by Pylint.
Line: 14
Column: 5
For additional details, see https://github.com/pypa/pip/issues/7498.
"""
from pipenv.patched.notpip._internal.utils.entrypoints import _wrapper
return _wrapper(args)
Reported by Pylint.
pipenv/vendor/shellingham/_core.py
2 issues
Line: 1
Column: 1
SHELL_NAMES = (
{"sh", "bash", "dash", "ash"} # Bourne.
| {"csh", "tcsh"} # C.
| {"ksh", "zsh", "fish"} # Common alternatives.
| {"cmd", "powershell", "pwsh"} # Microsoft.
| {"elvish", "xonsh"} # More exotic.
)
Reported by Pylint.
Line: 10
Column: 1
)
class ShellDetectionFailure(EnvironmentError):
pass
Reported by Pylint.
pipenv/patched/notpip/_internal/commands/uninstall.py
2 issues
Line: 1
Column: 1
# The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False
from __future__ import absolute_import
from pipenv.patched.notpip._vendor.packaging.utils import canonicalize_name
from pipenv.patched.notpip._internal.cli.base_command import Command
from pipenv.patched.notpip._internal.cli.req_command import SessionCommandMixin
Reported by Pylint.
Line: 32
Column: 9
%prog [options] -r <requirements file> ..."""
def __init__(self, *args, **kw):
super(UninstallCommand, self).__init__(*args, **kw)
self.cmd_opts.add_option(
'-r', '--requirement',
dest='requirements',
action='append',
default=[],
Reported by Pylint.
pipenv/patched/notpip/_internal/commands/help.py
2 issues
Line: 1
Column: 1
# The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False
from __future__ import absolute_import
from pipenv.patched.notpip._internal.cli.base_command import Command
from pipenv.patched.notpip._internal.cli.status_codes import SUCCESS
from pipenv.patched.notpip._internal.exceptions import CommandError
Reported by Pylint.
Line: 19
Column: 9
ignore_require_venv = True
def run(self, options, args):
from pipenv.patched.notpip._internal.commands import (
commands_dict, create_command, get_similar_commands,
)
try:
# 'pip help' with no args is handled by pip.__init__.parseopt()
Reported by Pylint.
pipenv/vendor/toml/tz.py
2 issues
Line: 1
Column: 1
from datetime import tzinfo, timedelta
class TomlTz(tzinfo):
def __init__(self, toml_offset):
if toml_offset == "Z":
self._raw_offset = "+00:00"
else:
self._raw_offset = toml_offset
Reported by Pylint.
Line: 4
Column: 1
from datetime import tzinfo, timedelta
class TomlTz(tzinfo):
def __init__(self, toml_offset):
if toml_offset == "Z":
self._raw_offset = "+00:00"
else:
self._raw_offset = toml_offset
Reported by Pylint.
pipenv/patched/notpip/_internal/commands/freeze.py
2 issues
Line: 1
Column: 1
# The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False
from __future__ import absolute_import
import sys
from pipenv.patched.notpip._internal.cache import WheelCache
from pipenv.patched.notpip._internal.cli import cmdoptions
Reported by Pylint.
Line: 30
Column: 9
log_streams = ("ext://sys.stderr", "ext://sys.stderr")
def __init__(self, *args, **kw):
super(FreezeCommand, self).__init__(*args, **kw)
self.cmd_opts.add_option(
'-r', '--requirement',
dest='requirements',
action='append',
Reported by Pylint.
pipenv/patched/notpip/_internal/commands/download.py
2 issues
Line: 1
Column: 1
# The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False
from __future__ import absolute_import
import logging
import os
from pipenv.patched.notpip._internal.cli import cmdoptions
Reported by Pylint.
Line: 41
Column: 9
%prog [options] <archive url/path> ..."""
def __init__(self, *args, **kw):
super(DownloadCommand, self).__init__(*args, **kw)
cmd_opts = self.cmd_opts
cmd_opts.add_option(cmdoptions.constraints())
cmd_opts.add_option(cmdoptions.requirements())
Reported by Pylint.
pipenv/patched/notpip/_internal/commands/completion.py
2 issues
Line: 1
Column: 1
# The following comment should be removed at some point in the future.
# mypy: disallow-untyped-defs=False
from __future__ import absolute_import
import sys
import textwrap
from pipenv.patched.notpip._internal.cli.base_command import Command
Reported by Pylint.
Line: 57
Column: 9
ignore_require_venv = True
def __init__(self, *args, **kw):
super(CompletionCommand, self).__init__(*args, **kw)
cmd_opts = self.cmd_opts
cmd_opts.add_option(
'--bash', '-b',
Reported by Pylint.
pipenv/vendor/dateutil/_version.py
2 issues
Line: 1
Column: 1
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
version = '2.8.2'
version_tuple = (2, 8, 2)
Reported by Pylint.
Line: 4
Column: 1
# coding: utf-8
# file generated by setuptools_scm
# don't change, don't track in version control
version = '2.8.2'
version_tuple = (2, 8, 2)
Reported by Pylint.