Skip to content

Commit 65c33ca

Browse files
committed
fix flake8 errors
1 parent c8bd006 commit 65c33ca

File tree

7 files changed

+71
-75
lines changed

7 files changed

+71
-75
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515
rev: v1.2.0
1616
hooks:
1717
- id: seed-isort-config
18-
args: [--application-directories, "src:."]
18+
args: [--application-directories, "src:tests:virtualenv_embedded"]
1919
- repo: https://github.com/pre-commit/mirrors-isort
2020
rev: v4.3.4
2121
hooks:
@@ -27,8 +27,11 @@ repos:
2727
- id: end-of-file-fixer
2828
- id: check-yaml
2929
- id: debug-statements
30+
- id: check-merge-conflict
31+
- id: trailing-whitespace
32+
- id: check-docstring-first
3033
- id: flake8
31-
additional_dependencies: ["flake8-bugbear == 18.2.0"]
34+
additional_dependencies: ["flake8-bugbear == 18.8.0"]
3235
language_version: python3.7
3336
- repo: https://github.com/asottile/pyupgrade
3437
rev: v1.9.1

AUTHORS.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ Maintainers
77
-----------
88

99
Brian Rosner
10+
Bernat Gabor
1011
Carl Meyer
1112
Jannis Leidel
1213
Paul Moore

src/virtualenv.py

Lines changed: 52 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,11 @@
2424
import logging
2525
import optparse
2626
import os
27-
import pkgutil
2827
import re
2928
import shutil
3029
import struct
3130
import subprocess
3231
import sys
33-
import tempfile
3432
import textwrap
3533
import zlib
3634
from distutils.util import strtobool
@@ -696,14 +694,14 @@ def main():
696694
)
697695

698696
if "extend_parser" in globals():
699-
extend_parser(parser)
697+
extend_parser(parser) # noqa: F821
700698

701699
options, args = parser.parse_args()
702700

703701
global logger
704702

705703
if "adjust_options" in globals():
706-
adjust_options(options, args)
704+
adjust_options(options, args) # noqa: F821
707705

708706
verbosity = options.verbose - options.quiet
709707
logger = Logger([(Logger.level_for_integer(2 - verbosity), sys.stdout)])
@@ -764,7 +762,7 @@ def main():
764762
symlink=options.symlink,
765763
)
766764
if "after_install" in globals():
767-
after_install(options, home_dir)
765+
after_install(options, home_dir) # noqa: F821
768766

769767

770768
def call_subprocess(
@@ -1175,8 +1173,8 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
11751173

11761174
if clear:
11771175
rmtree(lib_dir)
1178-
## FIXME: why not delete it?
1179-
## Maybe it should delete everything with #!/path/to/venv/python in it
1176+
# FIXME: why not delete it?
1177+
# Maybe it should delete everything with #!/path/to/venv/python in it
11801178
logger.notify("Not deleting %s", bin_dir)
11811179

11821180
if hasattr(sys, "real_prefix"):
@@ -1304,7 +1302,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
13041302
os.unlink(pyd_pth)
13051303

13061304
if sys.executable != py_executable:
1307-
## FIXME: could I just hard link?
1305+
# FIXME: could I just hard link?
13081306
executable = sys.executable
13091307
shutil.copyfile(executable, py_executable)
13101308
make_exe(py_executable)
@@ -1413,7 +1411,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
14131411
# And then change the install_name of the copied python executable
14141412
try:
14151413
mach_o_change(py_executable, os.path.join(prefix, "Python"), "@executable_path/../.Python")
1416-
except:
1414+
except Exception:
14171415
e = sys.exc_info()[1]
14181416
logger.warn("Could not call mach_o_change: %s. " "Trying to call install_name_tool instead." % e)
14191417
try:
@@ -1426,7 +1424,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
14261424
py_executable,
14271425
]
14281426
)
1429-
except:
1427+
except Exception:
14301428
logger.fatal("Could not call install_name_tool -- you must " "have Apple's development tools installed")
14311429
raise
14321430

