From 2ad7228685dc80984f390452ffd2d8a9b5900c8b Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Fri, 13 Jan 2023 10:05:06 -0500 Subject: =?UTF-8?q?=E2=9A=AB=20Fade=20to=20black.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- tools/vendored.py | 15 +++++++-------- 1 file changed, 7 insertions(+), 8 deletions(-) diff --git a/tools/vendored.py b/tools/vendored.py index 8a122ad7..71df0ca7 100644 --- a/tools/vendored.py +++ b/tools/vendored.py @@ -94,21 +94,20 @@ def clean(vendor): Remove all files out of the vendor directory except the meta data (as pip uninstall doesn't support -t). """ - remove_all( - path - for path in vendor.glob('*') - if path.basename() != 'vendored.txt' - ) + remove_all(path for path in vendor.glob('*') if path.basename() != 'vendored.txt') def install(vendor): clean(vendor) install_args = [ sys.executable, - '-m', 'pip', + '-m', + 'pip', 'install', - '-r', str(vendor / 'vendored.txt'), - '-t', str(vendor), + '-r', + str(vendor / 'vendored.txt'), + '-t', + str(vendor), ] subprocess.check_call(install_args) (vendor / '__init__.py').write_text('') -- cgit v1.2.1