-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathpyproject.toml
More file actions
159 lines (146 loc) · 4.88 KB
/
Copy pathpyproject.toml
File metadata and controls
159 lines (146 loc) · 4.88 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
[project]
name = "readi-privacy"
dynamic = ["version"]
description = "A collection of funcionality to perform data classification, data privacy risk assessment, and enforce mitigation"
readme = "README.md"
requires-python = ">=3.11,<3.14"
authors = [
{name = "Stefano Braghin", email = "stefanob@ie.ibm.com"},
{name = "Liubov Nedoshivina", email = "liubov.nedoshivina@ibm.com"},
{name = "Anisa Halimi", email = "anisa.halimi@ibm.com"},
{name = "Naoise Holohan", email = "naoise.holohan@ibm.com"},
{name = "Kieran Fraser", email = "kieran.fraser@ibm.com"},
]
license = "Apache-2.0"
classifiers = [
"Development Status :: 4 - Beta",
# Indicate who your project is intended for
"Intended Audience :: Developers",
"Topic :: Software Development :: Build Tools",
# Specify the Python versions you support here.
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"datasets==4.8.5",
"fastparquet==2024.5.0",
"flair>=0.15.1",
"google-re2==1.1.20251105",
"huggingface-hub>=0.34.0,<1.0",
"mecab-python3==1.0.12",
"nltk==3.9.4",
"opt_einsum==3.3.0",
"pandas==2.3.2",
"pip>=26.0.0",
"pyarrow==24.0.0",
"pytz==2024.1",
"safetensors==0.4.4",
"scipy==1.17.1",
"spacy==3.8.7",
"SPARQLWrapper==2.0.0",
"stanza==1.10.1",
"tika==2.6.0",
"torch~=2.6.0",
"transformers==4.57.6",
"unidic-lite==1.0.8",
"urllib3==2.7.0",
"word2number==1.1",
]
[project.optional-dependencies]
rest = [
"fastapi==0.136.1",
"python-dotenv==1.2.2",
]
dev = [
"bandit",
"faker",
# "git+https://github.com/explosion/spacy-models/releases/download/en_core_web_sm-3.7.1/en_core_web_sm-3.7.1-py3-none-any.whl",
# "git+https://github.com/explosion/spacy-models/releases/download/en_core_web_trf-3.7.3/en_core_web_trf-3.7.3-py3-none-any.whl",
# "git+https://github.com/explosion/spacy-models/releases/download/ja_core_news_sm-3.7.0/ja_core_news_sm-3.7.0-py3-none-any.whl",
# "git+https://github.com/explosion/spacy-models/releases/download/xx_ent_wiki_sm-3.7.0/xx_ent_wiki_sm-3.7.0-py3-none-any.whl",
"httpx==0.27.2",
"notebook==7.5.6",
"pytest-faker",
"pytest-mock",
"ruff",
"pytest-asyncio",
"ty",
"prek",
]
[project.urls]
Repository = "https://github.com/IBM/READI.git"
Issues = "https://github.com/IBM/READI/issues"
[build-system]
requires = ["hatchling", "uv-dynamic-versioning"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = [
"src/risk_assessment"
]
artifacts = [
"src/risk_assessment/classification/identifiers/data/*.csv",
"src/risk_assessment/classification/identifiers/data/*.dict",
"src/risk_assessment/classification/identifiers/data/*.txt",
"src/risk_assessment/classification/identifiers/data/french_zipcodes",
"src/risk_assessment/classification/identifiers/data/common/*.csv",
"src/risk_assessment/classification/identifiers/data/common/*.dat",
"src/risk_assessment/classification/identifiers/data/common/*.txt",
"src/risk_assessment/classification/identifiers/data/en/*.csv",
"src/risk_assessment/classification/identifiers/data/gr/*.csv",
"src/risk_assessment/classification/identifiers/data/it/*.csv",
"src/risk_assessment/classification/identifiers/data/it/*.txt",
"src/risk_assessment/classification/identifiers/data/ja/*.csv",
"src/risk_assessment/classification/identifiers/data/uk/*.csv",
"src/risk_assessment/classification/identifiers/data/us/*.csv",
"src/risk_assessment/classification/identifiers/healthcare/data/*.csv",
"src/risk_assessment/classification/identifiers/healthcare/data/en/*.csv",
"src/risk_assessment/classification/identifiers/healthcare/data/en/*.parquet",
]
[tool.hatch.version]
source = "uv-dynamic-versioning"
[tool.uv-dynamic-versioning]
vcs = "git"
style = "pep440"
pattern = "default-unprefixed"
fallback-version = "0.0.0"
tagged-metadata = true
dirty = true
bump = true
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"UP", # pyupgrade
]
ignore = [
"E501", # line too long, handled by formatter
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["F401"] # unused imports in __init__.py
"tests/**/*.py" = ["B", "F401", "F811"] # allow unused imports and redefinitions in tests
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.uv]
cache-keys = [
{ file = "pyproject.toml" },
{ git = { commit = true, tags = true }}
]
[tool.ty.rules]
unresolved-import = "ignore"
[tool.ty.src]
include = ["src", "tests"]
exclude = [".pre-commit-config.yaml"]