-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathpyproject.toml
142 lines (125 loc) · 3.69 KB
/
pyproject.toml
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
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
[tool.poetry]
name = "sendlive"
version = "0.0.4-alpha1"
description = "sendlive"
authors = ["Liam Brenner <liam.brenner@gmail.com>"]
license = "GPL-3.0"
readme = "README.md"
homepage = "https://github.com/LiamBrenner/sendlive"
repository = "https://github.com/LiamBrenner/sendlive"
documentation = "https://sendlive.readthedocs.io"
classifiers = ["Development Status :: 1 - Planning"]
[tool.poetry.urls]
Changelog = "https://github.com/LiamBrenner/sendlive/releases"
[tool.poetry.dependencies]
python = "^3.9"
click = ">=8.1.7"
boto3 = { version = ">=1.34.0" }
google-cloud-video-live-stream = { version = ">=1.6.0" }
urllib3 = ">=1.26.18,<2.0"
pydantic = ">=2.5.2"
boto3-stubs = { version = ">=1.34.2", extras = [
"essential",
"cloudfront",
"cloudwatch",
"ec2",
"events",
"iam",
"ivs",
"ivs-realtime",
"ivschat",
"logs",
"mediaconnect",
"mediaconvert",
"medialive",
"mediapackage",
"mediapackagev2",
"mediapackage-vod",
"mediastore",
"mediastore-data",
"mediatailor",
"s3",
"secretsmanager",
"ssm",
"sts",
] }
typing-extensions = ">=4.9.0"
types-protobuf = "^4.24.0.4"
faker = "^21.0.0"
google-cloud-storage = "^2.14.0"
google-api-python-client-stubs = "^1.23.0"
[tool.poetry.dev-dependencies]
moto = { extras = [
"medialive",
"mediapackage",
"mediaconnect",
"ivs",
], version = ">=4.2.11" }
Pygments = ">=2.17.2"
ruff = ">=0.1.8"
coverage = { extras = ["toml"], version = ">=7.3.3" }
furo = ">=2023.9.10"
mypy = ">=1.7.1"
pre-commit = ">=3.6.0"
pre-commit-hooks = ">=4.5.0"
pytest = ">=7.4.3"
safety = ">=2.3.5"
sphinx = ">=7.2.6"
sphinx-autobuild = ">=2021.3.14"
sphinx-click = ">=5.1.0"
typeguard = ">=4.1.5"
xdoctest = { extras = ["colors"], version = ">=1.1.2" }
myst-parser = { version = ">=2.0.0" }
[tool.poetry.extras]
aws = ["boto3"]
gcp = ["google-cloud-video-live-stream"]
[tool.poetry.scripts]
sendlive = "sendlive.__main__:main"
[tool.coverage.paths]
source = ["sendlive", "*/sendlive"]
tests = ["tests", "*/tests"]
[tool.coverage.run]
branch = true
source = ["sendlive", "tests"]
[tool.coverage.report]
show_missing = true
fail_under = 50
[tool.mypy]
strict = true
warn_unreachable = true
pretty = true
show_column_numbers = true
show_error_codes = true
show_error_context = true
plugins = ["pydantic.mypy"]
[tool.ruff]
target-version = "py312"
select = ["E4", "E7", "E9", "F", "B", "N", "D", "S", "I", "UP", "PL"]
ignore = ["D100", "UP007"]
[build-system]
requires = ["poetry-core>=1.0.0"]
build-backend = "poetry.core.masonry.api"
# per https://github.com/astral-sh/ruff/issues/4368#issue-1705468153
[tool.ruff.per-file-ignores]
"**/tests/**/*.py" = [
# at least this three should be fine in tests:
"S101", # asserts allowed in tests...
"ARG", # Unused function args -> fixtures nevertheless are functionally relevant...
"FBT", # Don't care about booleans as positional arguments in tests, e.g. via @pytest.mark.parametrize()
# The below are debateable
"PLR2004", # Magic value used in comparison, ...
"S311", # Standard pseudo-random generators are not suitable for cryptographic purposes
"S106", # Actually secret secrets not required in tests, ie can use placeholders
"S105", # Actually secret secrets not required in tests, ie can use placeholders
"D104", # Don't religiously need docstrings for all test modules
"D103", # Don't religiously need docstrings for all test classes/funcs
]
# [flake8]
# select = B,B9,C,D,DAR,E,F,N,RST,S,W
# ignore = E203,E501,RST201,RST203,RST301,W503
# max-line-length = 80
# max-complexity = 10
# docstring-convention = google
# per-file-ignores = tests/*:S101
# rst-roles = class,const,func,meth,mod,ref
# rst-directives = deprecated