-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
131 lines (117 loc) · 3.4 KB
/
Copy pathpyproject.toml
File metadata and controls
131 lines (117 loc) · 3.4 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
[project]
name = "colandr"
version = "1.1.1"
description = "Back-end code for running the colandr app."
readme = { file = "README.md", content-type = "text/markdown" }
license-files = ["LICENSE"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Science/Research",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
]
requires-python = ">= 3.12"
dependencies = [
"alembic~=1.18.0",
"apiflask~=3.0.0",
"arrow~=1.3.0",
"bibtexparser~=1.4.0",
"celery[redis]~=5.5.0",
"click~=8.3.0",
"flask~=3.1.0",
"flask-caching~=2.3.0",
"Flask-Limiter~=4.0.0",
"flask-jwt-extended~=4.7.0",
"flask_mail~=0.10.0",
"flask_migrate~=4.1.0",
"flask_sqlalchemy~=3.1.0",
"fsspec[gcs]~=2025.0",
"ftfy~=6.3.0",
"gunicorn~=23.0",
"jinja2~=3.1.0",
"joblib~=1.5.0",
"lingua-language-detector~=2.2.0",
"markupsafe~=3.0.0",
"marshmallow~=4.1.0",
"numpy~=2.4.1",
"psycopg[binary,pool]~=3.3.0",
"pymupdf~=1.26.0",
"python-dateutil~=2.9.0",
"python-dotenv~=1.2.0",
"rispy~=0.10.0",
"river~=0.23.0",
"scikit-learn~=1.8.0",
"sqlalchemy~=2.0.0",
"spacy~=3.8.0",
"splink~=4.0.12",
"webargs~=8.7.0",
"werkzeug",
"en_core_web_md@https://github.com/explosion/spacy-models/releases/download/en_core_web_md-3.8.0/en_core_web_md-3.8.0-py3-none-any.whl",
"es_core_news_md@https://github.com/explosion/spacy-models/releases/download/es_core_news_md-3.8.0/es_core_news_md-3.8.0-py3-none-any.whl",
"fr_core_news_md@https://github.com/explosion/spacy-models/releases/download/fr_core_news_md-3.8.0/fr_core_news_md-3.8.0-py3-none-any.whl",
"ja_core_news_md@https://github.com/explosion/spacy-models/releases/download/ja_core_news_md-3.8.0/ja_core_news_md-3.8.0-py3-none-any.whl",
"zh_core_web_md@https://github.com/explosion/spacy-models/releases/download/zh_core_web_md-3.8.0/zh_core_web_md-3.8.0-py3-none-any.whl",
]
[project.urls]
Homepage = "https://www.colandrapp.com"
Repository = "https://github.com/datakind/permanent-colandr-back"
[dependency-groups]
dev = [
"httpx2~=2.3.0",
"pytest~=9.0",
"pytest-postgresql~=8.1.0",
"SQLAlchemy-Utils~=0.42.0",
# TODO: update ty once officially out of beta
"ty~=0.0.46",
"ruff~=0.15.0",
]
[build-system]
requires = ["uv_build>=0.8.0,<0.12.0"]
build-backend = "uv_build"
[tool.uv]
required-version = ">=0.8.0,<0.12.0"
[tool.uv.build-backend]
module-name = "colandr"
module-root = ""
[tool.pytest]
minversion = "9.0"
addopts = ["--verbose"]
testpaths = ["tests"]
[tool.ruff]
line-length = 88
indent-width = 4
target-version = "py312"
src = ["colandr"]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ruff.lint]
select = [
"E4", # pycodestyle
"E7",
"E9",
"F", # pyflakes
"I", # isort
"PLE", # pylint
"PLW",
"NPY201", # numpy v2.0
]
# ignore line-length violations, None comparisons, unused imports, overwritten assignment
ignore = ["E501", "E711", "F401", "PLW2901"]
[tool.ruff.lint.isort]
lines-after-imports = 2
known-first-party = ["colandr"]
known-third-party = ["alembic"]
[tool.ty.environment]
root = ["./colandr"]
[tool.ty.rules]
# ty appears to be struggling with relative imports :shrug:
unresolved-import = "ignore"
[tool.ty.src]
exclude = ["migrations", "notebooks", "tests"]
[tool.ty.terminal]
output-format = "full"