-
-
Notifications
You must be signed in to change notification settings - Fork 21
/
Copy pathpyproject.toml
143 lines (128 loc) · 3.47 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
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
[build-system]
build-backend = "setuptools.build_meta"
# Minimum requirements for the build system to execute.
requires = [
"setuptools>=70.0",
"translate-toolkit"
]
[project]
authors = [
{name = "Michal Čihař", email = "[email protected]"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Software Development :: Internationalization",
"Topic :: Software Development :: Localization",
"Topic :: Utilities"
]
description = "Language definitions for Weblate"
keywords = [
"i18n l10n gettext git mercurial translate"
]
name = "weblate-language-data"
requires-python = ">=3.9"
version = "2025.2"
[project.license]
text = "MIT"
[project.optional-dependencies]
dev = [
"weblate-language-data[lint,test,types]",
"translate-toolkit==3.14.7"
]
django = [
"Django"
]
lint = [
"pre-commit==4.1.0"
]
test = [
]
types = [
"mypy==1.15.0",
"django-stubs==5.1.3"
]
[project.readme]
content-type = "text/x-rst"
file = "README.rst"
[project.urls]
Documentation = "https://docs.weblate.org/"
Download = "https://github.com/WeblateOrg/language-data"
Funding = "https://weblate.org/donate/"
Homepage = "https://weblate.org/"
"Issue Tracker" = "https://github.com/WeblateOrg/language-data/issues"
"Source Code" = "https://github.com/WeblateOrg/language-data"
Twitter = "https://twitter.com/WeblateOrg"
[tool.black]
target-version = ['py39']
[tool.check-manifest]
ignore = [
"LICENSES/*",
"json/*",
"modules/**",
"scripts/*",
".reuse/dep5",
"languages-po/*",
"*.csv",
"Makefile",
".gitmodules",
"scripts/*",
"*.toml",
"*.yml",
"*.yaml",
"*.json",
".editorconfig",
".weblate"
]
ignore-bad-ideas = [
"modules/gettext/gettext-tools/tests/*.mo"
]
[tool.isort]
profile = "black"
[tool.ruff]
target-version = "py39"
[tool.ruff.lint]
ignore = [
"D10", # TODO: we are missing many docstrings
"PTH", # TODO: Not using pathlib
"EM", # TODO: exception literals
"PERF401", # TODO
"COM812", # CONFIG: trailing newlines
"FBT", # TODO: Boolean in function definition
"D203", # CONFIG: incompatible with D211
"D212", # CONFIG: incompatible with D213
"ISC001", # CONFIG: incompatible with formatter
"TRY003", # WONTFIX: Avoid specifying long messages outside the exception class
"T201", # WONTFIX: using print() (maybe add noqa)
"T203", # WONTFIX: using pprint() (maybe add noqa)
"RUF001", # WONTFIX: String contains ambiguous unicode character, we are using Unicode
"RUF012", # TODO: Mutable class attributes should be annotated with `typing.ClassVar`
"E501" # WONTFIX: we accept long strings (rest is formatted by black)
]
select = ["ALL"]
[tool.ruff.lint.mccabe]
max-complexity = 16
[tool.ruff.lint.per-file-ignores]
"scripts/*" = ["S607", "S603", "S310", "ANN"]
[tool.setuptools]
include-package-data = true
# Empty as a workaround for https://github.com/pypa/setuptools/issues/4759
license-files = []
platforms = [
"any"
]
[tool.setuptools.package-dir]
weblate_language_data = "weblate_language_data"
[tool.setuptools.packages.find]
exclude = ["modules*"]
namespaces = true