Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
173 lines (159 loc) · 4.16 KB
/
Copy pathpyproject.toml
File metadata and controls
173 lines (159 loc) · 4.16 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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
[build-system]
build-backend = "uv_build"
requires = ["uv_build>=0.12.13,<0.14"]
[dependency-groups]
dev = [
{ include-group = "dist" },
{ include-group = "docs" },
{ include-group = "lint" },
{ include-group = "test" },
{ include-group = "types" }
]
dist = [
"check-manifest==0.51",
"check-wheel-contents==0.6.3",
"pydistcheck==0.11.3",
"pyroma==5.0.1",
"twine==7.0.0"
]
docs = [
"furo==2025.12.19",
"Sphinx==9.1.1"
]
lint = [
{ include-group = "pre-commit" }
]
pre-commit = [
"prek==0.5.7"
]
test = [
"pytest==9.2.0"
]
types = [
"mypy==2.4.0",
"ty==0.0.93",
"types-lxml==2026.2.16",
{ include-group = "docs" }
]
[project]
authors = [
{ email = "michal@weblate.org", name = "Michal Čihař" }
]
classifiers = [
"Development Status :: 3 - Alpha",
"Intended Audience :: Developers",
"Operating System :: OS Independent",
"Programming Language :: Python",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3 :: Only",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Programming Language :: Python :: 3.15",
"Topic :: Software Development :: Internationalization",
"Topic :: Software Development :: Localization"
]
dependencies = ["lxml>=6.1.3"]
description = "A pure-Python library for generating Android resource tables (ARSC) with support for strings, plurals, and styled text."
keywords = ["android", "arsc", "i18n", "l10n", "weblate"]
license = "MIT"
license-files = ["LICENSE", "LICENSES/*.txt"]
name = "arsc-writer"
readme = "README.md"
requires-python = ">=3.12"
version = "0.2.0"
[project.urls]
Changelog = "https://arsc-writer.readthedocs.io/en/latest/changes.html"
Documentation = "https://arsc-writer.readthedocs.io/"
Funding = "https://weblate.org/donate/"
Homepage = "https://github.com/WeblateOrg/arsc-writer"
"Issue Tracker" = "https://github.com/WeblateOrg/arsc-writer/issues"
"Source Code" = "https://github.com/WeblateOrg/arsc-writer"
[tool.check-manifest]
ignore = [
".editorconfig",
".github/**",
".pre-commit-config.yaml",
".readthedocs.yml",
".yamllint.yml",
"AGENTS.md",
"ci/**",
# uv_build preserves the original when rewriting the sdist's TOML.
"pyproject.toml.orig",
"REUSE.toml",
"uv.lock"
]
[tool.mypy]
files = ["src", "tests"]
python_version = "3.12"
strict = true
[tool.pytest.ini_options]
addopts = ["--import-mode=importlib"]
testpaths = ["tests"]
[tool.ruff.format]
docstring-code-format = true
[tool.ruff.lint]
ignore = [
"COM",
"incorrect-blank-line-before-class",
"line-too-long",
"multi-line-summary-first-line",
"single-line-implicit-string-concatenation"
]
preview = true
select = ["ALL"]
[tool.ruff.lint.flake8-copyright]
min-file-size = 2
notice-rgx = "(?i)Copyright\\s+©\\s+"
[tool.ruff.lint.per-file-ignores]
# The fixture generator is a standalone script, not an import package.
"ci/android-arsc/*.py" = [
"implicit-namespace-package"
]
# Release tooling is a standalone script invoking the installed Pandoc command.
"ci/release_notes.py" = [
"implicit-namespace-package",
"start-process-with-partial-path",
"subprocess-without-shell-equals-true"
]
# Sphinx loads its configuration as a standalone module.
"docs/conf.py" = [
"implicit-namespace-package"
]
# Binary-format widths and sentinels are kept beside their encodings.
"src/arsc_writer/writer.py" = [
"magic-value-comparison"
]
"tests/**" = [
"assert",
"implicit-namespace-package"
]
# Release tooling tests invoke the current Python interpreter.
"tests/test_release_notes.py" = [
"subprocess-without-shell-equals-true"
]
# AAPT2 is explicitly supplied by the developer or CI, never resource input.
"tests/test_writer.py" = [
"subprocess-without-shell-equals-true"
]
[tool.rumdl]
disable = [
# We do not enforce heading
"first-line-heading",
# Avoid length limit checks
"line-length"
]
[tool.rumdl.per-file-ignores]
"README.md" = [
# Allow HTML
"MD033"
]
[tool.tomlsort]
ignore_case = true
sort_inline_arrays = true
sort_inline_tables = true
sort_table_keys = true
spaces_before_inline_comment = 2
[tool.uv.build-backend]
source-exclude = ["docs/_build/**"]
source-include = ["docs/**", "SECURITY.md", "tests/**"]