@@ -1493,7 +1491,7 @@ def install_python(home_dir, lib_dir, inc_dir, bin_dir, site_packages, clear, sy
14931491
pydistutils = os.path.expanduser("~/.pydistutils.cfg")
14941492
if os.path.exists(pydistutils):
14951493
logger.notify("Please make sure you remove any previous custom paths from " "your %s file." % pydistutils)
1496-
## FIXME: really this should be calculated earlier
1494+
# FIXME: really this should be calculated earlier
14971495

14981496
fix_local_scheme(home_dir, symlink)
14991497

@@ -1553,17 +1551,17 @@ def install_python_config(home_dir, bin_dir, prompt=None):
15531551
else:
15541552
files = {"python-config": PYTHON_CONFIG}
15551553
install_files(home_dir, bin_dir, prompt, files)
1556-
for name, content in files.items():
1554+
for name, _ in files.items():
15571555
make_exe(os.path.join(bin_dir, name))
15581556

15591557

15601558
def install_distutils(home_dir):
15611559
distutils_path = change_prefix(distutils.__path__[0], home_dir)
15621560
mkdir(distutils_path)
1563-
## FIXME: maybe this prefix setting should only be put in place if
1564-
## there's a local distutils.cfg with a prefix setting?
1561+
# FIXME: maybe this prefix setting should only be put in place if
1562+
# there's a local distutils.cfg with a prefix setting?
15651563
home_dir = os.path.abspath(home_dir)
1566-
## FIXME: this is breaking things, removing for now:
1564+
# FIXME: this is breaking things, removing for now:
15671565
# distutils_cfg = DISTUTILS_CFG + "\n[install]\nprefix=%s\n" % home_dir
15681566
writefile(os.path.join(distutils_path, "__init__.py"), DISTUTILS_INIT)
15691567
writefile(os.path.join(distutils_path, "distutils.cfg"), DISTUTILS_CFG, overwrite=False)
@@ -1651,10 +1649,7 @@ def is_executable(exe):
16511649
return os.path.isfile(exe) and os.access(exe, os.X_OK)
16521650

16531651

1654-
############################################################
1655-
## Relocating the environment:
1656-
1657-
1652+
# Relocating the environment:
16581653
def make_environment_relocatable(home_dir):
16591654
"""
16601655
Makes the already-existing environment use relative paths, and takes out
@@ -1669,7 +1664,7 @@ def make_environment_relocatable(home_dir):
16691664
)
16701665
fixup_scripts(home_dir, bin_dir)
16711666
fixup_pth_and_egg_link(home_dir)
1672-
## FIXME: need to fix up distutils.cfg
1667+
# FIXME: need to fix up distutils.cfg
16731668

16741669

16751670
OK_ABS_SCRIPTS = [
@@ -1733,7 +1728,12 @@ def fixup_scripts(home_dir, bin_dir):
17331728

17341729
def relative_script(lines):
17351730
"Return a script that'll work in a relocatable environment."
1736-
activate = "import os; activate_this=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'activate_this.py'); exec(compile(open(activate_this).read(), activate_this, 'exec'), dict(__file__=activate_this)); del os, activate_this"
1731+
activate = (
1732+
"import os; "
1733+
"activate_this=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'activate_this.py'); "
1734+
"exec(compile(open(activate_this).read(), activate_this, 'exec'), dict(__file__=activate_this)); "
1735+
"del os, activate_this"
1736+
)
17371737
# Find the last future statement in the script. If we insert the activation
17381738
# line before a future statement, Python will raise a SyntaxError.
17391739
activate_at = None
@@ -1843,10 +1843,7 @@ def make_relative_path(source, dest, dest_is_directory=True):
18431843
return os.path.sep.join(full_parts)
18441844

18451845

1846-
############################################################
1847-
## Bootstrap script creation:
1848-
1849-
1846+
# Bootstrap script creation:
18501847
def create_bootstrap_script(extra_text, python_version=""):
18511848
"""
18521849
Creates a bootstrap script, which is like this script but with
@@ -1893,13 +1890,11 @@ def after_install(options, home_dir):
18931890
with codecs.open(filename, "r", encoding="utf-8") as f:
18941891
content = f.read()
18951892
py_exe = "python%s" % python_version
1896-
content = ("#!/usr/bin/env %s\n" % py_exe) + "## WARNING: This file is generated\n" + content
1893+
content = ("#!/usr/bin/env %s\n" % py_exe) + "# WARNING: This file is generated\n" + content
18971894
return content.replace("##EXT" "END##", extra_text)
18981895

18991896

1900-
##EXTEND##
1901-
1902-
1897+
# EXTEND
19031898
def convert(s):
19041899
b = base64.b64decode(s.encode("ascii"))
19051900
return zlib.decompress(b).decode("utf-8")
@@ -2122,10 +2117,10 @@ def convert(s):
21222117
# file deactivate.bat
21232118
DEACTIVATE_BAT = convert(
21242119
"""
2125-
eJyFkN0KgkAUhO8XfIdBkOoVAqFAQyF/EBO6ksrdXCg3cqvXbxdJTRTP3ZwzZ/iYDb2UAoIxgxik
2126-
phKZn6SH7T53w8zWu8QN4IhqIfGqKZYrSIHTW/ACj6c43+i9xofLErKkd/AKVrxNPcsgnKESEgVl
2127-
vKIF8mjv5L/sOImCOMVVqCw3dPxd1mwMAjWawmwWtjXyZ5mdb+SsqNf/oTMwx9SLQi8K3D6Q1n2c
2128-
1jREag/TWN1vi9bEz4CpIv86UrqPpOQQRlc/iaH9XTdKkS98fZEs
2120+
eJyFkN0KgkAUhO8X9h0GQapXCIQEDQX/EBO6kso1F9KN3Or1201Si6JzN+fMGT5mxQ61gKgqSijp
2121+
mETup9nGDgo3yi29S90QjmhnEteOYb6AFNjdBC9xvoj9iTUd7lzWkDVrwFuYiZ15JiW8QiskSlbx
2122+
lpUo4sApXtlJGodJhqNQWW7k+Ou831ACNZrC6BeW+eXPNEbfl7OiXr6H/oHZZl4ceXHoToG0nuIM
2123+
pk+k4fAba/wd0Pr4P2CqyLeOlJ4iKfkJo6v/iaH9YzfPMEoeMG2RUA==
21292124
"""
21302125
)
21312126

@@ -2225,29 +2220,28 @@ def convert(s):
22252220
# file distutils-init.py
22262221
DISTUTILS_INIT = convert(
22272222
"""
2228-
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
22512245
"""
22522246
)
22532247

@@ -2390,7 +2384,7 @@ def do_macho(file, bits, endian):
23902384
if bits == 64:
23912385
read_data(file, endian)
23922386
# The header is followed by ncmds commands
2393-
for n in range(ncmds):
2387+
for _ in range(ncmds):
23942388
where = file.tell()
23952389
# Read command header
23962390
cmd, cmdsize = read_data(file, endian, 2)
@@ -2417,7 +2411,7 @@ def do_file(file, offset=0, size=maxint):
24172411
if magic == FAT_MAGIC:
24182412
# Fat binaries contain nfat_arch Mach-O binaries
24192413
nfat_arch = read_data(file, BIG_ENDIAN)
2420-
for n in range(nfat_arch):
2414+
for _ in range(nfat_arch):
24212415
# Read arch header
24222416
cputype, cpusubtype, offset, size, align = read_data(file, BIG_ENDIAN, 5)
24232417
do_file(file, offset, size)

tests/test_virtualenv.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
import optparse
22
import os
3-
import platform # noqa
43
import shutil
54
import sys
65
import tempfile
76

87
import pytest
9-
from mock import Mock, NonCallableMock, call, patch
8+
from mock import NonCallableMock, call, patch
109

1110
import virtualenv
1211

@@ -229,7 +228,10 @@ def test_activate_after_future_statements():
229228
"from __future__ import with_statement",
230229
"from __future__ import print_function",
231230
"",
232-
"import os; activate_this=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'activate_this.py'); exec(compile(open(activate_this).read(), activate_this, 'exec'), dict(__file__=activate_this)); del os, activate_this",
231+
"import os; "
232+
"activate_this=os.path.join(os.path.dirname(os.path.realpath(__file__)), 'activate_this.py'); "
233+
"exec(compile(open(activate_this).read(), activate_this, 'exec'), dict(__file__=activate_this)); "
234+
"del os, activate_this",
233235
"",
234236
'print("Hello, world!")',
235237
]

