Repository navigation
Expand file tree
/
Copy pathpyproject.toml
More file actions
72 lines (57 loc) · 1.94 KB
/
Copy pathpyproject.toml
File metadata and controls
72 lines (57 loc) · 1.94 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
[project]
name = "esign_webforms"
authors = [{ name = "Avunu LLC", email = "mail@avu.nu" }]
description = "Electronic signatures on Frappe documents through web forms, with signed PDFs"
requires-python = ">=3.14"
readme = "README.md"
classifiers = ["License :: OSI Approved :: MIT License"]
dynamic = ["version"]
dependencies = [
# frappe is installed and managed by bench; see [tool.bench.frappe-dependencies].
]
[build-system]
requires = ["flit_core >=3.4,<4"]
build-backend = "flit_core.buildapi"
[tool.bench.frappe-dependencies]
frappe = ">=16.0.0,<17.0.0"
# These dependencies are only installed when developer mode is enabled
[tool.bench.dev-dependencies]
# package_name = "~=1.1.0"
[tool.ruff]
line-length = 110
target-version = "py314"
[tool.ruff.lint]
select = ["F", "E", "W", "I", "UP", "B", "RUF", "SIM", "C4", "PIE", "PERF", "T20"]
ignore = ["E501", "W191"]
typing-modules = ["frappe.types.DF"]
[tool.ruff.format]
quote-style = "double"
indent-style = "tab"
docstring-code-format = true
[tool.frappe-nix]
schema = 1
profile = "github:Avunu/frappe-standards-profile/main"
frappe-major = 16
# Jinja (www, web form) and frappe microtemplates: oxfmt would re-wrap their tags and split
# translatable strings, which changes the translation keys.
[tool.frappe-nix.js.oxfmt]
ignore = ["esign_webforms/**/*.html"]
[tool.ty.environment]
python-version = "3.14"
[tool.ty.src]
include = ["esign_webforms"]
[tool.ty.terminal]
error-on-warning = true
[tool.coverage.run]
omit = ["*/tests/*", "*/test_*.py", "*/patches/*"]
[tool.coverage.report]
show_missing = true
skip_covered = true
precision = 1
exclude_also = ["if TYPE_CHECKING:", "raise NotImplementedError", "@(abc\\.)?abstractmethod"]
fail_under = 80
[tool.vulture]
exclude = [".venv/", "node_modules/", ".frappe-nix/", ".dev-dist/", ".devenv/", ".direnv/"]
[tool.test_utils.static-analysis]
# esign.*: the old dotted paths the rename shim in hooks.py maps to this package.
whitelist = ["frappe.*", "esign.*"]