-
Notifications
You must be signed in to change notification settings - Fork 7
Expand file tree
/
Copy pathpyproject.toml
More file actions
88 lines (79 loc) · 2.21 KB
/
Copy pathpyproject.toml
File metadata and controls
88 lines (79 loc) · 2.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
[project]
name = "conti"
version = "1.1.1.dev0"
description = "Minimalistic FFMpeg based playout server"
keywords = ["playout", "broadcast", "streaming", "ffmpeg", "television"]
authors = [
{name = "Martin Wacker", email = "martas@imm.cz"},
]
license = "MIT"
readme = "README.md"
requires-python = ">=3.11"
classifiers=[
"Development Status :: 5 - Production/Stable",
"Environment :: Console",
"Intended Audience :: Developers",
"Natural Language :: English",
"Operating System :: POSIX :: Linux",
"Programming Language :: Python",
"Topic :: Multimedia :: Video :: Conversion",
]
[dependency-groups]
dev = [
"mypy>=1.14.1",
"ruff>=0.9.4",
]
[build-system]
requires = ["setuptools>=61.0"]
build-backend = "setuptools.build_meta"
[tool.setuptools.packages.find]
include = ["conti"]
[tool.ruff]
fix = true
line-length = 88
[tool.ruff.format]
indent-style = "space"
line-ending = "auto"
[tool.ruff.lint]
select = ["ALL"]
ignore = [
"BLE", # blind exceptions. I don't like them either, but they are useful in some cases
"COM812", # OK: messes with formatter
"D", # docstrings. Naaah.
"EM", # OK: String literals in exception messages (why not?)
"FBT", # Boolean positional argument (WTF?)
"FIX002", # TODOs
"ISC001", # OK: Incompatible with formatting
"PLR2004", # OK: Magic numbers (just a few)
"PTH", # path-like objects
"S101", # OK: I like asserts. They make mypy happy
"S104", # OK: bind to all interfaces (We need this)
"S110", # OK: except: pass
"S608", # sql injections. let's wait for template strings
"SIM105", # OK: contextlib.suppress is ugly
"TD002", # Author name in TODOs
"TD003", # Issue link in TODOs
"TRY003", # OK: Avoid specicying long messages outside of exceptions
"ANN", # Any
"ERA", # Commented out code
"G004",
"TRY301",
"TRY400",
"RUF012",
"PLR0912",
"PLR0915",
"S603",
"C901",
]
[tool.mypy]
check_untyped_defs = true
disallow_any_generics = true
disallow_untyped_defs = true
exclude = "tests/|venv/|server/|api/"
explicit_package_bases = true
follow_imports = "silent"
no_implicit_reexport = true
strict = true
strict_optional = true
warn_redundant_casts = true
warn_unused_ignores = true