Skip to content

Commit

Permalink
make.py: Add ruff cache dir to 'make.py clean'
Browse files Browse the repository at this point in the history
  • Loading branch information
benmoran56 committed Apr 17, 2024
1 parent 7a21361 commit 10cd88f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions make.py
Expand Up @@ -18,17 +18,25 @@ def clean():
op.join(THIS_DIR, '_build'),
op.join(THIS_DIR, 'pyglet.egg-info'),
op.join(THIS_DIR, '.pytest_cache'),
op.join(THIS_DIR, '.mypy_cache')]
op.join(THIS_DIR, '.mypy_cache'),
op.join(THIS_DIR, '.ruff_cache')]

files = [op.join(DOC_DIR, 'internal', 'build.rst')]

for d in dirs:
print(' Removing:', d)
if not op.exists(d):
continue
shutil.rmtree(d, ignore_errors=True)
print(f" Removed: {d}")

for f in files:
print(' Removing:', f)
if not op.exists(f):
continue
try:
os.remove(f)
print(f" Removed: {f}")
except OSError:
pass
print(f" Failed to remove: {f}")


def docs():
Expand Down

0 comments on commit 10cd88f

Please sign in to comment.