-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathpyproject.toml
239 lines (218 loc) · 6.01 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
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
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
[project]
name = "maptasker"
dynamic = [ "version" ]
version = "7.2.0"
description = "Utility to display your entire Android 'Tasker' configuration on your Desktop."
requires-python = ">=3.11,<4.0"
authors = [
{ name = "Michael Rubin", email = "[email protected]" },
]
readme = "README_PyPl.md"
license = "MIT License (MIT)"
repository = "https://github.com/mctinker/Map-Tasker"
# changelog = "https://github.com/mctinker/Map-Tasker/blob/Master/Changelog.md"
keywords = [
"tasker",
"Tasker",
"map tasker",
"configuration",
"tasker configuration",
"tasker",
"tasker configuration"
]
packages = [
{ include = "maptasker"}
]
include = [
"**/maptasker/**/*.py",
"**/maptasker/assets/*.*",
"**/sample.prj.xml"
]
exclude = [
"run_test.py",
"**/maptasker/**/backup.xml",
"**/maptasker/maptasker.log",
"**/maptasker/MapTasker.html",
"**/maptasker/.MapTasker_RunCount.txt",
"**/maptasker/.arguments.txt",
"**/maptasker/**/__pycache__",
"**/maptasker/**/.dep-tree.yml"
]
dependencies = [
"anthropic>=0.49.0", # Ai Anthropics support
"customtkinter>=5.2.2", # GUI
"pillow>=11.1.0", # Image support in GUI
"darkdetect>=0.8.0", # Appearance mode detection
"defusedxml>=0.7.1", # More secure xml parser
"requests>=2.32.3", # HTTP Server function request
"tomli_w>=1.2.0", # Write toml file
"openai>=1.70.0", # Ai OpenAi support
"ollama>=0.4.7", # Ai Ollama support > cria rquires this
"psutil>=7.0.0", # System monitoring
"google-generativeai>=0.8.4", # Ai Google Generative support
# FIX
# "grpcio==1.67.1", # Ai Google Generative support. Lower version required to avoid error msg 'WARNING: All log...'
]
[project.scripts]
maptasker = "maptasker.main:main"
[project.urls]
Homepage = "https://github.com/mctinker/Map-Tasker"
"Bug Tracker" = "https://github.com/mctinker/Map-Tasker/issues"
Changelog = "https://github.com/mctinker/Map-Tasker/CHANGELOG.md"
[tool.poetry]
requires-poetry = ">=2.0"
[[tool.poetry.source]]
name = "testpypi"
url = "https://test.pypi.org/legacy/"
priority = "primary"
[[tool.poetry.source]]
name = "PyPI"
priority = "primary"
[tool.ruff]
include = ["pyproject.toml", "maptasker/src/**/*.py", "scripts/**/*.py"]
respect-gitignore = true
# editor.formatOnSaveMode = "modificationsIfAvailable"
select = [
'A', # Builtins
'ANN', # Annotations
'ARG', # Unused arguments
'B', # Bugbear
'BLE', # Blind except
'C4', # Comprehensions
'C90', # mccabe
'COM', # Commas
'D1', # Undocumented public elements
# 'D2', # Docstring conventions
'D3', # Triple double quotes
# 'D4', # Docstring text format
'DTZ', # Datetimes
'EM', # Error messages
# 'ERA', # Commented-out code
# 'EXE', # Executable
'F', # Pyflakes
'FA', # __future__ annotations
'FLY', # F-strings
# 'FURB', # Refurb
'G', # Logging format
'I', # Isort
'ICN', # Import conventions
'INP', # Disallow PEP-420 (Implicit namespace packages)
'INT', # gettext
'ISC', # Implicit str concat
# 'LOG', # Logging
'N', # PEP-8 Naming
'NPY', # Numpy
'PERF', # Unnecessary performance costs
'PGH', # Pygrep hooks
'PIE', # Unnecessary code
'PL', # Pylint
'PT', # Pytest
# 'PTH', # Use Pathlib
'PYI', # Stub files
'Q', # Quotes
'RET', # Return
'RUF', # Ruff
'RSE', # Raise
'S', # Bandit
'SIM', # Code simplification
'SLF', # Private member access
'SLOT', # __slots__
'T10', # Debugger
'T20', # Print
'TCH', # Type checking
'TID', # Tidy imports
'TRY', # Exception handling
'UP', # Pyupgrade
'W', # Warnings
'YTT', # sys.version
]
# Exclude a variety of commonly ignored directories.
exclude = [
".direnv",
"dist",
".eggs",
".git",
".git-rewrite",
".hg",
".mypy_cache",
".pyenv",
".pytest_cache",
".pytype",
".ruff_cache",
".venv",
".vscode",
"__pypackages__",
"_build",
"build",
"dist",
"site-packages",
"venv",
".md",
"__init__.py",
"**/maptasker/assets/*.*",
"**/maptasker/MapTasker.html",
"**/maptasker/.MapTasker_RunCount.txt",
"**/maptasker/.arguments.txt",
"**/maptasker/**/__pycache__",
"**/maptasker/**/.dep-tree.yml"
]
ignore = [
"PLR2004", # Constant value comparison
"SIM115", # Missing "with" on oepn file
"S606", # No shell
"B009", # Do not perform function calls in argument defaults
"T201", # Print found
"ANN101", # Missing type annotation for self
]
show-fixes = true
src = ['src',]
[tool.ruff.pycodestyle]
ignore-overlong-task-comments = true
[tool.ruff.flake8-quotes]
docstring-quotes = 'double'
multiline-quotes = 'double'
[tool.ruff.mccabe]
# Unlike Flake8, default to a complexity level of 10.
max-complexity = 10
[tool.ruff.per-file-ignores]
# https://beta.ruff.rs/docs/rules/
'__init__.py' = ['F401','F403','F405',]
'tests/*' = ['ANN', 'ARG', 'INP001', 'S101',]
[tool.ruff.pylint]
max-args = 15
max-branches = 20
max-returns = 10
max-statements = 80
[tool.ruff.flake8-tidy-imports]
ban-relative-imports = 'all'
[tool.ruff.format]
quote-style = "double"
# indent-style = "tab"
docstring-code-format = true
# Like Black, automatically detect the appropriate line ending.
line-ending = "auto"
[tool.black]
--line-length = 120
line-length = 120
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[tool.pytest.ini_options]
pythonpath = [
"."
]
[tool.poetry.group.test.dependencies]
pytest = "^7.3.2"
pytest-mock = "*"
# Bump version identifiers. Repeat this chunk for each file.
[tool.poetry_bumpversion.replacements]
files = ["maptasker/src/sysconst.py"]
search = 'VERSION = "{current_version}"'
replace = 'VERSION = "{new_version}"'
[tool.poetry.group.dev.dependencies]
black = "^24.10.0"
# +black = { version = "*", allows-prereleases = true }
line-profiler = "^4.1.3"
vulture = "^2.13"
poetry-bumpversion = "^0.3.3"
pyinstrument = "^5.0.0"