-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathpyproject.toml
More file actions
209 lines (187 loc) · 5.87 KB
/
pyproject.toml
File metadata and controls
209 lines (187 loc) · 5.87 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
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
[project]
name = "edit-python-pe"
version = "0.2.10"
description = "TUI Application for submitting membership requests to Python Perú community."
readme = { file = "README.md", content-type = "text/markdown" }
requires-python = ">=3.13.0,<4.0.0"
license = "Apache-2.0"
license-files = ["LICENSE"]
authors = [
{ name = "Jean-Pierre Chauvel", email = "jean.p.chauvel@gmail.com" },
]
maintainers = [
{ name = "Jean-Pierre Chauvel", email = "jean.p.chauvel@gmail.com" },
]
keywords = [
"Management",
"Members",
"Peru",
"TUI",
"python.pe",
]
classifiers = [
"Development Status :: 4 - Beta",
"Intended Audience :: Developers",
"Natural Language :: English",
"Natural Language :: French",
"Natural Language :: Italian",
"Natural Language :: Portuguese",
"Natural Language :: Spanish",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
]
dependencies = [
"babel>=2.18.0",
"keyring>=25.7.0",
"platformdirs>=4.9.6",
"pygit2>=1.19.2",
"pygithub>=2.9.1",
"pyyaml>=6.0.3",
"textual>=8.2.7",
]
[project.urls]
Changelog = "https://github.com/pythonpe/edit-python.pe/blob/main/CHANGELOG.md"
Documentation = "https://github.com/pythonpe/edit-python.pe/blob/main/README.md"
Download = "https://github.com/pythonpe/edit-python.pe/archive/refs/tags/v0.2.10.tar.gz"
Homepage = "https://github.com/pythonpe/edit-python.pe"
Issues = "https://github.com/pythonpe/edit-python.pe/issues"
Repository = "https://github.com/pythonpe/edit-python.pe"
[project.scripts]
edit-python-pe = "edit_python_pe.main:main"
[dependency-groups]
dev = [
"commitizen>=4.8.3",
"coverage>=7.14.0",
"deep-translator>=1.11.4",
"poethepoet>=0.46.0",
"polib>=1.2.0",
"pre-commit>=4.6.0",
"pytest>=9.0.3",
"pytest-asyncio>=1.3.0",
"pytest-cov>=7.1.0",
"ruff>=0.15.14",
"textual-dev>=1.8.0",
"tomli-w>=1.2.0",
"ty>=0.0.39",
]
[build-system]
requires = ["uv_build>=0.9.18,<0.10.0"]
build-backend = "uv_build"
[tool.commitizen]
name = "cz_conventional_commits"
version_provider = "pep621"
version_scheme = "semver"
tag_format = "v$version"
update_changelog_on_bump = true
major_version_zero = true
changelog_file = "CHANGELOG.md"
changelog_incremental = true
version_files = [
"src/edit_python_pe/__version__.py:__version__ = \"$version\"",
"pyproject.toml:tags/v$version.tar.gz",
]
[tool.commitizen.change_type_map]
"feat" = "Features"
"fix" = "Bug Fixes"
"docs" = "Documentation"
"style" = "Styles"
"refactor" = "Code Refactoring"
"perf" = "Performance Improvements"
"test" = "Tests"
"build" = "Build System"
"ci" = "Continuous Integration"
"chore" = "Chores"
[tool.poe.tasks]
"lint" = "uv run ruff check --fix"
"lint:format" = "uv run ruff format"
"lint:types" = "uv run ty check"
"lint:docs" = "uv run pre-commit run markdownlint --all-files"
"test" = "uv run pytest --cov edit_python_pe --cov-report xml:cobertura.xml --cov-report term --junitxml report.xml"
"freeze" = "uv export --format requirements.txt --no-group dev --no-hashes --no-annotate --no-header --output-file requirements.txt"
"freeze:dev" = "uv export --format requirements.txt --all-groups --no-hashes --no-annotate --no-header --output-file requirements.dev.txt"
[tool.poe.tasks."release"]
cmd = "uv run cz bump --changelog"
[tool.poe.tasks."release:changelog"]
cmd = "uv run cz changelog"
[tool.poe.tasks."messages:init"]
args = [{ name = "lang", options = ["--lang"], required = true }]
sequence = [
"messages:extract",
{ cmd = "uv run pybabel init -i src/edit_python_pe/locale/messages.pot -d src/edit_python_pe/locale -l ${lang}" }
]
[tool.poe.tasks."messages:extract"]
cmd = "uv run pybabel extract -F babel.cfg -o src/edit_python_pe/locale/messages.pot src/edit_python_pe"
[tool.poe.tasks."messages:update"]
sequence = [
"messages:extract",
{ cmd = "uv run pybabel update -i src/edit_python_pe/locale/messages.pot -d src/edit_python_pe/locale" }
]
[tool.poe.tasks."messages:compile"]
cmd = "uv run pybabel compile -d src/edit_python_pe/locale"
[tool.ruff]
line-length = 88
target-version = "py313"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"D", # pydocstyle
"S", # bandit
"UP", # pyupgrade
"B", # flake8-bugbear
"C4", # flake8-comprehensions
"C90", # mccabe complexity
]
ignore = [
"D100", # Missing docstring in public module
"D101", # Missing docstring in public class
"D102", # Missing docstring in public method
"D103", # Missing docstring in public function
"D104", # Missing docstring in public package
"D105", # Missing docstring in magic method
"D106", # Missing docstring in public nested class
"D107", # Missing docstring in __init__
"D202", # No blank lines allowed after function docstring
"D203", # 1 blank line required before class docstring
"D213", # Multi-line docstring summary should start at the second line
"D407", # Missing dashed underline after section
]
[tool.ruff.lint.per-file-ignores]
"tests/**/*.py" = [
"S101", # Use of assert detected
"S105", # Use of hardcoded password string
"S106", # Use of hardcoded password function args
"S108", # Use of hardcoded temp files
"E501", # Too long lines
]
[tool.ruff.lint.isort]
known-first-party = ["edit_python_pe"]
known-third-party = ["github", "pygit2", "textual", "yaml"]
[tool.ruff.lint.mccabe]
max-complexity = 10
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
skip-magic-trailing-comma = false
line-ending = "auto"
[tool.ty.rules]
# not-subscriptable = "ignore"
# invalid-return-type = "ignore"
# unresolved-import = "ignore"
# possibly-missing-attribute = "ignore"
# invalid-argument-type = "ignore"
# inconsistent-mro = "ignore"
# unresolved-attribute = "ignore"
[tool.uv.build-backend]
module-name = "edit_python_pe"
module-root = "src"
source-include = [
"LICENSE",
"README.md",
"CHANGELOG.md",
]