-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathpyproject.toml
More file actions
206 lines (184 loc) · 4.45 KB
/
pyproject.toml
File metadata and controls
206 lines (184 loc) · 4.45 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
[project]
authors = [{name = "bugficks"}]
classifiers = [
"Programming Language :: Python :: 3",
"Operating System :: MacOS :: MacOS X",
"Operating System :: Microsoft :: Windows",
"Operating System :: POSIX :: Linux",
]
dependencies = [
"click>=8.1.7",
"garminconnect>=0.2.25",
"garth>=0.5.21; python_version>='3.14'",
"httpx[http2,cli,brotli]>=0.28.1",
"inquirer>=3.4.0",
"json5>=0.10.0",
"keyring>=24.3.0",
"keyrings.alt>=5.0.0; sys_platform == 'win32'",
"python-dateutil>=2.9.0.post0",
"pytz>=2025.1",
"click-pwsh>=0.9.5; sys_platform == 'win32'",
]
description = "Sync blood pressure and weight measurements from OMRON connect to Garmin Connect"
dynamic = ["version"]
keywords = ["garmin connect", "garmin", "omron", "omron connect", "sync"]
license = "GPL-2.0-or-later"
license-files = ["LICENSE"]
name = "omramin"
readme = "README.md"
requires-python = ">=3.11"
#version = "0.1.1"
[project.optional-dependencies]
bluetooth = ["bleak>=0.22.3"]
file-backend = ["keyrings.alt>=5.0.0", "keyrings.cryptfile>=1.3.9"]
powershell = ["click-pwsh>=0.9.5; sys_platform != 'win32'"]
[project.urls]
"Bug Tracker" = "https://github.com/bugficks/omramin/issues"
"Changelog" = "https://github.com/bugficks/omramin/blob/master/CHANGELOG.md"
"Documentation" = "https://github.com/bugficks/omramin/blob/master/README.md"
"Homepage" = "https://github.com/bugficks/omramin"
[build-system]
build-backend = "setuptools.build_meta"
requires = ["setuptools>=64"] #, "setuptools-scm > 8"]
[tool.setuptools.dynamic]
version = {attr = "omramin.__version__"}
[tool.setuptools_scm]
[tool.setuptools.packages.find]
exclude = [] # exclude packages matching these glob patterns (empty by default)
include = [
"omramin",
"data",
] # package names should match these glob patterns (["*"] by default)
namespaces = false # to disable scanning PEP 420 namespaces (true by default)
where = ["."] # list of folders that contain the packages (["."] by default)
[project.scripts]
omramin = "omramin:cli"
[tool.setuptools]
include-package-data = true
py-modules = [
"omramin",
"omronconnect",
"utils",
"regionserver",
"httpxlogtransport",
]
[tool.setuptools.package-data]
"data" = ["region_v1.json", "region_v2.json"]
# [tool.distutils.egg_info]
# egg_base = "build"
########################################################################################################################
[tool.pylint.main]
# make pylint ignore tool.ruff settings
disable = ["unrecognized-option"]
ignore = [
".git",
".*_cache",
"__pycache__",
".venv",
".info",
".other",
".debug",
".vscode",
"pyproject.toml",
"tests",
]
max-module-lines = 1500
[tool.pylint.messages_control]
disable = [
"C0103", # doesn't conform to snake_case naming style (invalid-name)
"C0114", # missing-module-docstring
"C0115", # missing-class-docstring
"C0116", # missing-function-docstring
"W1203", # Use lazy % formatting in logging functions (logging-fstring-interpolation)
]
[tool.ruff]
exclude = [
".git",
".*_cache",
"__pycache__",
".venv",
".info",
".other",
".debug",
".vscode",
"tests",
]
indent-width = 4
line-length = 120
[tool.mypy]
exclude = [
".git",
".*_cache",
"__pycache__",
".venv",
".info",
".other",
".debug",
".vscode",
"tests",
]
[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"bleak",
"bleak.exc",
"pytz",
"garminconnect",
"inquirer",
"python-dateutil",
"dateutil",
"dateutil.parser",
"keyrings.alt.file",
"keyrings.cryptfile.cryptfile",
]
[tool.flake8]
count = true
exclude = [
".git",
".*_cache",
"__pycache__",
".venv",
".info",
".other",
".debug",
".vscode",
"tests",
]
extend-ignore = []
ignore = [
"E402", # module level import not at top of file
]
max-complexity = 15
max-line-length = 120
per-file-ignores = [
# max complexity, whitespace before ':', line break before binary operator
"omramin.py:C901,E203,W503", # ignore all checks in tests
"tests/*:E,W,F,C",
]
[tool.isort]
force_grid_wrap = 0
include_trailing_comma = true
line_length = 120
multi_line_output = 3
skip_gitignore = true
skip_glob = [
".git",
".*_cache",
"__pycache__",
".venv",
".info",
".other",
".debug",
".vscode",
"tests",
]
use_parentheses = true
[tool.black]
line-length = 120
[tool.pylint.logging]
# The type of string formatting that logging methods do. `old` means using %
# formatting, `new` is for `{}` formatting.
logging-format-style = "new"
[tool.pylint.format]
indent-width = 4
max-line-length = 120