Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
149 commits
Select commit Hold shift + click to select a range
ac2db1a
Change to cloud build yaml
bdc34 Oct 4, 2025
34a184d
cloud build yaml change
bdc34 Oct 4, 2025
4180d35
Change to build yaml
bdc34 Oct 4, 2025
97d37f3
Cloud build yaml change
bdc34 Oct 4, 2025
cf5254b
Removes submit.sass
bdc34 Oct 4, 2025
cdcbc87
Fix to process.py
bdc34 Oct 5, 2025
23837ed
Fixes problem with held submissions on manage submissions page
bdc34 Oct 8, 2025
8ba60a4
Removed old autotex highlighting that was causing error.
DavidLFielding Oct 15, 2025
016162e
Add 'application/x-gzip' MIME type as acceptable for upload.
DavidLFielding Oct 15, 2025
c21ed56
Merge pull request #4 from arXiv/develop-minor-changes
bdc34 Oct 15, 2025
5f0fe3e
Change links on manage submissions page to point to submit-ce reposit…
DavidLFielding Oct 21, 2025
21e91d1
add emulator test dependency to README
dginev Oct 27, 2025
806a67d
Merge pull request #5 from arXiv/develop-minor-changes
DavidLFielding Oct 27, 2025
f880f71
Merge pull request #6 from arXiv/readme-emulator-dep
bdc34 Oct 27, 2025
be4c983
Add route for Review Files. [ARXIVCE-4072] David
DavidLFielding Oct 29, 2025
bb15718
Placeholder code for review files. [ARXIVCE-4072] David
DavidLFielding Oct 29, 2025
bb1fe0d
Load code for review files. [ARXIVCE-4072] David
DavidLFielding Oct 29, 2025
761dc01
Add Review Files step for workflow. [ARXIVCE-4072] David
DavidLFielding Oct 29, 2025
371dd4c
Stripped down HTML for Review Files step. To be replaced. [ARXIVCE-40…
DavidLFielding Oct 29, 2025
9d41cc7
Clean out unecessary code from upload files origin. [ARXIVCE-4072] David
DavidLFielding Oct 29, 2025
2d81b6c
Minor change
DavidLFielding Oct 31, 2025
1374ba2
Minor changes to calling arguments for compile_submission. [ARXIVCE-4…
DavidLFielding Oct 31, 2025
b46db4d
New file with settings from compilation scripts. [ARXIVCE-4072] David
DavidLFielding Oct 31, 2025
d1a7940
New version includes updates from production and submit-ce. [ARXIVCE-…
DavidLFielding Oct 31, 2025
d6140d2
Use tidy_filesize from arxiv.base.filters. [ARXIVCE-4072] David
DavidLFielding Oct 31, 2025
282bc2e
Merge pull request #7 from arXiv/ARXIVCE-4072-New-Review-Files-step
DavidLFielding Nov 4, 2025
a3d94f2
Minor CSS changed to support requested changes. [ARXIVCE-4220] David
DavidLFielding Jan 16, 2026
c95ae15
Remove the type of submission indicator preamble added to title. [ARX…
DavidLFielding Jan 16, 2026
aa0e8a4
Remove the type of submission indicator preamble added to title. [ARX…
DavidLFielding Jan 16, 2026
3433b2c
Moved verify checkbox above table, relocated content to sidebar. [ARX…
DavidLFielding Jan 16, 2026
5efecc8
Merge pull request #8 from arXiv/ARXIVCE-4220-VerifyUser
DavidLFielding Jan 17, 2026
f60f3e8
Minorchange to update checkbox text.[ARXIVCE-4220] David
DavidLFielding Jan 17, 2026
9e16647
Merge pull request #9 from arXiv/ARXIVCE-4220-VerifyUser
DavidLFielding Jan 17, 2026
54a80fa
Minor wording issues to authorship selections. [ARXIVCE-4223] David
DavidLFielding Jan 27, 2026
9f2238a
Minor CSS changes to adjust look per update request mockups. [ARXIVCE…
DavidLFielding Jan 27, 2026
dca22c5
Minor changes to authorship. New text for authors under 18 years of a…
DavidLFielding Jan 27, 2026
75fb726
Merge pull request #10 from arXiv/ARXIVCE-4223
DavidLFielding Jan 27, 2026
14a3c06
Adjust updated response in tests. [ARXIVCE-4223] David
DavidLFielding Jan 27, 2026
51b25c7
Merge pull request #11 from arXiv/ARXIVCE-4223
DavidLFielding Jan 27, 2026
386dce8
Minor tweaks to tests. [ARXIVCE-4223] David
DavidLFielding Jan 27, 2026
f268061
Merge pull request #12 from arXiv/ARXIVCE-4223
DavidLFielding Jan 27, 2026
3c7488a
Changes resulting from changing workflow order to have policy step be…
DavidLFielding Jan 27, 2026
483762f
Merge pull request #13 from arXiv/ARXIVCE-4239-ReorderWorkflow
DavidLFielding Jan 27, 2026
d882e9f
Fix tests after reordering workflow. [ARXIVCE-4239] David
DavidLFielding Jan 27, 2026
9b7fe1c
Merge pull request #14 from arXiv/ARXIVCE-4239-ReorderWorkflow
DavidLFielding Jan 27, 2026
bf9dd8c
Adjust tests after reordering steps. [ARXIVCE-4239] David
DavidLFielding Jan 27, 2026
3e1c093
Merge pull request #15 from arXiv/ARXIVCE-4239-ReorderWorkflow
DavidLFielding Jan 27, 2026
2feb9db
Fix name of next next step.
DavidLFielding Jan 28, 2026
babaa0c
Merge pull request #16 from arXiv/ARXIVCE-4239-ReorderWorkflow
DavidLFielding Jan 28, 2026
e89b810
Shared CSS changes for Submit 2.0. [SUBMISSION-66] David
DavidLFielding Feb 12, 2026
c8bbc78
Remove 'Exit' button, change name of 'Save and Continue' button to 'C…
DavidLFielding Feb 12, 2026
ec0a5d0
Replace message about e-mail with asterick in table. [Submission-66] …
DavidLFielding Feb 12, 2026
b075371
Merge pull request #17 from arXiv/SUBMISSION-66
DavidLFielding Feb 12, 2026
c75c0d6
Fix check of next step. Ignore one failing test. [Submission-66] David
DavidLFielding Feb 12, 2026
35aef85
Merge pull request #18 from arXiv/SUBMISSION-66
DavidLFielding Feb 12, 2026
80920a7
Additional CSS to support updated submission agreement and license pa…
DavidLFielding Feb 13, 2026
f24f66b
Minor: Removed commented out HTML.
DavidLFielding Feb 13, 2026
c6b5e32
WIP working on fixing tests and adding QA metadata checks
bdc34 Feb 16, 2026
dd3c7cc
Adds metadata QA checks from arxiv-base SUBMISSION-9
bdc34 Feb 17, 2026
5627e94
Merge pull request #19 from arXiv/bdc34/submission-9-qa-metadata-checks
bdc34 Feb 19, 2026
a8cd10c
Merge remote-tracking branch 'origin/develop' into develop
bdc34 Feb 23, 2026
62f70a8
Changes to make test db to add proxy flag
bdc34 Feb 23, 2026
dd114ab
Merge pull request #20 from arXiv/bdc34/mkdb-changes
DavidLFielding Feb 24, 2026
0c0b533
Add tests when creating PRs or pushing to develop.
DavidLFielding Feb 24, 2026
b136ec5
Add missing packageprotobuf compiler.
DavidLFielding Feb 24, 2026
985e123
Fix Github action yml.
DavidLFielding Feb 24, 2026
e1c98c9
Fix Github action yml.
DavidLFielding Feb 24, 2026
8eef211
Fix Github action yml.
DavidLFielding Feb 24, 2026
9724946
Fix Github action yml.
DavidLFielding Feb 24, 2026
ac7dbc6
Do not include tests and disabled features in coverage.
DavidLFielding Feb 24, 2026
4c4e9fd
Improve coverage. Removed tests from coverage.
DavidLFielding Feb 26, 2026
95be5c2
Expose make_event for testing purposes.
DavidLFielding Feb 26, 2026
94f0092
Minimal tests for branching.
DavidLFielding Feb 26, 2026
ee056b0
Additional branching tests for event domain.
DavidLFielding Feb 26, 2026
0d8d3f8
Add a test and fix another one.
DavidLFielding Feb 26, 2026
e9e749e
Merge branch 'develop' into SUBMISSION-66
DavidLFielding Feb 26, 2026
2be7ea6
Cleaning up event domain tests.
DavidLFielding Feb 26, 2026
3a771dd
Basic upload tests to help with coverage.
DavidLFielding Feb 26, 2026
0210720
Adjusting coverage related settings.
DavidLFielding Feb 26, 2026
ca819bd
More event domain tests.
DavidLFielding Feb 26, 2026
7a4148c
Omit unused files or those that are being reimplemented.
DavidLFielding Feb 26, 2026
0285d2b
Fix repo name for ruff command
DavidLFielding Feb 26, 2026
3c7553b
Fix repo name for ruff command
DavidLFielding Feb 26, 2026
6cfd4fb
Fix repo name for ruff command
DavidLFielding Feb 26, 2026
bb16dbe
Fix repo name for ruff command
DavidLFielding Feb 26, 2026
d4facae
Ruff fixes. Initial pass with safe fixes. Reviewed.
DavidLFielding Feb 27, 2026
a411eb5
Set Ruff to warn for short term.
DavidLFielding Feb 27, 2026
bd3a949
Set Ruff to warn for short term.
DavidLFielding Feb 27, 2026
11e134e
Merge pull request #21 from arXiv/SUBMISSION-66
DavidLFielding Mar 2, 2026
07353b7
minor
bmaltzan Mar 6, 2026
0f4aab3
Updates applied from version 5 mockup. Authomatically fill proxy name…
DavidLFielding Mar 9, 2026
b508e77
Remove Authorship step.
DavidLFielding Mar 9, 2026
2d09aca
Remove Authorship step.
DavidLFielding Mar 9, 2026
45873e3
Integrate proxy details into Verify User controller. [SUBMISSION-24] …
DavidLFielding Mar 9, 2026
e8ef18d
Clear out old submission agreement text. [SUBMISSION-24] David
DavidLFielding Mar 9, 2026
fd11520
Update tests to reflect workflow step name change from Policy to Agre…
DavidLFielding Mar 9, 2026
f62bbe7
Fixed a few typos.
DavidLFielding Mar 9, 2026
20f57da
Minor: add space between checkbox and text.
DavidLFielding Mar 9, 2026
296c776
Minor changes.
DavidLFielding Mar 10, 2026
1dc7e78
Minor fixed/updates from PR#22
DavidLFielding Mar 10, 2026
680d732
Removed unnecessary path update per PR#22.
DavidLFielding Mar 10, 2026
070501c
Remove Authorship tests (eliminated step)
DavidLFielding Mar 10, 2026
37a4e6a
Change route to agreement.
DavidLFielding Mar 10, 2026
9af0e6b
Undo route change for now. Finish removing authorship from tests.
DavidLFielding Mar 10, 2026
edf923a
Revert "Updates applied from version 5 mockup. Authomatically fill pr…
DavidLFielding Mar 11, 2026
7f8bb88
Merge branch 'develop' into SUBMISSION-24
DavidLFielding Mar 11, 2026
2fef0b8
Fix for gcd3 build dependency.
DavidLFielding Mar 11, 2026
386b9f7
Fix for gcd3 build dependency.
DavidLFielding Mar 11, 2026
f8867db
Additional tests to improve coverage.
DavidLFielding Mar 13, 2026
12d98cb
Minor changes. Remove authorship route.
DavidLFielding Mar 16, 2026
bc4461f
Additional tests to improve coverage.
DavidLFielding Mar 16, 2026
2af6fc3
Fix test import.
DavidLFielding Mar 16, 2026
3780040
Additional workflow tests to improve coverage.
DavidLFielding Mar 16, 2026
025104c
Additional workflow tests to improve coverage.
DavidLFielding Mar 16, 2026
ac1feda
Remove authorship controller as step had been eliminated.
DavidLFielding Mar 16, 2026
340acb3
Remove import of authorship.
DavidLFielding Mar 16, 2026
880f00e
Merge pull request #22 from arXiv/SUBMISSION-24
DavidLFielding Mar 16, 2026
3cfe2fe
Test for non-iterable value bug in index() routine. [SUBMISSION-76] D…
DavidLFielding Mar 17, 2026
e713307
Additional test to improve coverage. [SUBMISSION-76] David
DavidLFielding Mar 17, 2026
4e1f534
Test that must_see works as expected. Additional test to improve cove…
DavidLFielding Mar 17, 2026
487b3ea
Test blocked step.
DavidLFielding Mar 17, 2026
cafc76f
Fix bug with non-iterable value in index() routine. [SUBMISSION-76] D…
DavidLFielding Mar 17, 2026
77102d6
Merge pull request #23 from arXiv/SUBMISSION-76
DavidLFielding Mar 17, 2026
0d93a8c
Add the confirmation value we want to send to the form. [SUBMISSION-2…
DavidLFielding Mar 17, 2026
7d340fe
We are looking for value 'y' when processing the form, not 'true'. Fi…
DavidLFielding Mar 17, 2026
592e151
Merge pull request #25 from arXiv/SUBMISSION-20
DavidLFielding Mar 18, 2026
6405654
Added `get_source_file_info` and `store_source_file`
bdc34 Mar 11, 2026
7e613eb
Moves file events
bdc34 Mar 16, 2026
70383ed
Add file events and refactor FileStore abstract methods
bdc34 Mar 16, 2026
524a0e4
Changes to get test_event_construction.py working
bdc34 Mar 16, 2026
f6407cf
Adds GHA install of pubsub emulator for tests
bdc34 Mar 17, 2026
ab636a0
Ignore pubsub tests
bdc34 Mar 17, 2026
0ee958c
Moves file events
bdc34 Mar 16, 2026
6daf3d9
moves submit_ce/api/domain to submit_ce/domain
bdc34 Mar 17, 2026
b5e9a23
WIP Refactors to move submit_ce.api.domain to submit_ce.domain
bdc34 Mar 17, 2026
6caffda
Removes pytest coverage from always being run from pypoject.tom
bdc34 Mar 17, 2026
0111c65
Fixes tests and linting
bdc34 Mar 17, 2026
be9c7a2
Fixes some submit_ce.api.domain -> submit_ce.domain imports
bdc34 Mar 17, 2026
d9117b4
Updates to UI from mock up v5. [SUBMISSION-18] David
DavidLFielding Mar 18, 2026
3891782
Removes breakpoint stmt
bdc34 Mar 18, 2026
a73d1d4
Removes `Proposal`, not used and not well tested
bdc34 Mar 18, 2026
619215f
Tests for legacy db, Flag and Request
bdc34 Mar 18, 2026
2ba9c56
Moves some test only code out of legacy_implementation/db.py
bdc34 Mar 18, 2026
d4d77f5
Merge pull request #26 from arXiv/bdc34/submission-35
bdc34 Mar 18, 2026
3607eaa
Renames compile service file
bdc34 Mar 18, 2026
2c88b7d
Merge pull request #27 from arXiv/SUBMISSION-18
DavidLFielding Mar 18, 2026
5cab43f
Merge pull request #28 from arXiv/bdc34/compile_service_file_rename
bdc34 Mar 18, 2026
46d3690
Initial use of work page base on version 5 of mockup. [SUBMISSION-79]…
DavidLFielding Mar 18, 2026
1a96b16
Initial license comparison table based on version 5 of mockup. [SUBMI…
DavidLFielding Mar 18, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 42 additions & 0 deletions .github/workflows/python-app.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
# This workflow will install Python dependencies, run tests and lint with a single version of Python
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python

name: Python application

on:
push:
branches: [ "develop" ]
pull_request:
branches: [ "develop" ]

permissions:
contents: read

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3

- name: Install uv
uses: astral-sh/setup-uv@v6

- name: Install protobuf compiler
run: sudo apt-get update && sudo apt-get install -y protobuf-compiler

- name: Install the project
run: uv sync --locked --all-extras --dev

- name: Test with pytest
run: |
# Much of the coverage settings are in pyproject.toml
uv run pytest \
--cov=submit_ce --cov-report=term-missing \
--ignore=submit_ce/implementations/pubsub

- name: Ruff lint check
run: |
uv pip install ruff
uv run ruff check --output-format=github submit_ce
continue-on-error: true
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -246,3 +246,4 @@ legacy.db
\#*\#
.\#*
.aider*
/.agent-shell/
6 changes: 3 additions & 3 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ There is a generated client in `client`. It can be built with `clitools.py`. I'm
starting to wire up the UI to use that.

I took the NG submission-core and submission-ui and put them in the same project
and then refactored the pacakges.
and then refactored the packages.

# 2024-09-24 Start of UI
Brian Caruso
Expand Down Expand Up @@ -73,8 +73,8 @@ without flask. This will need to be merged to arxiv-base master soon.
### Current state
*WORKING*
- creates a submission
- uplaod and unpacks tar.gz
- license, policy and author attestation
- upload and unpacks tar.gz
- submission agreement, and license acceptance
- metadata: title abstract etc
- docker file
- tests
Expand Down
6 changes: 5 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,11 @@ ENV PYTHONFAULTHANDLER=1 \
PATH="/usr/sbin:/usr/local/bin:/usr/bin:/bin"

RUN apt-get -q update && apt-get -y -q upgrade && \
apt-get -y install default-libmysqlclient-dev
apt-get -y install default-libmysqlclient-dev \
cmake \
libprotobuf-dev \
protobuf-compiler


RUN useradd --create-home e-prints
USER e-prints
Expand Down
43 changes: 32 additions & 11 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,26 +6,38 @@ arXiv paper submission system
To run the server, please execute the following from the root directory:

```bash
# setup venv in your preferred way
python --version
# 3.11
# Install gcld3 dependencies needed by arxiv-base metadata checks
sudo apt-get install cmake libprotobuf-dev protobuf-compiler
# mac notes: don't use a version greater than:
# $ brew search protobuf
# protobuf@21 ✔ (deprecated)

# this uses uv instead of pipenv or poetry
# see https://docs.astral.sh/uv/
uv venv
uv sync

# make sqlite dev db
python submit_ce/make_test_db.py bootstrap_db

uv run python submit_ce/make_test_db.py bootstrap_db
# this will give you an Authorization token, save that and use a browser extension
# like modheader to add Authorization=eyJhb...

flask --app submit_ce.ui.factory:create_web_app run
uv run flask --app submit_ce.ui.factory:create_web_app run -p 8000
open http://localhost:8000
# mac notes: pick another port if 5000 used for music:
# uv run flask --app submit_ce.ui.factory:create_web_app run -p 5000

google-chrome localhost:5000
```

On the mac:
```
```bash
# mac notes: don't use a version of protobuf greater than 21:
brew search protobuf
brew install protobuf@21
uv sync
uv run python submit_ce/make_test_db.py bootstrap_db
# this will give you an Authorization token, save that and use a browser extension
# like modheader to add Authorization=eyJhb...
uv run flask --app submit_ce.ui.factory:create_web_app run -p 8000
open http://localhost:8000
```

## Build Docker Image

Expand All @@ -37,6 +49,15 @@ docker push gcr.io/arxiv-development/submit-ce/submit-ce-ui

## Tests

Test setup:
```
sudo apt-get install google-cloud-cli-pubsub-emulator

# mac notes: gcloud components install pubsub-emulator
```

See [emulator instructions](https://cloud.google.com/pubsub/docs/emulator) for other operating systems.

To run the tests:

```bash
Expand Down
7 changes: 2 additions & 5 deletions cicd/cloudbuild-submit-dev-arxiv.yaml
Original file line number Diff line number Diff line change
@@ -1,19 +1,16 @@
steps:

- name: gcr.io/cloud-builders/docker
args:
- build
- '--no-cache'
- '--build-arg'
- 'GIT_COMMIT=${GIT_COMMIT}'
- '--build-arg=GIT_COMMIT=$COMMIT_SHA'
- '-t'
- >-
$_AR_HOSTNAME/$_AR_PROJECT_ID/$_AR_REPOSITORY/$REPO_NAME/$_SERVICE_NAME:$COMMIT_SHA
- .
- '-f'
- Dockerfile
env:
- 'GIT_COMMIT=${GIT_COMMIT}'
waitFor: ['get-git-sha']
id: Build

- name: gcr.io/cloud-builders/docker
Expand Down
5 changes: 1 addition & 4 deletions clitools.py
Original file line number Diff line number Diff line change
@@ -1,15 +1,12 @@
import os
import tempfile
import time
import subprocess
import random
from typing import Optional

import fire

def gen_openapi_json(file:str = "openapi.json"):
"""Generate an openapi.yaml file for the current server code."""
import uvicorn
import requests
port = random.randint(9000, 12000)
command = f"uvicorn submit_ce.api.app:app --host 127.0.0.1 --port {port}".split()
Expand All @@ -34,7 +31,7 @@ def gen_client(gen_spec:bool = True):
"""

if gen_spec:
print(f"* Generating to openapi.json for current code")
print("* Generating to openapi.json for current code")
gen_openapi_json()

command = f"""
Expand Down
3 changes: 3 additions & 0 deletions lint.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
#!/usr/bin/env bash
uv pip install ruff
uv run ruff check --output-format=github submit_ce
116 changes: 82 additions & 34 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name = "submit-ce"
version = "0.1.0"
description = "Paper submission system."
readme = "README.md"
requires-python = ">=3.11"
requires-python = ">=3.11,<3.12"
dependencies = [
"annotated-types==0.7.0",
"anyio==4.5.0",
Expand All @@ -27,8 +27,9 @@ dependencies = [
"email-validator==2.2.0",
"fastapi==0.114.2",
"fastapi-cli==0.0.5",
"fire==0.5.0",
"fire>=0.5",
"flask==3.0.3",
"gcld3>=3.0.13",
"google-cloud-pubsub>=2.29.0",
"greenlet==3.1.0",
"gunicorn>=23.0.0",
Expand Down Expand Up @@ -59,10 +60,10 @@ dependencies = [
"pluggy==1.5.0",
"py==1.11.0",
"pycparser==2.22",
"pydantic==2.9.2",
"pydantic-core==2.23.4",
"pydantic-extra-types==2.9.0",
"pydantic-settings==2.5.2",
"pydantic>=2.9",
"pydantic-core>=2.23.4",
"pydantic-extra-types>=2.9.0",
"pydantic-settings>=2.5.2",
"pydocstyle==3.0.0",
"pygments==2.18.0",
"pyjwt==2.9.0",
Expand Down Expand Up @@ -102,37 +103,12 @@ dependencies = [
"werkzeug==3.0.4",
"wrapt==1.16.0",
"wtforms==3.1.2",
"yarl>=1.23.0",
]

[tool.black]
line-length = 88
exclude = '''
(
/(
\.eggs # exclude a few common directories in the
| \.git # root of the project
| \.hg
| \.mypy_cache
| \.tox
| \.venv
| _build
| buck-out
| build
| dist
)/
)
'''

[tool.isort]
profile = "black"
skip = [
'.eggs', '.git', '.hg', '.mypy_cache', '.nox', '.pants.d', '.tox',
'.venv', '_build', 'buck-out', 'build', 'dist', 'node_modules', 'venv',
]
skip_gitignore = true

[tool.uv.sources]
arxiv-base = { git = "https://github.com/arXiv/arxiv-base.git", rev = "11e1c636f1db900a279d48f28f3a7a37ab6765a7" }
arxiv-base = { git = "https://github.com/arXiv/arxiv-base.git", branch = "develop" }

[dependency-groups]
dev = [
Expand Down Expand Up @@ -188,12 +164,84 @@ dev = [

[tool.coverage.run]
branch = true
relative_files = true
source = ["submit_ce"]
omit = [ "*/tests/*" ]
omit = [
# Ignore tests
"**/conftest.py",
"**/tests/**",
"**/test_*.py",
"**/*_test.py",

# Ignore questionable code or code in the process of reimplementation
# Fastly code not currently used
"submit_ce/fastapi",
#
"submit_ce/implementations/compile/common.py",
"submit_ce/implementations/compile/compile_at_gcp.py", # migrate existing tests or eliminate script
"submit_ce/implementations/file_store/gs_file_store.py",
"submit_ce/implementations/file_store/legacy_file_store.py",
"submit_ce/ui/filters/**", # need rewrite
"submit_ce/ui/compile_sass.py",
"submit_ce/ui/controllers/new/create.py",
"submit_ce/ui/controllers/cross.py", # add later
"submit_ce/ui/controllers/delete.py", # add tests after reimplementation
"submit_ce/ui/controllers/new/process.py",
'submit_ce/ui/controllers/new/review.py', # placeholder
"submit_ce/ui/controllers/new/upload.py", # add tests after reimplementation
"submit_ce/ui/controllers/new/upload_delete.py"

]

[tool.coverage.report]
fail_under = 80
skip_covered = false
omit = [
# Ignore tests
"**/tests/**",
"**/test_*.py",
"**/*_test.py",


# Ignore questionable code or code in the process of reimplementation
# Fastly code not currently used
"submit_ce/fastapi",
"submit_ce/implementations/compile/common.py", # migrate existing tests or eliminate script
"submit_ce/implementations/compile/compile_at_gcp.py", # migrate existing tests or eliminate script
"submit_ce/implementations/file_store/legacy_file_store.py", # add tests
"submit_ce/implementations/file_store/gs_file_store.py", # add tests
"submit_ce/implementations/legacy_implementation/interpolate.py",
"submit_ce/implementations/legacy_implementation/patch.py",
"submit_ce/implementations/legacy_implementation/util.py",
"submit_ce/ui/filters/**", # need rewrite
"submit_ce/ui/compile_sass.py",
"submit_ce/ui/controllers/new/create.py",
"submit_ce/ui/controllers/cross.py",
"submit_ce/ui/controllers/delete.py", # add tests after reimplementation
"submit_ce/ui/controllers/new/process.py",
"submit_ce/ui/controllers/new/review.py", # placeholder
"submit_ce/ui/controllers/new/upload.py", # add tests after reimplementation
"submit_ce/ui/controllers/new/upload_delete.py"
]

exclude_lines = [
"pragma: no cover",
"if TYPE_CHECKING:",
"if __name__ == .__main__.:",
"raise NotImplementedError",
"except ImportError",
]

# Regexes for lines to exclude from consideration
exclude_also = [
# Don't complain about abstract methods, they aren't run:
"@(abc\\.)?abstractmethod",
]


[tool.ruff]
target-version="py311"
exclude = [
".git",
]

18 changes: 10 additions & 8 deletions submit_ce/api/__init__.py
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
"""Core persistence methods for submissions and submission events."""

from .domain import (Event,
Submission,
License,
User, Client, PublicUser, StaffUser, System, ServiceAgent, agent_factory,
HttpClient, InternalClient, user_from_session,
Upload)
from .file_store import SubmissionFileStore, SubmitFile
from .submit import SubmitApi, SubmitFile

from .file_store import SubmissionFileStore
from .submit import SubmitApi
from .compile_service import CompileService

__all__ = [
SubmissionFileStore,
SubmitApi,
CompileService
]
Loading