You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Makes it so tests and code work without gcld3 and protobuff-compile. Makes
gcld3 extra in pyproject.toml. Makes tests that use gcld3 pytest.skip if they
cannot do imports.
At some point gcld3 was added to the requirements but it needs protobuff-compile
which cannot be installed with pip. This caused problems with users of
arxiv-base that didn't need gcld3.
metadata.py needs gcld3.
('C. Sivaram (1) and Kenath Arun (2) ((1) Indian Institute of Astrophysics, Bangalore, (2) Christ Junior College, Bangalore)', None), # should not flag physics in astrophys as inappropriate
@@ -158,7 +165,7 @@ def test_titles(test):
158
165
('Jaganathan SR', None),
159
166
('Sylvie ROUX', None), # ?
160
167
('S ROUX', None),
161
-
('SYLVIE ROUX',
168
+
('SYLVIE ROUX',
162
169
(WARN, ["Author name is in all caps"])),
163
170
('Sylvie roux', None), # ?
164
171
('sylvie roux',
@@ -216,7 +223,7 @@ def test_titles(test):
216
223
('Adrienne Bloss, Audie Cornish, and ChatGPT',
217
224
(WARN, [
218
225
"Authors: lone surname",
219
-
"Authors: name should not contain chatgpt",
226
+
"Authors: name should not contain chatgpt",
220
227
])),
221
228
# ('Paul R.~Archer', "Authors: tilde as hard space?"),
222
229
# "Authors: includes semicolon not in affiliation, comma intended?"
@@ -230,7 +237,7 @@ def test_titles(test):
230
237
('T. Zaj\\k{a}c', None),
231
238
('(T. Zaj\\k{a}c',
232
239
(WARN, ["Authors: unbalanced brackets"])),
233
-
]
240
+
]
234
241
235
242
@pytest.mark.parametrize("test", AUTHORS_TESTS)
236
243
deftest_authors(test):
@@ -255,7 +262,7 @@ def test_authors(test):
255
262
('Some words\\\\\\\\ more words',
256
263
(WARN, ['Abstract: contains TeX line break'])),
257
264
# (MathJax now handles "$3$-coloring")
258
-
('Work \\cite{8} established a connection between the edge $3$-coloring', None),
265
+
('Work \\cite{8} established a connection between the edge $3$-coloring', None),
259
266
# Not yet:
260
267
# ('he abstract is sometimes missing a first letter, warn if starts with lower',
261
268
# (WARN, ['Abstract: starts with lower case']
@@ -271,15 +278,15 @@ def test_authors(test):
271
278
'Abstract: contains \\texttt',
272
279
'Abstract: contains unnecessary escape: \\#',
273
280
'Abstract: contains unnecessary escape: \\%',
274
-
])),
281
+
])),
275
282
('This ] is bad',
276
283
(WARN, ['Abstract: unbalanced brackets'])),
277
284
('Учењето со засилување е разноврсна рамка за учење за решавање на сложени задачи од реалниот свет. Конечно, разговараме за отворените предизвици на техниките за анализа за RL алгоритми.',
278
285
(WARN, ['Abstract does not appear to be English'])),
279
286
('El aprendizaje por refuerzo es un marco versátil para aprender a resolver tareas complejas del mundo real. Sin embargo, las influencias en el rendimiento de aprendizaje de los algoritmos de aprendizaje por refuerzo suelen comprenderse mal en la práctica.',
280
287
(WARN, ['Abstract does not appear to be English'])),
281
288
]
282
-
289
+
283
290
@pytest.mark.parametrize("test", ABSTRACT_TESTS)
284
291
deftest_abstracts(test):
285
292
(abs, expected_result) =test
@@ -292,7 +299,7 @@ def test_abstracts(test):
292
299
293
300
COMMENTS_TESTS= [
294
301
('',None),
295
-
('A comment',None),
302
+
('A comment',None),
296
303
('15 pages, 6 figures',None),
297
304
# ('15 pages, 6 figures,',(HOLD,['Comments: ends with punctuation (,)'])],
298
305
# ['15 pages, 6 figures:',(HOLD,['Comments: ends with punctuation (:)'])],
0 commit comments