Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
105 lines (99 loc) · 2.62 KB
/
Copy pathpyproject.toml
File metadata and controls
105 lines (99 loc) · 2.62 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
[build-system]
build-backend = "hatchling.build"
requires = [ "hatchling", "uv-dynamic-versioning" ]
[project]
name = "deepl-cli"
description = "DeepL Translator CLI without API Key"
readme = "README.md"
keywords = [
"cli",
"deepl",
"deepl-translator",
"docker",
"playwright",
"translate",
"translation",
"translator",
]
license = "MIT"
authors = [ { name = "eggplants", email = "w10776e8w@yahoo.co.jp" } ]
requires-python = ">=3.10,<4"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: End Users/Desktop",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Topic :: Text Processing :: Linguistic",
"Topic :: Utilities",
"Typing :: Typed",
]
dynamic = [ "version" ]
dependencies = [
"install-playwright>=0.1,<1.1",
"playwright>=1.49.1,<2",
]
urls.Documentation = "https://egpl.dev/deepl-cli/"
urls.Issues = "https://github.com/eggplants/deepl-cli/issues"
urls.Repository = "https://github.com/eggplants/deepl-cli"
scripts.deepl = "deepl.cli:main"
[dependency-groups]
dev = [
"pymarkdownlnt>=0.9.33",
"pyproject-fmt-py>=0",
"pytest>=9.0.2",
"pytest-asyncio>=1.3",
"pytest-cov>=7",
]
docs = [
"pdoc>=16",
]
[tool.hatch]
version.source = "uv-dynamic-versioning"
build.targets.wheel.include = [ "deepl" ]
build.targets.sdist.include = [ "deepl" ]
[tool.uv]
python-downloads = "never"
default-groups = [
"dev",
"docs",
]
exclude-newer = "P7D"
# Own package: no cooldown needed.
exclude-newer-package = { pyproject-fmt-py = "P0D" }
preview = true
[tool.ruff]
line-length = 120
format.indent-style = "space"
format.quote-style = "double"
lint.select = [ "ALL" ]
lint.ignore = [
"COM812",
"CPY001", # Missing copyright notice (this project does not use file headers)
]
lint.per-file-ignores."deepl/cli.py" = [
"T201", # `print` found
]
lint.per-file-ignores."examples/*.py" = [
"D",
"INP001", # Add an __init__.py.
"T201", # `print` found
]
lint.per-file-ignores."tests/*.py" = [
"D",
"E501", # Line too long (the fixtures quote whole paragraphs of translated text)
"RUF001", # Ambiguous unicode character (the fixtures carry Russian text)
"S101", # Use of assert detected
]
lint.pydocstyle.convention = "google"
[tool.uv-dynamic-versioning]
vcs = "git"
style = "semver"
fallback-version = "0.0.0"