-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
117 lines (102 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
116
117
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.poetry]
name = "cpr_sdk"
# This version is a placeholder that is overwritten during release.
# The placeholder is replaced by the value from the cpr_sdk package itself.
version = "0.0.0"
description = ""
authors = ["CPR Tech <tech@climatepolicyradar.org>"]
readme = "README.md"
packages = [{ include = "cpr_sdk", from = "src" }]
classifiers = [
"Intended Audience :: Science/Research",
"Programming Language :: Python :: 3",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
license = "LICENSE"
[project.urls]
Homepage = "https://github.com/climatepolicyradar/cpr-sdk"
Repository = "https://github.com/climatepolicyradar/cpr-sdk"
Changelog = "https://github.com/climatepolicyradar/cpr-sdk/blob/main/CHANGELOG.md"
[tool.poetry.dependencies]
python = "^3.10"
pydantic = "^2.9.2"
boto3 = "^1.35.26"
tqdm = "^4.66.5"
aws-error-utils = "^2.7.0"
pandas = "^2.2.3"
datasets = "^3.0.0"
langdetect = "^1.0.9"
deprecation = "^2.1.0"
numpy = "<2"
pyvespa = { version = "^0.45.0", optional = true }
pyyaml = { version = "^6.0.2", optional = true }
spacy = { version = "^3.5.1", optional = true }
poetry = "^1.8.3"
flatten-dict = "^0.4.2"
rich = "^13.8.1"
[tool.poetry.extras]
vespa = ["pyvespa", "pyyaml", "sentence-transformers", "torch"]
spacy = ["spacy"]
[tool.poetry.group.dev]
optional = true
[tool.poetry.group.dev.dependencies]
pre-commit = "^3.6.2"
pyright = "^1.1.382"
pytest = "^8.3.3"
black = "^24.2.0"
moto = { extras = ["s3"], version = "^5.0.15" }
pytest-dotenv = "^0.5.2"
[tool.poetry.group.cli]
optional = true
[tool.poetry.group.cli.dependencies]
typer = "^0.12.5"
[tool.pytest.ini_options]
addopts = "-p no:cacheprovider"
env_files = """
.env.test
.env
"""
markers = ["vespa"]
[tool.black-jupyter]
line-length = 88
target-version = ["py39"]
[tool.ruff]
select = ["E", "F", "D"]
# Docstring Ignores:
# D100 - Missing docstring in public module
# D103 - Missing docstring in public function
# D104 - Missing docstring in public package
# D107 - Missing docstring in __init__
# D202 - No blank lines allowed after function docstring
# D203 - 1 blank line required before class docstring
# D213 - Multi-line docstring summary should start at the first line
# D400 - First line should end with a period
# D401 - First line should be in imperative mood
# D406 - Section name should end with a newline
# D407 - Missing dashed underline after section
# D413 - Missing blank line after last section
# D415 - First line should end with a period, question mark, or exclamation point
ignore = [
"D100",
"D103",
"D104",
"D107",
"D202",
"D203",
"D212",
"D400",
"D401",
"D406",
"D407",
"D413",
"D415",
"E501",
]
line-length = 88
# Ignore `E402` (import violations) in all `__init__.py` files, and in `path/to/file.py`.
[tool.ruff.per-file-ignores]
"__init__.py" = ["F401"]
"tests/*" = ["E501"]