-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
232 lines (221 loc) · 6 KB
/
Copy pathpyproject.toml
File metadata and controls
232 lines (221 loc) · 6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
[project]
name = "submit-ce"
version = "0.1.0"
description = "Paper submission system."
readme = "README.md"
requires-python = ">=3.11,<3.12"
dependencies = [
"annotated-types==0.7.0",
"anyio==4.5.0",
"arxiv-base",
"arxiv-tex2pdf-tools",
"astroid==1.6.6",
"attrs==24.2.0",
"backports-datetime-fromisoformat==2.0.2",
"bleach==6.1.0",
"blinker==1.8.2",
"certifi==2024.8.30",
"cffi==1.17.1",
"charset-normalizer==3.3.2",
"click==8.1.7",
"coverage==7.6.1",
"coveralls==1.8.0",
"cryptography==43.0.1",
"decorator==5.1.1",
"dnspython==2.6.1",
"docker==7.1.0",
"docopt==0.6.2",
"email-validator==2.2.0",
"fastapi==0.114.2",
"fastapi-cli==0.0.5",
"fire>=0.5",
"flask==3.0.3",
"gcld3>=3.0.13",
"google-cloud-pubsub>=2.29.0",
"google-cloud-secret-manager>=2.20.0",
"greenlet==3.1.0",
"gunicorn>=23.0.0",
"h11==0.14.0",
"httpcore==1.0.5",
"httptools==0.6.1",
"httpx==0.27.2",
"idna==3.10",
"iniconfig==2.0.0",
"isort==5.13.2",
"itsdangerous==2.2.0",
"jinja2==3.1.4",
"jsonschema==4.23.0",
"jsonschema-path==0.3.3",
"jsonschema-specifications==2023.12.1",
"lazy-object-proxy==1.10.0",
"libsass>=0.23.0",
"markdown-it-py==3.0.0",
"markupsafe==2.1.5",
"mccabe==0.7.0",
"mdurl==0.1.2",
"mimesis==18.0.0",
"mypy==1.11.2",
"mypy-extensions==1.0.0",
"openapi-schema-validator==0.6.2",
"openapi-spec-validator==0.7.1",
"pathable==0.4.3",
"pluggy==1.5.0",
"py==1.11.0",
"pycparser==2.22",
"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",
"pylint==1.9.4",
"pytest==8.3.3",
"pytest-cov==5.0.0",
"python-dateutil==2.9.0.post0",
"python-dotenv==1.0.1",
"python-multipart==0.0.9",
"pytz==2018.7",
"pyyaml==6.0.2",
"referencing==0.35.1",
"reportlab>=4.2.0",
"requests==2.32.3",
"requests-toolbelt==1.0.0",
"retry==0.9.2",
"rfc3339-validator==0.1.4",
"rich==13.8.1",
"rpds-py==0.20.0",
"semver==3.0.2",
"shellingham==1.5.4",
"sniffio==1.3.1",
"snowballstemmer==2.2.0",
"sqlalchemy==2.0.35",
"starlette==0.38.5",
"termcolor==2.4.0",
"toml>=0.10.2",
"tomli-w>=1.2.0",
"typer==0.12.5",
"typing-extensions==4.12.2",
"ujson==5.10.0",
"unidecode==1.3.8",
"urllib3==2.2.3",
"uvicorn==0.30.6",
"uvloop==0.20.0",
"validators==0.34.0",
"watchfiles==0.24.0",
"webencodings==0.5.1",
"websockets==13.0.1",
"werkzeug==3.0.4",
"wrapt==1.16.0",
"wtforms==3.1.2",
"yarl>=1.23.0",
]
[tool.uv.sources]
arxiv-base = { git = "https://github.com/arXiv/arxiv-base.git", branch = "SUBMISSION-80-LicenseDataUpdate" }
arxiv-tex2pdf-tools = { git = "https://github.com/arXiv/submission-tools.git", subdirectory = "tex2pdf-tools", branch = "master" }
[dependency-groups]
dev = [
"astroid==1.6.6",
"attrs==24.2.0",
"certifi==2024.8.30",
"charset-normalizer==3.3.2",
"coverage==7.6.1",
"coveralls==1.8.0",
"docker==7.1.0",
"docopt==0.6.2",
"epc>=0.0.5",
"google-cloud-pubsub>=2.29.0",
"google-cloud-secret-manager>=2.20.0",
"hypothesis>=6.131.21",
"hypothesis-jsonschema>=0.23.1",
"idna==3.10",
"iniconfig==2.0.0",
"isort==5.13.2",
"jsonschema==4.23.0",
"jsonschema-path==0.3.3",
"jsonschema-specifications==2023.12.1",
"lazy-object-proxy==1.10.0",
"mccabe==0.7.0",
"mimesis==18.0.0",
"openapi-schema-validator==0.6.2",
"openapi-spec-validator==0.7.1",
"orjson>=3.10.18",
"packaging==24.1",
"paramiko>=3.5.1",
"pathable==0.4.3",
"pluggy==1.5.0",
"polyfactory>=2.22.0",
"pydocstyle==3.0.0",
"pylint==1.9.4",
"pytest==8.3.3",
"pytest-cov==5.0.0",
"pytest-mock>=3.14.0",
"pytest-xprocess>=1.0.2",
"pyyaml==6.0.2",
"rapidfuzz>=3.13.0",
"referencing==0.35.1",
"requests==2.32.3",
"rfc3339-validator==0.1.4",
"rpds-py==0.20.0",
"setuptools>=70.3.0",
"sexpdata>=1.0.2",
"six==1.16.0",
"snowballstemmer==2.2.0",
"urllib3==2.2.3",
"watchdog>=6.0.0",
"wrapt==1.16.0",
]
[tool.coverage.run]
branch = true
relative_files = true
source = ["submit_ce"]
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/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",
]
[tool.coverage.report]
fail_under = 70
skip_covered = false
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",
]
[tool.pytest.ini_options]
# Suppress deprecation warnings we cannot fix from this repo. Each filter is
# scoped to a specific upstream module so deprecations originating in our own
# code still surface.
filterwarnings = [
# arxiv-base still uses Pydantic v1 idioms (`.dict()`, `parse_obj`).
"ignore::pydantic.PydanticDeprecatedSince20:arxiv.auth.domain",
# arxiv-base CSRF helper deprecates itself on import + first use; we have
# ~20 in-repo importers, so removing the import path is out of scope here.
# (pytest filter syntax splits on ':' so we match by category+module only.)
"ignore::DeprecationWarning:arxiv.forms.csrf",
# `fire` (transitive dep) imports the removed-in-3.13 stdlib `pipes` module.
"ignore::DeprecationWarning:fire.core",
]