@@ -8,20 +8,20 @@ requires = [
88
99[project ]
1010authors = [
11- {
name =
" Michal Čihař " ,
email =
" [email protected] " }
11+ {
email =
" [email protected] " ,
name =
" Michal Čihař " }
1212]
1313classifiers = [
1414 " Development Status :: 5 - Production/Stable" ,
1515 " Intended Audience :: Developers" ,
1616 " Operating System :: OS Independent" ,
17- " Programming Language :: Python" ,
18- " Programming Language :: Python :: 3" ,
1917 " Programming Language :: Python :: 3 :: Only" ,
20- " Programming Language :: Python :: 3.9" ,
21- " Programming Language :: Python :: 3.9" ,
18+ " Programming Language :: Python :: 3" ,
2219 " Programming Language :: Python :: 3.11" ,
2320 " Programming Language :: Python :: 3.12" ,
2421 " Programming Language :: Python :: 3.13" ,
22+ " Programming Language :: Python :: 3.9" ,
23+ " Programming Language :: Python :: 3.9" ,
24+ " Programming Language :: Python" ,
2525 " Topic :: Software Development :: Internationalization" ,
2626 " Topic :: Software Development :: Localization" ,
2727 " Topic :: Utilities"
@@ -38,8 +38,8 @@ version = "2025.3"
3838
3939[project .optional-dependencies ]
4040dev = [
41- " weblate-language-data[lint,test,types] " ,
42- " translate-toolkit==3.15.1 "
41+ " translate-toolkit==3.15.1 " ,
42+ " weblate-language-data[lint,test,types] "
4343]
4444django = [
4545 " Django"
@@ -50,8 +50,8 @@ lint = [
5050test = [
5151]
5252types = [
53- " mypy==1.15.0 " ,
54- " django-stubs==5.1.3 "
53+ " django-stubs==5.1.3 " ,
54+ " mypy==1.15.0 "
5555]
5656
5757[project .readme ]
@@ -72,22 +72,22 @@ target-version = ['py39']
7272
7373[tool .check-manifest ]
7474ignore = [
75- " LICENSES/*" ,
76- " json/*" ,
77- " modules/**" ,
78- " scripts/*" ,
79- " .reuse/dep5" ,
80- " languages-po/*" ,
8175 " *.csv" ,
82- " Makefile" ,
83- " .gitmodules" ,
84- " scripts/*" ,
76+ " *.json" ,
8577 " *.toml" ,
86- " *.yml" ,
8778 " *.yaml" ,
88- " *.json " ,
79+ " *.yml " ,
8980 " .editorconfig" ,
90- " .weblate"
81+ " .gitmodules" ,
82+ " .reuse/dep5" ,
83+ " .weblate" ,
84+ " json/*" ,
85+ " languages-po/*" ,
86+ " LICENSES/*" ,
87+ " Makefile" ,
88+ " modules/**" ,
89+ " scripts/*" ,
90+ " scripts/*"
9191]
9292ignore-bad-ideas = [
9393 " modules/gettext/gettext-tools/tests/*.mo"
@@ -105,29 +105,29 @@ target-version = "py39"
105105
106106[tool .ruff .lint ]
107107ignore = [
108- " D10" , # TODO: we are missing many docstrings
109- " PTH" , # TODO: Not using pathlib
110- " EM" , # TODO: exception literals
111- " PERF401" , # TODO
112108 " COM812" , # CONFIG: trailing newlines
113- " FBT " , # TODO: Boolean in function definition
109+ " D10 " , # TODO: we are missing many docstrings
114110 " D203" , # CONFIG: incompatible with D211
115111 " D212" , # CONFIG: incompatible with D213
112+ " E501" , # WONTFIX: we accept long strings (rest is formatted by black)
113+ " EM" , # TODO: exception literals
114+ " FBT" , # TODO: Boolean in function definition
116115 " ISC001" , # CONFIG: incompatible with formatter
117- " TRY003" , # WONTFIX: Avoid specifying long messages outside the exception class
118- " T201" , # WONTFIX: using print() (maybe add noqa)
119- " T203" , # WONTFIX: using pprint() (maybe add noqa)
116+ " PERF401" , # TODO
117+ " PTH" , # TODO: Not using pathlib
120118 " RUF001" , # WONTFIX: String contains ambiguous unicode character, we are using Unicode
121119 " RUF012" , # TODO: Mutable class attributes should be annotated with `typing.ClassVar`
122- " E501" # WONTFIX: we accept long strings (rest is formatted by black)
120+ " T201" , # WONTFIX: using print() (maybe add noqa)
121+ " T203" , # WONTFIX: using pprint() (maybe add noqa)
122+ " TRY003" # WONTFIX: Avoid specifying long messages outside the exception class
123123]
124124select = [" ALL" ]
125125
126126[tool .ruff .lint .mccabe ]
127127max-complexity = 16
128128
129129[tool .ruff .lint .per-file-ignores ]
130- "scripts/*" = [" S607 " , " S603 " , " S310 " , " ANN " ]
130+ "scripts/*" = [" ANN " , " S310 " , " S603 " , " S607 " ]
131131
132132[tool .setuptools ]
133133include-package-data = true
@@ -141,3 +141,10 @@ weblate_language_data = "weblate_language_data"
141141[tool .setuptools .packages .find ]
142142exclude = [" modules*" ]
143143namespaces = true
144+
145+ [tool .tomlsort ]
146+ ignore_case = true
147+ sort_inline_arrays = true
148+ sort_inline_tables = true
149+ sort_table_keys = true
150+ spaces_before_inline_comment = 2
0 commit comments