-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
92 lines (80 loc) · 1.96 KB
/
pyproject.toml
File metadata and controls
92 lines (80 loc) · 1.96 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
# SPDX-FileCopyrightText: Copyright © 2026 BBC
#
# SPDX-License-Identifier: BSD-3-Clause
[project]
name = "ttml-validator"
version = "0.1.0"
description = "Utility for validating TTML-like files against the BBC Subtitle Guidelines EBU-TT-D requirements."
authors = [ {name = "Nigel Megitt <nigel.megitt@bbc.co.uk>"} ]
readme = "README.md"
requires-python = ">=3.13"
dependencies = [
"xmlschema == 4.3.1",
"charset-normalizer == 3.4.4"
]
[project.scripts]
validate-ttml = "src.ttmlValidator:main"
collate-validation-results = "src.validationCollater:main"
[tool.poetry]
packages = [
{ include = "src" },
{ include = "test" }
]
[build-system]
requires = ["poetry-core"]
build-backend = "poetry.core.masonry.api"
[dependency-groups]
dev = [
"coverage==7.13.3",
"debugpy==1.8.20",
"sphinx==9.0.4",
"pydocstyle==6.3.0",
"sphinx-rtd-theme==3.1.0",
"pyyaml==6.0.3",
"ruff==0.15.2",
"reuse==6.2.0",
"ty==0.0.17",
]
[tool.ty.terminal]
output-format = "github"
[tool.ty.rules]
invalid-argument-type = "warn"
[tool.ruff]
# Exclude a variety of commonly ignored directories.
exclude = [
".coverage",
".direnv",
".git",
".git-rewrite",
".github",
".gitmodules",
".ruff_cache",
".venv",
".vscode",
"__pypackages__",
"_build",
"build",
"dist",
"pages",
"LICENSES",
"docs",
"node_modules",
"site-packages",
"venv",
"*/license",
]
line-length = 79
indent-width = 4
[tool.ruff.lint]
# Enable Pyflakes (`F`) and a subset of the pycodestyle (`E`) codes by default.
# Unlike Flake8, Ruff doesn't enable pycodestyle warnings (`W`) or
# McCabe complexity (`C901`) by default.
select = ["E4", "E7", "E9", "F", "W", "E"]
ignore = []
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
unfixable = []
# Allow unused variables when underscore-prefixed.
dummy-variable-rgx = "^(_+|(_+[a-zA-Z0-9_]*[a-zA-Z0-9]+?))$"
[tool.coverage.run]
relative_files = true