Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
140 lines (123 loc) · 2.97 KB
/
Copy pathpyproject.toml
File metadata and controls
140 lines (123 loc) · 2.97 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
[build-system]
requires = ["hatchling>=1.25.0"]
build-backend = "hatchling.build"
[project]
name = "corpuslab-eda"
version = "0.2.0"
description = "EDA and curation platform for Portuguese corpora used in LLM pretraining."
readme = "README.md"
requires-python = ">=3.11"
license = { text = "MIT" }
authors = [{ name = "Corpuslab Research Team", email = "research@example.org" }]
keywords = ["eda", "nlp", "portuguese", "llm", "corpus", "data-curation"]
classifiers = [
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
]
dependencies = [
"pydantic>=2.8,<3",
"pydantic-settings>=2.4,<3",
"pyyaml>=6.0.2,<7",
"structlog>=24.4,<26",
"polars>=1.0,<2",
"pyarrow>=17,<22",
"orjson>=3.10,<4",
"langdetect>=1.0.9,<2",
"typer>=0.12,<1",
"rich>=13.7,<15",
"platformdirs>=4.5.1",
"fasttext-wheel>=0.9.2",
"numpy>=2,<3",
"xxhash>=3.5,<4",
]
[project.scripts]
corpuslab = "corpuslab.cli:main"
[dependency-groups]
dev = [
"ruff>=0.8,<1",
"mypy>=1.11,<2",
"pre-commit>=4,<5",
"ipython>=8.26,<9",
"types-PyYAML>=6.0.12",
]
test = [
"pytest>=8.3,<9",
"pytest-cov>=5,<7",
"pytest-mock>=3.14,<4",
"faker>=28,<40",
]
docs = [
"mkdocs>=1.6,<2",
"mkdocs-material>=9.5,<10",
"mkdocstrings[python]>=0.26,<1",
]
viz = [
"plotly>=5.24,<7",
"altair>=5.4,<6",
"streamlit>=1.38,<2",
]
kenlm = [
"kenlm>=0.2.0",
]
perf = [
"pyahocorasick>=2.1,<3",
]
[tool.hatch.build.targets.wheel]
packages = ["src/corpuslab"]
[tool.hatch.build.targets.sdist]
include = ["src/corpuslab", "tests", "configs", "docs", "README.md", "pyproject.toml"]
[tool.uv]
default-groups = ["dev", "test"]
[tool.ruff]
line-length = 88
target-version = "py311"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "N", "UP", "B", "A", "SIM", "TCH", "RUF", "PT"]
ignore = []
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
[tool.mypy]
python_version = "3.11"
plugins = ["pydantic.mypy"]
warn_return_any = true
warn_unused_configs = true
warn_unused_ignores = true
disallow_untyped_defs = true
disallow_incomplete_defs = true
no_implicit_optional = true
strict_equality = true
pretty = true
namespace_packages = true
mypy_path = "src"
[[tool.mypy.overrides]]
module = ["pyarrow", "pyarrow.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["fasttext", "fasttext.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["langdetect", "langdetect.*"]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = ["kenlm", "kenlm.*"]
ignore_missing_imports = true
[tool.pytest.ini_options]
minversion = "8.0"
testpaths = ["tests"]
addopts = "-ra -q -m \"not network\""
markers = [
"slow: marks tests as slow (run with --run-slow)",
"network: marks tests that require internet access",
]
[tool.coverage.run]
branch = true
source = ["corpuslab"]
[tool.coverage.report]
show_missing = true
skip_covered = false
fail_under = 80