generated from Lightning-AI/deep-learning-project-template
-
Notifications
You must be signed in to change notification settings - Fork 117
/
Copy pathpyproject.toml
78 lines (70 loc) · 1.75 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
[project]
name = "detoxify"
version = "0.5.2"
description = "A python library for detecting toxic comments"
readme = "README.md"
authors = [
]
classifiers = [
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3",
]
requires-python = ">=3.9,<3.13"
dependencies = [
"sentencepiece >= 0.1.94",
"torch >=2",
"transformers >= 3",
]
[tool.setuptools]
packages = ["detoxify"]
[project.urls]
Homepage = "https://github.com/unitaryai/detoxify"
[project.optional-dependencies]
dev = [
"datasets >= 1.0.2",
"pandas >= 1.1.2",
"pytest",
"pytorch-lightning>2",
"scikit-learn >= 0.23.2",
"tqdm",
"pre-commit",
"numpy>=2"
]
[tool.ruff]
line-length = 120
target-version = "py39"
[tool.ruff.lint]
select = ["E", "F", "W"]
ignore = [
"E731", # Do not assign a lambda expression, use a def
"E402", # Module level import not at top of file
"F401", # Module imported but unused
"F841", # Local variable name is assigned to but never used
]
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.pytest.ini_options]
norecursedirs = [
".git",
"dist",
"build",
]
addopts = [
"--strict-markers",
"--doctest-modules",
"--durations=0",
"--color=yes",
]
filterwarnings = [
"ignore:.*deprecated alias.*:DeprecationWarning:tensorboard.*tensorflow_stub*:",
"ignore:.*deprecated alias.*:DeprecationWarning:tensorboard.*tensor_util*:",
"ignore:.*deprecated alias.*:DeprecationWarning:pyarrow.*pandas_compat*:",
]
[build-system]
requires = ["setuptools"]
build-backend = "setuptools.build_meta"