Skip to content

Commit dbc6471

Browse files
committed
Avoid removing ruff.toml during vendoring. Closes #4252.
1 parent 2d5c7d5 commit dbc6471

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tools/vendored.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,8 @@ def clean(vendor):
105105
Remove all files out of the vendor directory except the meta
106106
data (as pip uninstall doesn't support -t).
107107
"""
108-
remove_all(path for path in vendor.glob('*') if path.basename() != 'vendored.txt')
108+
ignored = ['vendored.txt', 'ruff.toml']
109+
remove_all(path for path in vendor.glob('*') if path.basename() not in ignored)
109110

110111

111112
def install(vendor):

0 commit comments

Comments
 (0)