-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
110 lines (98 loc) · 3.21 KB
/
Copy pathpyproject.toml
File metadata and controls
110 lines (98 loc) · 3.21 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
[project]
name = "morgul"
version = "0.1.0"
description = "Minimal Windows 11 Notepad-style Markdown editor"
readme = "README.md"
# App is Unlicense. Runtime deps stay permissive (no GPL/AGPL-only, okay for dev deps).
license = "Unlicense"
authors = [
{ name = "python-processing-unit", email = "darthmalware@orderofsithlords.onmicrosoft.com" },
]
# Floor: markdown-it-py 4 / pytest 9 / modern PySide6 all need 3.11+.
requires-python = ">=3.11"
dependencies = [
# Argon2id KDF for MORGUL files (MIT).
"argon2-cffi>=23.1.0",
# CommonMark → HTML for the preview pane (MIT).
# 4.0.0 is the first 4.x line; requires-python >=3.11 (matches us).
"markdown-it-py>=4.0.0",
# GFM task lists for markdown-it-py (MIT). 0.4.0 still on py>=3.8.
"mdit-py-plugins>=0.4.0",
# Language-aware fenced-code highlighting (BSD-2-Clause).
"pygments>=2.18.0",
# XChaCha20-Poly1305 AEAD via libsodium (Apache-2.0). 1.5.0+ has IETF XChaCha.
"pynacl>=1.5.0",
# Qt widgets only — skip PySide6_Addons. LGPL-3.0 OR GPL (we use LGPL terms).
# 6.6.0: stable Essentials split; 6.9+ needed if you run on 3.13 (resolver picks it).
"PySide6-Essentials>=6.6.0",
# typing.override back-port (stdlib only since 3.12). 4.4.0 first shipped it.
"typing-extensions>=4.4.0",
# zxcvbn password strength estimator (MIT). 4.5.0 supports py 3.8-3.13.
"zxcvbn>=4.5.0",
# Zstandard compression inside MORGUL payloads (BSD).
"zstandard>=0.22.0",
# Fast non-cryptographic hash for dirty-tracking (MIT).
"xxhash>=3.0.0",
# English spell checking via pyspellchecker (MIT).
"pyspellchecker>=0.7.0",
]
[project.scripts]
morgul = "morgul.app:run"
[build-system]
requires = ["uv_build>=0.12.0,<0.13.0"]
build-backend = "uv_build"
[dependency-groups]
dev = [
"pre-commit>=4.6.1",
# 8.0.0: first pytest 8; requires-python was >=3.8 (fine on 3.11+).
"pytest>=8.0.0",
# 0.9.0: modern lint config (preview, stable ALL set). requires-python >=3.7.
"ruff>=0.9.0",
# 0.0.50: rules table + `all = "error"` are dependable. requires-python >=3.8.
"ty>=0.0.50",
"pyinstaller>=6.0.0",
]
[tool.uv]
default-groups = ["dev"]
# --- ruff: strictest practical ---
[tool.ruff]
target-version = "py310"
line-length = 88
preview = true
src = ["src", "tests"]
[tool.ruff.lint]
select = ["ALL"]
ignore = [
# Formatter wars — ruff format owns these.
"missing-trailing-comma",
"single-line-implicit-string-concatenation",
# Docstring style pairs that conflict with each other.
"incorrect-blank-line-before-class",
"multi-line-summary-second-line",
# Unlicense / public domain — no copyright headers.
"missing-copyright-notice",
]
[tool.ruff.lint.per-file-ignores]
# Tests may be a little looser (asserts, magic values, no main-guard demos).
"tests/**" = [
"assert",
"magic-value-comparison",
"D",
"ANN",
"implicit-namespace-package",
]
[tool.ruff.lint.pydocstyle]
convention = "google"
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
line-ending = "lf"
# --- ty: every rule is an error ---
[tool.ty.environment]
python-version = "3.11"
[tool.ty.rules]
all = "error"
[tool.pytest.ini_options]
testpaths = ["tests"]
pythonpath = ["src"]
addopts = "-q"