-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpyproject.toml
More file actions
95 lines (85 loc) · 2.68 KB
/
Copy pathpyproject.toml
File metadata and controls
95 lines (85 loc) · 2.68 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
[project]
name = "ffmpeg-wrap"
version = "0.4.0"
description = "Typed fluent FFmpeg/ffprobe wrapper with msgspec models"
readme = "README.md"
requires-python = ">=3.10"
license = "MIT"
authors = [{ name = "GitBib" }]
keywords = ["ffmpeg", "ffprobe", "video", "audio", "media", "wrapper", "msgspec"]
classifiers = [
"Development Status :: 4 - Beta",
"Framework :: AsyncIO",
"Framework :: Trio",
"Intended Audience :: Developers",
"License :: OSI Approved :: MIT License",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
"Programming Language :: Python :: 3.13",
"Programming Language :: Python :: 3.14",
"Topic :: Multimedia :: Sound/Audio",
"Topic :: Multimedia :: Video",
"Typing :: Typed",
]
dependencies = [
"msgspec>=0.21.0",
]
[project.optional-dependencies]
async = ["anyio>=4.0"]
[project.urls]
Homepage = "https://github.com/GitBib/ffmpeg-wrap"
Documentation = "https://gitbib.github.io/ffmpeg-wrap/"
Repository = "https://github.com/GitBib/ffmpeg-wrap"
Issues = "https://github.com/GitBib/ffmpeg-wrap/issues"
[dependency-groups]
dev = [
"pytest>=8.0",
"pytest-timeout>=2.3",
"anyio>=4.0",
"trio>=0.25",
]
docs = [
"mkdocs>=1.6",
"mkdocs-material>=9.5",
"mkdocstrings[python]>=0.27",
]
[build-system]
requires = ["hatchling"]
build-backend = "hatchling.build"
[tool.hatch.build.targets.wheel]
packages = ["src/ffmpeg_wrap"]
[tool.pytest.ini_options]
testpaths = ["tests"]
anyio_mode = "auto"
# Backstop against a hung subprocess/async test (the in-test ``fail_after`` guards
# fire first at lower values); the thread method works cross-platform, incl. Windows.
timeout = 300
timeout_method = "thread"
[tool.ruff]
line-length = 120
[tool.ruff.lint]
select = [
"E", "W", "F", "I", "N", "UP", "B", "A", "C4", "SIM", "TCH", "PTH",
"RUF", "PERF", "FURB", "LOG", "T20", "RET", "PIE", "PL", "ASYNC",
"S", "FLY", "ERA", "TID", "ICN", "G", "EM", "RSE", "SLF", "ANN", "ARG", "FBT",
]
ignore = [
"ANN401", "ANN002", "ANN003", "ANN001",
"ARG002",
"S101", "S603", "S607", "S301",
"PLR0912", "PLR0913", "PLR0915", "PLR2004", "PLW0603", "PLC0415",
"EM101", "EM102", "TRY003", "TRY300",
"FBT001", "FBT002", "FBT003",
"G004", "G003",
"SIM108", "RET504",
"TC001", "TC002", "TC003",
"ERA001", "B904", "PERF203", "SLF001",
"N803", "N806", "N812",
"UP007", "RUF001", "ASYNC230",
]
[tool.ruff.lint.per-file-ignores]
"__init__.py" = ["TID252", "F401", "A004"]
"_builder.py" = ["A001", "A002", "A004"]
"test_*.py" = ["T20", "ANN", "S", "ERA", "PLR", "ARG", "FBT", "SLF", "E402", "E501", "B007", "G"]
"conftest.py" = ["ARG"]