-
Notifications
You must be signed in to change notification settings - Fork 66
/
pyproject.toml
113 lines (104 loc) · 2.93 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
[build-system]
requires = [
"setuptools>=54.0.0",
"wheel",
"Cython>=0.29.0,<3",
"numpy>=1.19.5",
"scipy>=1.2.1",
"tomli",
]
build-backend = "setuptools.build_meta"
[project]
name = "LibRecommender"
version = "1.5.1"
description = "Versatile end-to-end recommender system."
authors = [
{ name = "massquantity", email = "jinxin_madie@163.com" },
]
readme = "README.md"
license = { text = "MIT" }
requires-python = ">=3.6"
keywords = ["Collaborative Filtering", "Recommender System"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Intended Audience :: Education",
"Intended Audience :: Science/Research",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Cython",
"Programming Language :: Rust",
]
dependencies = [
"gensim >= 4.0.0",
"tqdm",
]
[project.urls]
documentation = "https://librecommender.readthedocs.io/en/latest/"
repository = "https://github.com/massquantity/LibRecommender"
[tool.setuptools]
include-package-data = true
[tool.setuptools.packages.find]
where = ["."]
include = ["libreco*", "libserving*"]
namespaces = false
[tool.black]
line-length = 88
target-version = ["py36", "py38", "py310"]
[tool.isort]
atomic = true
default_section = "THIRDPARTY"
extend_skip_glob = ["*.pyx"]
force_grid_wrap = 0
include_trailing_comma = true
known_first_party = ["libreco", "libserving"]
known_third_party = "pytest"
line_length = 88
multi_line_output = 3
profile = "black"
reverse_relative = true
[tool.pydocstyle]
add-ignore = ["D102"]
add-select = ["D212", "D402", "D415", "D416", "D417"]
convention = "numpy"
[tool.pytest.ini_options]
minversion = "6.0"
addopts = "-v --durations=20 --color=yes"
filterwarnings = [
"ignore:the imp module is deprecated in favour of importlib:DeprecationWarning",
"ignore:distutils Version classes are deprecated. Use packaging.version instead:DeprecationWarning",
"ignore:The gensim.similarities.levenshtein submodule is disabled, because the optional Levenshtein package:UserWarning",
"ignore:.(tf.layers|layer|tf.nn).* is deprecated:UserWarning",
"ignore:User provided device_type of 'cuda', but CUDA is not available:UserWarning",
"ignore:`build_negative_samples` is deprecated",
]
[tool.ruff]
line-length = 88
target-version = "py38"
output-format = "full"
lint.ignore = ["E501"]
lint.select = [
# flake8-async
"ASYNC",
# pyflakes
"F",
# pycodestyle(Error, Warning)
"E",
"W",
# flake8-2020
"YTT",
# flake8-bugbear
"B",
# pandas-vet
"PD",
# NumPy-specific rules
"NPY",
# Ruff-specific rules
"RUF",
]
exclude = ["sampling.py"] # deprecated module