-
Notifications
You must be signed in to change notification settings - Fork 24
Expand file tree
/
Copy pathpyproject.toml
More file actions
90 lines (79 loc) · 2.18 KB
/
pyproject.toml
File metadata and controls
90 lines (79 loc) · 2.18 KB
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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "localmod"
version = "0.1.0"
description = "Fully offline content moderation API"
readme = "README.md"
license = "MIT"
requires-python = ">=3.6"
authors = [
{ name = "Your Name", email = "your@email.com" }
]
keywords = ["content-moderation", "ai-safety", "toxicity", "pii", "nlp"]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"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",
"Topic :: Scientific/Engineering :: Artificial Intelligence",
]
dependencies = [
"torch>=1.10.0",
"transformers>=4.10.0",
"fastapi>=0.65.0",
"uvicorn[standard]>=0.15.0",
"pydantic>=1.8.0",
"pydantic-settings>=2.0.0;python_version>='3.8'",
"httpx>=0.20.0",
"python-multipart>=0.0.5",
"Pillow>=8.0.0", # Required for image moderation
]
[project.optional-dependencies]
dev = [
"pytest>=6.0.0",
"pytest-cov>=2.10.0",
"pytest-asyncio>=0.14.0",
"flake8>=3.9.0",
"mypy>=0.900",
"pre-commit>=2.10.0",
]
eval = [
"datasets>=1.18.0",
"scikit-learn>=0.24.0",
"pandas>=1.1.0",
"tqdm>=4.60.0",
]
discord = [
"discord.py>=2.0.0",
]
all = ["localmod[dev,eval,discord]"]
[project.scripts]
localmod = "localmod.cli:main"
[project.urls]
Homepage = "https://github.com/YOUR_USERNAME/localmod"
Documentation = "https://github.com/YOUR_USERNAME/localmod#readme"
Repository = "https://github.com/YOUR_USERNAME/localmod"
[tool.hatch.build.targets.wheel]
packages = ["src/localmod"]
[tool.ruff]
target-version = "py38"
line-length = 100
select = ["E", "F", "W", "I", "N", "UP", "B", "C4", "SIM"]
ignore = ["E501"]
[tool.ruff.isort]
known-first-party = ["localmod"]
[tool.mypy]
python_version = "3.8"
strict = true
ignore_missing_imports = true
[tool.pytest.ini_options]
testpaths = ["tests"]
asyncio_mode = "auto"
addopts = "-v --cov=localmod --cov-report=term-missing"