-
-
Notifications
You must be signed in to change notification settings - Fork 26
Expand file tree
/
Copy pathpyproject.toml
More file actions
154 lines (137 loc) · 4 KB
/
pyproject.toml
File metadata and controls
154 lines (137 loc) · 4 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
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
144
145
146
147
148
149
150
151
152
153
154
[build-system]
build-backend = "setuptools.build_meta"
# Minimum requirements for the build system to execute.
requires = [
"setuptools>=78.0.2",
"translate-toolkit"
]
[project]
authors = [
{email = "michal@weblate.org", name = "Michal Čihař"}
]
classifiers = [
"Development Status :: 5 - Production/Stable",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python",
"Topic :: Software Development :: Internationalization",
"Topic :: Software Development :: Localization",
"Topic :: Utilities"
]
description = "Language definitions for Weblate"
keywords = [
"i18n l10n gettext git mercurial translate"
]
license = "MIT"
license-files = ["LICENSE"]
name = "weblate-language-data"
requires-python = ">=3.9"
version = "2025.8"
[project.optional-dependencies]
dev = [
"translate-toolkit==3.16.2",
"weblate-language-data[lint,test,types]"
]
django = [
"Django"
]
lint = [
"pre-commit==4.3.0"
]
test = [
]
types = [
"django-stubs==5.2.7",
"mypy==1.18.2"
]
[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 = [
"*.csv",
"*.json",
"*.toml",
"*.yaml",
"*.yml",
".editorconfig",
".gitmodules",
".reuse/dep5",
".weblate",
".well-known/*",
"json/*",
"languages-po/*",
"LICENSES/*",
"Makefile",
"modules/**",
"scripts/*",
"scripts/*"
]
ignore-bad-ideas = [
"modules/gettext/gettext-tools/tests/*.mo"
]
[tool.codespell]
builtin = "clear,rare,informal,usage"
skip = '*.po,*.pot,*.csv,weblate_language_data/aliases.py,weblate_language_data/population.py,weblate_language_data/plurals.py,weblate_language_data/language_codes.py,weblate_language_data/languages.py,weblate_language_data/check_languages.py,weblate_language_data/plural_tags.py,PLURALS_DIFF.md,weblate_language_data/case_insensitive.py,weblate_language_data/country_codes.py'
[tool.isort]
profile = "black"
[tool.ruff]
target-version = "py39"
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
ignore = [
"COM812", # CONFIG: trailing newlines
"D10", # TODO: we are missing many docstrings
"D203", # CONFIG: incompatible with D211
"D212", # CONFIG: incompatible with D213
"E501", # WONTFIX: we accept long strings (rest is formatted by black)
"EM", # TODO: exception literals
"FBT", # TODO: Boolean in function definition
"ISC001", # CONFIG: incompatible with formatter
"PERF401", # TODO
"PTH", # TODO: Not using pathlib
"RUF001", # WONTFIX: String contains ambiguous unicode character, we are using Unicode
"RUF012", # TODO: Mutable class attributes should be annotated with `typing.ClassVar`
"T201", # WONTFIX: using print() (maybe add noqa)
"T203", # WONTFIX: using pprint() (maybe add noqa)
"TRY003" # WONTFIX: Avoid specifying long messages outside the exception class
]
select = ["ALL"]
[tool.ruff.lint.mccabe]
max-complexity = 16
[tool.ruff.lint.per-file-ignores]
"scripts/*" = ["ANN", "S310", "S603", "S607"]
[tool.setuptools]
include-package-data = true
platforms = [
"any"
]
[tool.setuptools.package-dir]
weblate_language_data = "weblate_language_data"
[tool.setuptools.packages.find]
exclude = ["modules*", "scripts*"]
namespaces = true
[tool.tomlsort]
ignore_case = true
sort_inline_arrays = true
sort_inline_tables = true
sort_table_keys = true
spaces_before_inline_comment = 2