Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
126 lines (111 loc) · 3.31 KB
/
Copy pathpyproject.toml
File metadata and controls
126 lines (111 loc) · 3.31 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
[build-system]
# 1.27 is the first release that reads the PEP 639 `license-files` list.
requires = ["hatchling>=1.27"]
build-backend = "hatchling.build"
[project]
name = "habit-guard"
dynamic = ["version"]
description = "Catches nail biting, mustache pulling, hair pulling and face touching through your webcam and nudges you to stop. Private, offline and light on the CPU."
readme = "README.md"
license = "MIT"
license-files = ["LICENSE"]
authors = [{ name = "Buğra Şıkel" }]
requires-python = ">=3.11,<3.15"
keywords = [
"habit",
"nail-biting",
"onychophagia",
"trichotillomania",
"body-focused-repetitive-behavior",
"bfrb",
"hand-tracking",
"webcam",
"opencv",
"privacy",
"wellbeing",
]
classifiers = [
"Development Status :: 3 - Alpha",
"Environment :: X11 Applications :: Qt",
"Environment :: Win32 (MS Windows)",
"Environment :: MacOS X",
"Intended Audience :: End Users/Desktop",
"Operating System :: Microsoft :: Windows",
"Operating System :: MacOS",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python :: 3",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Topic :: Scientific/Engineering :: Image Recognition",
"Topic :: Utilities",
]
dependencies = [
"numpy>=1.26",
"opencv-python-headless>=4.10",
"PySide6-Essentials>=6.7",
"platformdirs>=4.2",
]
[project.urls]
Homepage = "https://github.com/bugraskl/habit-guard"
Documentation = "https://github.com/bugraskl/habit-guard#readme"
Privacy = "https://github.com/bugraskl/habit-guard/blob/main/docs/privacy.md"
Issues = "https://github.com/bugraskl/habit-guard/issues"
Changelog = "https://github.com/bugraskl/habit-guard/blob/main/CHANGELOG.md"
[project.scripts]
habit-guard = "habit_guard.cli:main"
[project.gui-scripts]
habit-guard-gui = "habit_guard.cli:gui_main"
[dependency-groups]
build = [
"pyinstaller>=6.10",
]
dev = [
"pytest>=8.2",
"ruff>=0.6",
"mypy>=1.11",
"pillow>=12.3.0",
"pyyaml>=6.0.3",
]
[tool.uv]
default-groups = ["dev"]
[tool.hatch.version]
path = "src/habit_guard/__init__.py"
[tool.hatch.build.targets.wheel]
packages = ["src/habit_guard"]
[tool.hatch.build.targets.sdist]
include = ["src/habit_guard", "tests", "README.md", "LICENSE", "CHANGELOG.md"]
[tool.ruff]
line-length = 100
target-version = "py311"
src = ["src", "tests"]
[tool.ruff.lint]
select = ["E", "F", "W", "I", "UP", "B", "SIM", "RUF", "PL", "PT", "C4"]
ignore = [
"PLR0911", # too many return statements
"PLR0912", # too many branches
"PLR0913", # too many arguments
"PLR0915", # too many statements
"PLR0917", # too many positional arguments
"PLR2004", # magic values in comparisons
"PLC0415", # imports inside functions are intentional (optional/platform deps)
"RUF001", # ambiguous unicode characters in UI strings
"RUF002",
"RUF003",
]
[tool.ruff.lint.per-file-ignores]
"tests/**" = ["PLR2004", "PLC2701", "S101"]
# Markdown tables in the release notes template are long lines by nature.
"scripts/release_notes.py" = ["E501"]
[tool.pytest.ini_options]
testpaths = ["tests"]
addopts = "-ra"
filterwarnings = ["ignore::DeprecationWarning"]
[tool.mypy]
python_version = "3.12"
ignore_missing_imports = true
warn_unused_ignores = false
check_untyped_defs = true
files = ["src/habit_guard"]
[tool.ruff.format]
line-ending = "lf"