-
Notifications
You must be signed in to change notification settings - Fork 2
/
pyproject.toml
126 lines (112 loc) · 2.95 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
118
119
120
121
122
123
124
125
126
[tool.edsnlp]
# Suggestion: choose a name that mixes both the architecture (mlg_norm) and the
# dataset on which the model was trained (mostly french synonyms)
# This field will be read by script/package.py
model_name = "mlg_norm_fre"
[tool.poetry]
name = "mlg_norm"
version = "0.1.0"
description = ""
authors = ["Perceval Wajsburt <[email protected]>", "Xavier Tannier <[email protected]", "Arnaud Sarfati <[email protected]>"]
[tool.poetry.dependencies]
# /!\ Do not hesitate to adjust python's version to fit your training and deployment environments
python = ">3.7.6,<4.0"
edsnlp = { version = ">=0.11.0", extras = ["ml"] }
sentencepiece = "^0.1.96"
[tool.poetry.group.dev.dependencies]
dvc = { version = "^2.37.0", markers = "python_version >= '3.8'" }
pre-commit = "^2.18.1"
rich-logger = "^0.3.0"
scipy = [
{ version = ">=1.7.2", markers = "sys_platform == 'arm64' and python_version < '3.8'" },
{ version = ">=1.9.2", markers = "sys_platform == 'arm64' and python_version >= '3.8'" },
{ version = "*", markers = "sys_platform != 'arm64'" }
]
polars = [
{ version = "*", markers = "python_version >= '3.8'" },
{ version = "*", markers = "python_version < '3.8'" }
]
torch = [
{ version = ">=2.0.0", markers = "python_version >= '3.8'" },
{ version = "*", markers = "python_version < '3.8'" }
]
[tool.poetry.group.docs]
optional = true
[tool.poetry.group.docs.dependencies]
[tool.interrogate]
ignore-init-method = true
ignore-init-module = true
ignore-magic = false
ignore-semiprivate = false
ignore-private = false
ignore-property-decorators = false
ignore-module = true
ignore-nested-functions = false
ignore-nested-classes = true
ignore-setters = false
fail-under = 10
exclude = ["docs", "build", "tests"]
verbose = 0
quiet = false
whitelist-regex = []
color = true
omit-covered-files = false
[tool.pytest.ini_options]
testpaths = [
"tests",
]
[tool.mypy]
plugins = "pydantic.mypy"
[tool.ruff]
fix = true
extend-exclude = [
".git",
"__pycache__",
"__init__.py",
".mypy_cache",
".pytest_cache",
".venv",
"build",
]
line-length = 88
select = [
"E",
"F",
"W",
"I001"
]
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = "parents"
[tool.ruff.extend-per-file-ignores]
"__init__.py" = ["F401"]
[tool.ruff.isort]
known-first-party = ["mlg_norm"]
known-third-party = ["build"]
order-by-type = true
[tool.coverage.report]
include = [
"ml_norm/*",
"scripts/*",
]
omit = [
"tests/*",
]
exclude_lines = [
"def __repr__",
"if __name__ == .__main__.:",
"@overload",
"pragma: no cover",
"raise .*Error",
"raise .*Exception",
"warn\\(",
"if __name__ == .__main__.:",
"if TYPE_CHECKING:",
"class .*\\bProtocol\\):",
"@(abc\\.)?abstractmethod",
"Span.set_extension.*",
"Doc.set_extension.*",
"Token.set_extension.*",
]
[build-system]
requires = ["poetry-core>=1.0.0", "pypandoc<1.8.0"]
build-backend = "poetry.core.masonry.api"