-
Notifications
You must be signed in to change notification settings - Fork 14
/
Copy pathpyproject.toml
115 lines (110 loc) · 2.88 KB
/
pyproject.toml
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
[build-system]
requires = ["setuptools==71.1.0"]
build-backend = "setuptools.build_meta"
[project]
name = "scholar"
description = "Internet Archive Scholar"
dependencies = [
"setuptools==71.1.0",
"babel==2.12.1",
"beautifulsoup4 == 4.11.2",
"citeproc-py == 0.6.0",
"citeproc-py-styles == 0.1.3",
"confluent-kafka == 2.0.2",
"dynaconf == 3.2.3",
# <7.14 pin is because of elasticsearch.exceptions.UnsupportedProductError
"elasticsearch == 7.13.4",
"elasticsearch-dsl == 7.4.1",
"fastapi==0.109.2",
"fastapi-rss==0.2.2",
"fatcat-openapi-client==0.5.0",
"ftfy==6.1.1",
"fuzzycat==0.1.21",
"grobid-tei-xml==0.1.3",
"gunicorn==20.1.0",
"httptools==0.6.1",
"internetarchive==3.3.0",
"jinja2==3.1.3",
"lxml==4.9.3",
"minio==6.0.2",
"pycountry==19.8.18",
"pydantic==1.10.16",
"pylatexenc==2.10",
"pygal==3.0.4",
"python-stdnum==1.18",
# might need this...pytz==2022.7.1; python_version < '3.9'
"requests==2.31.0",
"sentry-sdk==1.17.0",
"starlette-prometheus==0.9.0",
"starlette-wtf==0.4.3",
"tldextract==5.1.1",
"toml==0.10.2",
"uvicorn==0.21.1",
"uvloop==0.18.0",
"httpx==0.23.3",
]
version = "0.2.6"
authors = [
{name = "Nate Smith", email = "[email protected]"},
{name = "Martin Czygan", email = "[email protected]"},
{name = "Bryan Newbold"},
]
readme = "README.md"
license = {text = "AGPL3"}
[project.optional-dependencies]
ci = [
"mypy==1.1.1",
"typing-extensions==4.8.0",
"pytest==8.2.0",
"pytest-cov==5.0.0",
"pytest-mock==3.14.0",
"responses==0.23.1",
"types-babel==2.11.0.11",
"types-beautifulsoup4==4.11.6.7",
"types-requests==2.28.11.15",
"types-toml==0.10.8.20240310",
"types-python-dateutil==2.9.0.20240316",
"ruff==0.2.1",
]
dev = [
"ipython==8.11.0",
"mypy==1.1.1",
"typing-extensions==4.8.0",
"pytest==8.2.0",
"pytest-cov==5.0.0",
"pytest-mock==3.14.0",
"responses==0.23.1",
"types-babel==2.11.0.11",
"types-beautifulsoup4==4.11.6.7",
"types-requests==2.28.11.15",
"types-toml==0.10.8.20240310",
"types-python-dateutil==2.9.0.20240316",
"pip-tools==7.3.0",
"ruff==0.2.1",
"pip-audit==2.7.0",
]
[tool.ruff]
target-version="py311"
# I set line-length but it's not being enforced because I became infuriated at
# the inability to disable for commented lines and string literals. I refuse to
# painstakingly noqa all of those.
line-length=99
exclude = [
".git",
"__pycache__",
".venv",
".pytest_cache",
".mypy_cache",
".ruff_cache",
]
[tool.ruff.lint]
select = ["C","E","F","W","ANN"]
# ANN003 is annotation on, eg, **kwargs
# ANN101 is annotation on 'self'
# ANN204 is annotation on '__init__()'
# ANN401 is 'Any' in type annotations
# E265,E266 are restrictions on comments ('#')
ignore = ["C901", "ANN003", "ANN101", "ANN204", "ANN401", "E265", "E266", "E501"]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["E402", "F401"]
"**/{tests,docs,tools}/*" = ["E402", "ANN201", "ANN001"]