tox.ini

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -94,8 +94,7 @@ commands = python {toxinidir}/bin/rebuild-script.py
9494
[testenv:fix_lint]
9595
description = format the code base to adhere to our styles, and complain about what we cannot do automatically
9696
basepython = python3.7
97-
passenv = HOMEPATH
98-
PROGRAMDATA
97+
passenv = HOMEPATH PROGRAMDATA http_proxy https_proxy no_proxy
9998
deps = pre-commit == 1.12.0
10099
skip_install = True
101100
commands = pre-commit run --all-files --show-diff-on-failure
@@ -106,7 +105,7 @@ multi_line_output = 3
106105
include_trailing_comma = True
107106
force_grid_wrap = 0
108107
line_length = 120
109-
known_first_party = tox,tests
108+
known_first_party = virtualenv
110109
known_third_party = __builtin__,_winreg,mock,pytest,sets,setuptools,sitecustomize,sphinx_rtd_theme,urlparse,usercustomize,winreg
111110

112111
[flake8]

virtualenv_embedded/deactivate.bat

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,3 +17,4 @@ if not defined _OLD_VIRTUAL_PATH goto ENDIFVPATH
1717
set "PATH=%_OLD_VIRTUAL_PATH%"
1818
set _OLD_VIRTUAL_PATH=
1919
:ENDIFVPATH
20+

