-
Notifications
You must be signed in to change notification settings - Fork 1
/
pyproject.toml
80 lines (64 loc) · 1.99 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
[project]
name = "ubo-gui"
dynamic = ["version"]
description = "GUI sdk for Ubo Pod"
license = { text = "Apache-2.0" }
authors = [{ name = "Sassan Haradji", email = "me@sassanh.com" }]
maintainers = [{ name = "Sassan Haradji", email = "me@sassanh.com" }]
readme = "README.md"
requires-python = ">=3.11"
keywords = ['ubo', 'kivy', 'components', 'widgets']
dependencies = [
"headless-kivy >= 0.12.1",
"python-immutable >= 1.0.2",
"qrcode >= 7.4.2",
]
[tool.uv]
dev-dependencies = [
"poethepoet >= 0.29.0",
"pyright >= 1.1.386",
"ruff >= 0.7.1",
]
[project.urls]
homepage = 'https://github.com/ubopod/ubo-gui/'
repository = 'https://github.com/ubopod/ubo-gui/'
documentation = 'https://github.com/ubopod/ubo-gui/'
changelog = 'https://github.com/ubopod/ubo-gu//blob/main/CHANGELOG.md'
[build-system]
requires = ["hatchling", "hatch-vcs"]
build-backend = "hatchling.build"
[tool.hatch.version]
source = "vcs"
[tool.hatch.build.hooks.vcs]
version-file = "ubo_gui/_version.py"
[tool.hatch.version.raw-options]
local_scheme = "setup_scm_schemes:local_scheme"
[tool.hatch.build]
packages = ["ubo_gui"]
[tool.hatch.build.targets.sdist]
packages = ["ubo_gui"]
[tool.poe.tasks]
lint = "ruff check . --unsafe-fixes"
typecheck = "pyright -p pyproject.toml ."
sanity = ["typecheck", "lint"]
download_font.shell = "mkdir -p ubo_gui/assets/fonts; wget https://github.com/google/material-design-icons/raw/master/variablefont/MaterialSymbolsOutlined%5BFILL%2CGRAD%2Copsz%2Cwght%5D.ttf -O ./ubo_gui/assets/fonts/MaterialSymbolsOutlined[FILL,GRAD,opsz,wght].ttf"
[tool.poe.tasks.deploy-to-device]
cmd = 'scripts/deploy.sh'
[tool.ruff]
target-version = 'py311'
[tool.ruff.lint]
select = ['ALL']
ignore = ['INP001', 'PLR0911', 'D203', 'D213']
fixable = ['ALL']
unfixable = []
[tool.ruff.lint.flake8-quotes]
docstring-quotes = "double"
inline-quotes = "single"
multiline-quotes = "double"
[tool.ruff.format]
quote-style = 'single'
[tool.isort]
profile = "black"
[tool.pyright]
exclude = ['typings', '.venv']
filterwarnings = 'error'