File size: 1,852 Bytes
424c5d9
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
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
[build-system]
requires = ["setuptools>=84.0.0"]
build-backend = "setuptools.build_meta"

[project]
name = "cole"
version = "0.1.0"
description = "COLE — Quebec French NLU Benchmark"
requires-python = ">=3.10"

# Les dependances d'execution restent declarees dans cole/requirements.txt :
# l'installation du package expose le code importable (ex. cole.metrics) sans imposer
# la lourde pile ML (torch, transformers...) aux consommateurs qui n'en ont pas besoin.

[tool.setuptools.packages.find]
include = ["cole*"]

[tool.black]
line-length = 88
target-version = ["py312"]

[tool.pylint.master]
extension-pkg-whitelist = "pydantic"
fail-under = 10.0
jobs = 1
py-version = "3.12"

[tool.pylint."messages control"]
disable = [
    "raw-checker-failed",
    "bad-inline-option",
    "locally-disabled",
    "file-ignored",
    "suppressed-message",
    "useless-suppression",
    "deprecated-pragma",
    "use-symbolic-message-instead",
    "missing-docstring",
    "invalid-name",
    "too-few-public-methods",
    "attribute-defined-outside-init",
    "too-many-instance-attributes",
    "cyclic-import",
    "duplicate-code",
    "no-member",
    "too-many-positional-arguments",
    "too-many-locals",
    "too-many-arguments",
    "broad-exception-caught",
    "import-error",
    "no-name-in-module",
    "bare-except",
    "eval-used",
    "too-many-branches",
    "too-many-boolean-expressions",
    "too-many-statements",
    "fixme",
]

[tool.pylint.format]
max-line-length = 120

[tool.pylint.variables]
ignored-argument-names = "_.*|^ignored_|^unused_"

[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "--cov=cole --cov-report=term-missing"

[tool.coverage.run]
source = ["cole"]
omit = [
    "cole/evaluation/*",
    "cole/language_model/*",
    "cole/predictions/*",
]

[tool.coverage.report]
fail_under = 70
show_missing = true