-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
147 lines (132 loc) · 3.2 KB
/
pyproject.toml
File metadata and controls
147 lines (132 loc) · 3.2 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
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
[build-system]
build-backend = "hatchling.build"
requires = ["hatchling"]
[project]
name = "wordcab"
dynamic = ["version"]
description = "📖 Transcribe and Summarize any business communication at scale with Wordcab's API"
license = "Apache-2.0"
readme = "README.md"
requires-python = ">=3.8,<3.12"
keywords = ["wordcab", "sdk", "api", "transcription", "summarization"]
authors = [
{ name = "Thomas Chaigneau", email = "thomas@wordcab.com" },
{ name = "Wordcab", email = "info@wordcab.com" },
]
classifiers = [
"Topic :: Internet",
"Topic :: Software Development",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Programming Language :: Python",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: Implementation :: CPython",
"Programming Language :: Python :: Implementation :: PyPy",
]
dependencies = [
"click>=8.0.1",
"requests>=2.31.0",
"validators>=0.20.0",
]
[project.urls]
Changelog = "https://github.com/Wordcab/wordcab-python/releases"
Documentation = "https://wordcab-python.readthedocs.io"
Homepage = "https://github.com/Wordcab/wordcab-python"
Issues = "https://github.com/Wordcab/wordcab-python/issues"
Source = "https://github.com/Wordcab/wordcab-python"
[tool.hatch.version]
path = "src/wordcab/__init__.py"
[project.optional-dependencies]
live = [
"numpy>=1.21.2",
"pyaudio>=0.2.11",
"websockets>=11.0.3",
]
docs = [
"mkdocs>=1.4.0",
"mkdocs-material>=8.5.4",
"mkdocs-git-revision-date-localized-plugin>=1.1.0",
"mkdocstrings[python]>=0.20.0",
]
quality = [
"black>=22.10.0",
"ruff>=0.0.263",
"pre-commit>=2.20.0",
]
tests = [
"httpx>=0.23.3",
"numpy>=1.21.2",
"pyaudio>=0.2.11",
"pytest>=7.4",
"pytest-asyncio>=0.21.1",
"pytest-cov>=4.1",
"responses>=0.23.3",
"websockets>=11.0.3",
]
[project.scripts]
wordcab = "wordcab.__main__:main"
[tool.hatch.envs.quality]
features = [
"quality",
]
[tool.hatch.envs.quality.scripts]
check = [
"black --check --diff --preview src tests",
"ruff src tests",
]
format = [
"black --preview src tests",
"ruff --fix src tests",
"check",
]
[tool.ruff]
ignore = [
"E501", # line too long, handled by black
"B008", # do not perform function calls in argument defaults
"C901", # too complex
]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"C", # flake8-comprehensions
"B", # flake8-bugbear
]
[tool.ruff.isort]
known-first-party = ["wordcab_transcribe"]
[tool.hatch.envs.tests]
features = [
"tests",
]
[tool.hatch.envs.tests.scripts]
run = "pytest --cov=wordcab --cov-report=term-missing tests/ --durations 0 -s -vv {args:tests}"
[tool.hatch.envs.docs]
features = [
"docs",
]
[tool.hatch.envs.docs.scripts]
build = [
"mkdocs build",
]
serve = [
"mkdocs serve",
]
[[tool.hatch.envs.tests.matrix]]
python = ["38"]
[tool.hatch.build.targets.sdist]
exclude = [
"/.github",
"/.vscode",
"/docs",
"/.devcontainer",
"/.pre-commit-config.yaml",
"/.gitignore",
"/tests",
"/Dockerfile",
"/.dockerignore",
]