From 559a1a645382935ad9ac2d87f9f3eb3c38db32b0 Mon Sep 17 00:00:00 2001 From: venkatranabothu Date: Thu, 17 Sep 2026 07:27:10 +0000 Subject: [PATCH 1/2] Fix invalid Python syntax in app entrypoint --- app.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app.py b/app.py index 1238e4d..3354649 100755 --- a/app.py +++ b/app.py @@ -12,7 +12,7 @@ sys.path.insert(0, str(BASE_DIR / 'sampleproject')) # Set Django settings module -12os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sampleproject.settings') +os.environ.setdefault('DJANGO_SETTINGS_MODULE', 'sampleproject.settings') # Import Django utilities import django From 9cd554db24f9557f962d0bf94c0d861358bfb974 Mon Sep 17 00:00:00 2001 From: venkatranabothu Date: Thu, 17 Sep 2026 07:28:06 +0000 Subject: [PATCH 2/2] Add app syntax regression test --- tests/test_app_syntax.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 tests/test_app_syntax.py diff --git a/tests/test_app_syntax.py b/tests/test_app_syntax.py new file mode 100644 index 0000000..3c91852 --- /dev/null +++ b/tests/test_app_syntax.py @@ -0,0 +1,13 @@ +import py_compile +import unittest +from pathlib import Path + + +class AppSyntaxTest(unittest.TestCase): + def test_app_compiles(self): + app_path = Path(__file__).resolve().parents[1] / "app.py" + py_compile.compile(str(app_path), doraise=True) + + +if __name__ == "__main__": + unittest.main()