-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
81 lines (70 loc) · 2.21 KB
/
pyproject.toml
File metadata and controls
81 lines (70 loc) · 2.21 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
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[project]
name = "locale-sync"
version = "1.1.0"
description = "A production-grade CLI tool for detecting, validating, synchronizing, and auto-translating missing entries in locale JSON files."
readme = "README.md"
license = "AGPL-3.0-only"
requires-python = ">=3.12"
authors = [
{ name = "POLPROG", email = "polprog.tech@gmail.com" },
]
maintainers = [
{ name = "POLPROG", email = "polprog.tech@gmail.com" },
]
keywords = ["i18n", "l10n", "localization", "translation", "cli", "json"]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"License :: OSI Approved :: GNU Affero General Public License v3",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Internationalization",
"Topic :: Software Development :: Localization",
"Typing :: Typed",
]
dependencies = [
"typer>=0.9.0",
"rich>=13.0.0",
"deep-translator>=1.11.0",
"fastapi>=0.109.0",
"uvicorn[standard]>=0.27.0",
"jinja2>=3.1.0",
]
[project.optional-dependencies]
dev = [
"pytest>=8.0.0",
"pytest-cov>=5.0.0",
"ruff>=0.4.0",
]
[project.scripts]
locale-sync = "locale_sync.cli.app:main"
[tool.hatch.build.targets.wheel]
packages = ["src/locale_sync"]
[tool.hatch.build.targets.wheel.force-include]
"src/locale_sync/infrastructure/reporters/templates" = "locale_sync/infrastructure/reporters/templates"
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = "-v --tb=short"
[tool.ruff]
target-version = "py312"
line-length = 100
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "I", "N", "W", "UP", "B", "SIM"]
ignore = [
"E501", # Line too long — unavoidable in message catalogs and i18n strings
"B008", # Function calls in default arguments (required by Typer)
"UP045", # Optional[X] vs X | None — keep explicit for Typer compat
]
[tool.ruff.lint.per-file-ignores]
"tests/*" = ["N801", "N802", "SIM117", "B011"]
[tool.coverage.run]
source = ["locale_sync"]
[tool.coverage.report]
show_missing = true