diff --git a/src/__pycache__/__init__.cpython-311.pyc b/src/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index 46ade8d..0000000 Binary files a/src/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/src/__pycache__/gitea_proxy.cpython-311.pyc b/src/__pycache__/gitea_proxy.cpython-311.pyc deleted file mode 100644 index 1071367..0000000 Binary files a/src/__pycache__/gitea_proxy.cpython-311.pyc and /dev/null differ diff --git a/src/__pycache__/main.cpython-311.pyc b/src/__pycache__/main.cpython-311.pyc deleted file mode 100644 index 3bfafea..0000000 Binary files a/src/__pycache__/main.cpython-311.pyc and /dev/null differ diff --git a/src/__pycache__/models.cpython-311.pyc b/src/__pycache__/models.cpython-311.pyc deleted file mode 100644 index 1d8876b..0000000 Binary files a/src/__pycache__/models.cpython-311.pyc and /dev/null differ diff --git a/src/__pycache__/suggestion_engine.cpython-311.pyc b/src/__pycache__/suggestion_engine.cpython-311.pyc deleted file mode 100644 index 3ff0a44..0000000 Binary files a/src/__pycache__/suggestion_engine.cpython-311.pyc and /dev/null differ diff --git a/src/__pycache__/views.cpython-311.pyc b/src/__pycache__/views.cpython-311.pyc deleted file mode 100644 index 08b27a2..0000000 Binary files a/src/__pycache__/views.cpython-311.pyc and /dev/null differ diff --git a/tests/__pycache__/__init__.cpython-311.pyc b/tests/__pycache__/__init__.cpython-311.pyc deleted file mode 100644 index a1ba93a..0000000 Binary files a/tests/__pycache__/__init__.cpython-311.pyc and /dev/null differ diff --git a/tests/__pycache__/test_suggestion_engine.cpython-311-pytest-9.1.1.pyc b/tests/__pycache__/test_suggestion_engine.cpython-311-pytest-9.1.1.pyc deleted file mode 100644 index cfa7f0e..0000000 Binary files a/tests/__pycache__/test_suggestion_engine.cpython-311-pytest-9.1.1.pyc and /dev/null differ diff --git a/tests/test_repository_hygiene.py b/tests/test_repository_hygiene.py new file mode 100644 index 0000000..ffb7e65 --- /dev/null +++ b/tests/test_repository_hygiene.py @@ -0,0 +1,18 @@ +import subprocess + + +def test_python_bytecode_is_not_tracked(): + tracked = subprocess.run( + ["git", "ls-files"], + check=True, + capture_output=True, + text=True, + ).stdout.splitlines() + + bytecode = [ + path + for path in tracked + if "__pycache__" in path.split("/") or path.endswith((".pyc", ".pyo")) + ] + + assert bytecode == []