-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
70 lines (61 loc) · 1.93 KB
/
Copy pathpyproject.toml
File metadata and controls
70 lines (61 loc) · 1.93 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
[project]
name = "formtransform"
version = "0.1.0"
description = "CDL formtransform: Registry-driven survey transformation between XLSForm, LimeSurvey TSV and DDI Codebook."
readme = "README.md"
requires-python = ">=3.13"
dependencies = []
[project.scripts]
codegen = "codegen.cli:main"
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["codegen"]
[dependency-groups]
dev = [
"ruff>=0.8.0",
"pytest>=8.0",
# No Python XSD/schematron deps. Validation runs via the Java
# schematron-worker CLI (workers/schematron-worker/), built with
# `bash scripts/build-worker.sh` (JDK 21 + gradle).
# External XLSForm oracle: validates fixture INPUTS (not our outputs).
# See tests/validation/test_xlsform_pyxform.py.
"pyxform>=2.0",
# LimeSurvey RemoteControl client — drives the live-engine suite
# (tests/live/) and codegen's screenshot/response tooling.
"citric>=2.0",
"requests>=2.31",
]
[tool.ruff]
line-length = 120
target-version = "py312"
[tool.ruff.lint]
select = [
"E", # pycodestyle errors
"W", # pycodestyle warnings
"F", # pyflakes
"I", # isort
"B", # flake8-bugbear
"UP", # pyupgrade
"SIM", # flake8-simplify
"RUF", # ruff-specific
"C90", # mccabe complexity
]
ignore = [
"E501", # line too long (formatter handles)
"RUF003", # ambiguous unicode (×) in comments — intentional survey-grid notation
]
[tool.ruff.lint.mccabe]
max-complexity = 15
[tool.ruff.format]
quote-style = "double"
indent-style = "space"
[tool.pytest.ini_options]
testpaths = ["tests"]
# Live-engine tests need a running survey engine, so they are excluded by
# default; `npm run test:integration` brings the stack up and drops the filter.
addopts = '-ra --strict-markers -m "not docker"'
markers = [
"docker: needs a live survey engine from docker compose (applied automatically to tests/live/)",
]