-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
93 lines (82 loc) · 2.31 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
[build-system]
requires = ["setuptools >= 61"]
build-backend = "setuptools.build_meta"
[project]
name = "moz.l10n"
version = "0.5.6"
description = "Mozilla tools for localization"
readme = "README.md"
license = { text = "Apache-2.0" }
authors = [
{ name = "Mozilla", email = "[email protected]" },
{ name = "Eemeli Aro", email = "[email protected]" },
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"License :: OSI Approved :: Apache Software License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Topic :: Software Development :: Libraries :: Python Modules",
"Topic :: Software Development :: Localization",
"Topic :: Software Development :: Testing",
]
requires-python = "~= 3.8"
dependencies = [
"fluent.syntax ~= 0.19.0",
"gitignorant ~= 0.3.1",
"iniparse ~= 0.5",
"polib ~= 1.2",
"tomli >= 1.1.0; python_version < '3.11'",
]
[project.optional-dependencies]
xml = ["lxml ~= 5.0"]
[project.scripts]
l10n-build = "moz.l10n.bin.build:cli"
l10n-build-file = "moz.l10n.bin.build_file:cli"
l10n-compare = "moz.l10n.bin.compare:cli"
l10n-fix = "moz.l10n.bin.fix:cli"
[project.urls]
repository = "https://github.com/mozilla/moz-l10n"
[tool.mypy]
exclude = "^(build|tests)/"
explicit_package_bases = true
strict = true
[[tool.mypy.overrides]]
module = "translate.storage.properties"
ignore_missing_imports = true
[tool.ruff.lint.isort]
extra-standard-library = ["importlib_resources"]
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"PLC", # pylint conventions
"PLE", # pyline errors
"RUF", # ruff-specific rules
]
ignore = [
"E501", # Line too long
]
[tool.setuptools]
platforms = ["any"]
license-files = [] # https://github.com/pypa/setuptools/issues/4759
[tool.setuptools.packages.find]
include = ["moz.l10n*"]
[tool.uv]
dev-dependencies = [
"importlib-resources>=6.4.5",
"mypy>=1.11.2",
"pytest>=8.3.3",
"ruff>=0.6.8",
"types-lxml>=2024.9.16",
"types-polib>=1.2.0.20240811",
]