diff --git a/tools/vendored.py b/tools/vendored.py index 9b7cf729ba..f339497fa1 100644 --- a/tools/vendored.py +++ b/tools/vendored.py @@ -105,7 +105,8 @@ 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') + ignored = ['vendored.txt', 'ruff.toml'] + remove_all(path for path in vendor.glob('*') if path.basename() not in ignored) def install(vendor):