generated from MinishLab/watertemplate
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
90 lines (80 loc) · 1.69 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
[project]
name = "evaluation"
description = "Evaluation of word embeddings"
readme = "README.md"
version = "0.1.0"
requires-python = ">=3.10"
dependencies = [
"autofj",
"datasets",
"huggingface-hub",
"mteb==1.14.15",
"numpy",
"pandas",
"pytorch_lightning",
"reach",
"scikit-learn",
"scipy",
"seaborn",
"sentence_transformers",
"torch",
"plotnine",
]
[project.optional-dependencies]
dev = [
"black",
"ipython",
"mypy",
"pre-commit",
"pytest",
"pytest-coverage",
"ruff",
]
[build-system]
requires = ["setuptools>=64", "setuptools_scm>=8"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
packages = ["evaluation"]
include-package-data = true
[tool.setuptools.package-data]
"evaluation.wordsim" = ["data/*"]
[tool.ruff]
exclude = [".venv/"]
line-length = 120
target-version = "py310"
[tool.ruff.lint]
select = [
# Annotations: Enforce type annotations
"ANN",
# Complexity: Enforce a maximum cyclomatic complexity
"C90",
# Pydocstyle: Enforce docstrings
"D",
# Remove unused imports
"F401",
# Isort: Enforce import order
"I",
# Numpy: Enforce numpy style
"NPY",
# Print: Forbid print statements
"T20",
]
ignore = [
# Allow self and cls to be untyped, and allow Any type
"ANN101", "ANN102", "ANN401",
# Pydocstyle ignores
"D100", "D101", "D104", "D203", "D204", "D212", "D401",
# Allow use of f-strings in logging
"G004"
]
[tool.pydoclint]
style = "sphinx"
exclude = "test_"
allow-init-docstring = true
arg-type-hints-in-docstring = false
check-return-types = false
require-return-section-when-returning-nothing = false
[tool.mypy]
python_version = "3.10"
warn_unused_configs = true
ignore_missing_imports = true