virtualenv_embedded/distutils-init.py

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
if os.path.normpath(distutils_path) == os.path.dirname(os.path.normpath(__file__)):
1515
warnings.warn("The virtualenv distutils package at %s appears to be in the same location as the system distutils?")
1616
else:
17-
__path__.insert(0, distutils_path)
17+
__path__.insert(0, distutils_path) # noqa: F821
1818
real_distutils = imp.load_module("_virtualenv_distutils", None, distutils_path, ("", "", imp.PKG_DIRECTORY))
1919
# Copy the relevant attributes
2020
try:
@@ -30,8 +30,8 @@
3030
except NameError:
3131
basestring = str
3232

33-
## patch build_ext (distutils doesn't know how to get the libs directory
34-
## path on windows - it hardcodes the paths around the patched sys.prefix)
33+
# patch build_ext (distutils doesn't know how to get the libs directory
34+
# path on windows - it hardcodes the paths around the patched sys.prefix)
3535

3636
if sys.platform == "win32":
3737
from distutils.command.build_ext import build_ext as old_build_ext
@@ -50,17 +50,13 @@ def finalize_options(self):
5050

5151
build_ext_module.build_ext = build_ext
5252

53-
## distutils.dist patches:
53+
# distutils.dist patches:
5454

5555
old_find_config_files = dist.Distribution.find_config_files
5656

5757

5858
def find_config_files(self):
5959
found = old_find_config_files(self)
60-
system_distutils = os.path.join(distutils_path, "distutils.cfg")
61-
# if os.path.exists(system_distutils):
62-
# found.insert(0, system_distutils)
63-
# What to call the per-user config file
6460
if os.name == "posix":
6561
user_filename = ".pydistutils.cfg"
6662
else:
@@ -76,7 +72,7 @@ def find_config_files(self):
7672

7773
dist.Distribution.find_config_files = find_config_files
7874

79-
## distutils.sysconfig patches:
75+
# distutils.sysconfig patches:
8076

8177
old_get_python_inc = sysconfig.get_python_inc
8278

0 commit comments

Comments
 (0)