-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
83 lines (73 loc) · 2.78 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
# configuration approach followed:
# - whenever possible, prefer pyproject.toml
# - for configurations insufficiently supported by pyproject.toml, use setup.cfg instead
# - setup.py discouraged; minimal stub included only for compatibility with legacy tools
[build-system]
requires = ["setuptools>=45", "setuptools_scm[toml]>=6.2"]
build-backend = "setuptools.build_meta"
[project]
name = "gene_benchmark"
description = "Gene embedding benchmarks"
authors = [{ name = "Yoav Kan-Tor", email = "yoav.kan-tor@ibm.com" },
{ name = "Eden Zohar", email = "Eden.Zohar@ibm.com" },
{ name = "Matan Ninio", email = "matann@il.ibm.com" },
{ name = "Michael Danziger", email = "Michael.Danziger@ibm.com" },
]
version = "0.0.1"
readme = "README.md"
# due to how PEP 440 defines version matching, prefer [incl, excl) definitions like below:
requires-python = ">=3.10, <3.13"
dependencies = [
"pandas>=2.1.3",
"mygene",
"sentence_transformers",
"scikit-learn",
"click",
"einops",
"tqdm"
]
[project.optional-dependencies]
test = ["pytest", "pytest-cov"]
[project.urls]
repository = "https://github.ibm.com/BiomedSciAI/gene-benchmark"
[tool.setuptools.packages]
find = {}
[tool.ruff]
target-version = "py312"
extend-include = ["*.ipynb"]
# Activate all the rules that are pyupgrade-related
lint.select = [
"UP", # pyupgrade
"D", # pydocstyle
"PT", # pytest style checking
"C4", # comprehensions style checking
"PD", # pandas style checking
"F", # pyflakes: is-literal
"W605", # pycodestyle: invalid-escape-sequence
"I", # isort
]
# On top of the Google convention, disable `D417`, which requires
# documentation for every function parameter.
lint.ignore = [
"D100", # pydocstyle: Missing module docstring
"D101", # pydocstyle: Missing module-level docstring
"D102", # pydocstyle: Missing docstring in public module
"D103", # pydocstyle: Missing class docstring
"D105", # pydocstyle: Missing docstring in magic method
"D107", # pydocstyle: Missing parameter descriptions in the docstring
"D203", # pydocstyle: 1 blank line required before class docstring
"D205", # pydocstyle: 1 blank line required between summary line and description
"D212", # pydocstyle: Multi-line docstring summary should start at the first line
"D401", # pydocstyle: First line should be in imperative mood
"D417", # pydocstyle: Missing argument descriptions in the docstring
"PD011", # pandas do not use .values (false positives causing bugs in torch code)
"PD015", # Use .merge method instead of pd.merge function. They have equivalent functionality.
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["I001"]
"tests/**/*.py" = ["D"]
"**/test_*.py" = ["D"]
[tool.coverage.report]
exclude_lines = ["pragma: no cover", "abc.abstractmethod", "@abstract"]
[tool.coverage.run]
omit = ["gene_benchmark/tests/*"]