-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
98 lines (84 loc) · 1.91 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
[project]
name = "pytranslate"
description = "Advanced SubStation Alpha translation service"
dynamic = ["version"]
keywords = ["translation", "subtitles"]
readme = "README.md"
authors = [
{ name = "maxime1907", email = "[email protected]" },
]
classifiers = [
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3 :: Only",
"License :: OSI Approved :: GNU Lesser General Public License v3 or later (LGPLv3+)",
]
license = { text = "LGPLv3+" }
requires-python = ">=3.12"
dependencies = [
"click",
"deepl-cli",
"googletrans",
"requests",
]
[project.urls]
Homepage = "https://github.com/maxime1907/pytranslate"
[project.optional-dependencies]
dev = [
"ruff",
"pyright",
"safety",
"pytest",
]
[project.scripts]
pytranslate = "pytranslate.cli:cli"
[build-system]
requires = ["setuptools>=69.1"]
build-backend = "setuptools.build_meta"
[tool.setuptools]
include-package-data = true
zip-safe = true
[tool.setuptools.dynamic]
version = { attr = "pytranslate.__version__" }
[tool.setuptools.packages.find]
where = ["src"]
exclude = ["*.tests", "*.tests.*", "tests.*", "tests"]
[tool.setuptools.package-data]
pytranslate = ["py.typed"]
[tool.pyright]
pythonVersion = "3.12"
extraPaths = ["src/"]
include = ["src"]
useLibraryCodeForTypes = true
[tool.ruff]
target-version = "py312"
line-length = 120
exclude = [
".bzr",
".git",
".svn",
".hg",
"typings"
]
[tool.ruff.lint]
select = [
"E", # pycodestyle
"F", # pyflakes
"I", # isort
"Q", # flake8-quotes-q
"S", # flake8-bandit-s
"UP", # pyupgrade
"W", # pycodestyle
]
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
[tool.ruff.lint.isort]
combine-as-imports = true
force-wrap-aliases = true
forced-separate = ["tests"]
known-local-folder = [
"pytranslate",
"src",
"tests"
]
[tool.ruff.lint.per-file-ignores]
"*/__init__.py" = ["F401"]