From 9ec84daa18769bfc39cf132e4a94a59400da208a Mon Sep 17 00:00:00 2001 From: Mathias Ertl Date: Sun, 26 Nov 2023 11:48:52 +0100 Subject: [PATCH] update dockerignore and clean command --- .dockerignore | 3 +++ devscripts/standalone/clean.py | 7 +++++++ 2 files changed, 10 insertions(+) diff --git a/.dockerignore b/.dockerignore index 55f9a2353..97d54c835 100644 --- a/.dockerignore +++ b/.dockerignore @@ -14,8 +14,11 @@ /.coverage /.docker/ /.env +/.idea/ /.mypy_cache/ +/.pytest_cache/ /.python-version +/.ruff_cache/ /.tox/ /bin/ /ca/*.crl diff --git a/devscripts/standalone/clean.py b/devscripts/standalone/clean.py index 9c2dffce3..85f41e1fb 100755 --- a/devscripts/standalone/clean.py +++ b/devscripts/standalone/clean.py @@ -47,9 +47,16 @@ def cleanup(root: Path, dry: bool = False) -> None: remove(root / "build", dry=dry) remove(root / ".coverage", dry=dry) remove(root / ".docker", dry=dry) + remove(root / ".idea", dry=dry) remove(root / ".mypy_cache", dry=dry) + remove(root / ".pytest_cache", dry=dry) + remove(root / ".ruff_cache", dry=dry) remove(root / "contrib/selenium/geckodriver", dry=dry) remove(root / "docs/source/_files/docker-compose.yml", dry=dry) + for path in root.glob("*.crl"): + remove(path, dry=dry) + for path in root.glob("*.pem"): + remove(path, dry=dry) for path in root.rglob("__pycache__/"): remove(path, dry=dry) for path in root.rglob("*.pyc"):