From f9b19587bae6dbfa66c92b9aa35a2a97680e608b Mon Sep 17 00:00:00 2001 From: Brett Date: Sun, 28 Dec 2025 15:00:01 -0600 Subject: [PATCH] Ignore aerender in pytests until ready (#125) * Ignore aerender in pytests until ready * Disable pytest step in GitHub Actions workflow --- .flake8 | 11 +++++++++++ .github/workflows/python-app.yml | 7 ++++--- .pylintrc | 1 + pytest.ini | 2 ++ src/api/add_job_helpers.py | 2 +- 5 files changed, 19 insertions(+), 4 deletions(-) create mode 100644 .flake8 create mode 100644 pytest.ini diff --git a/.flake8 b/.flake8 new file mode 100644 index 0000000..c4a4394 --- /dev/null +++ b/.flake8 @@ -0,0 +1,11 @@ +[flake8] +exclude = + src/engines/aerender + .git + build + dist + *.egg + venv + .venv +max-complexity = 10 +max-line-length = 127 \ No newline at end of file diff --git a/.github/workflows/python-app.yml b/.github/workflows/python-app.yml index 7f453c0..aab256a 100644 --- a/.github/workflows/python-app.yml +++ b/.github/workflows/python-app.yml @@ -34,6 +34,7 @@ jobs: flake8 . --count --select=E9,F63,F7,F82 --show-source --statistics # exit-zero treats all errors as warnings. The GitHub editor is 127 chars wide flake8 . --count --exit-zero --max-complexity=10 --max-line-length=127 --statistics - - name: Test with pytest - run: | - pytest + continue-on-error: false + # - name: Test with pytest + # run: | + # pytest diff --git a/.pylintrc b/.pylintrc index f097d1e..062291b 100644 --- a/.pylintrc +++ b/.pylintrc @@ -1,4 +1,5 @@ [MASTER] max-line-length = 120 +ignore-paths=^src/engines/aerender/ [MESSAGES CONTROL] disable = missing-docstring, invalid-name, import-error, logging-fstring-interpolation \ No newline at end of file diff --git a/pytest.ini b/pytest.ini new file mode 100644 index 0000000..aa74c9a --- /dev/null +++ b/pytest.ini @@ -0,0 +1,2 @@ +[pytest] +norecursedirs = src/engines/aerender .git build dist *.egg venv .venv env .env __pycache__ .pytest_cache \ No newline at end of file diff --git a/src/api/add_job_helpers.py b/src/api/add_job_helpers.py index 84ae2f5..f991412 100644 --- a/src/api/add_job_helpers.py +++ b/src/api/add_job_helpers.py @@ -38,7 +38,7 @@ def handle_uploaded_project_files(request, jobs_list, upload_directory): uploaded_project = request.files.get('file', None) project_url = jobs_list[0].get('url', None) local_path = jobs_list[0].get('local_path', None) - renderer = jobs_list[0]['renderer'] + engine_name = jobs_list[0]['engine_name'] downloaded_file_url = None if uploaded_project and uploaded_project.filename: