-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
185 lines (164 loc) · 5.73 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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
[build-system]
requires = [ "setuptools",]
build-backend = "setuptools.build_meta"
[project]
name = "fpx"
version = "0.6.2post1"
description = "Stream archiver/proxy"
classifiers = [ "Development Status :: 3 - Alpha", "License :: OSI Approved :: GNU Affero General Public License v3 or later (AGPLv3+)", "Programming Language :: Python :: 3.8", "Programming Language :: Python :: 3.9", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11",]
requires-python = ">=3.8"
dependencies = [ "aiohttp[speedups]~=3.8.6", "alembic~=1.12.0", "asyncblink==0.3.2", "blinker==1.7.0", "click", "httpx~=0.23.0", "pyjwt", "sanic~=23.12.0", "sanic_ext~=23.12.0", "sqlalchemy~=2.0.22", "typing-extensions", "webargs-sanic~=2.3.5", "websockets>=10.0, <11.0",]
authors = [
{name = "DataShades", email = "[email protected]"},
{name = "Sergey Motornyuk", email = "[email protected]"},
]
maintainers = [
{name = "DataShades", email = "[email protected]"},
]
[project.readme]
file = "README.md"
content-type = "text/markdown"
[project.license]
text = "AGPL"
[project.urls]
Homepage = "https://github.com/DataShades/fpx"
[project.optional-dependencies]
postgresql = [ "psycopg2",]
azure = [ "azure-storage-blob",]
test = [ "aioresponses", "factory_boy", "pytest", "pytest-asyncio", "pytest-factoryboy", "pytest-httpx", "sanic-testing~=23.6.0",]
[project.scripts]
fpx = "fpx.cli:fpx"
[tool.setuptools]
include-package-data = false
[tool.setuptools.package-data]
"*" = [ "alembic.ini", "migrations/**/*",]
[tool.setuptools.packages]
find = {}
[tool.black]
# line-length = 88
# preview = true
[tool.ruff]
target-version = "py38"
select = [
"B", # likely bugs and design problems
"BLE", # do not catch blind exception
"C40", # better list/set/dict comprehensions
"C90", # check McCabe complexity
"COM", # trailing commas
"E", # pycodestyle error
"W", # pycodestyle warning
"F", # pyflakes
"G", # format strings for logging statements
"N", # naming conventions
"PL", # pylint
"PT", # pytest style
"PIE", # misc lints
"Q", # preferred quoting style
"RET", # improvements for return statements
"RSE", # improvements for rise statements
"S", # security testing
"SIM", # simplify code
"T10", # debugging statements
"T20", # print statements
"TID", # tidier imports
"TRY", # better exceptions
"UP", # upgrade syntax for newer versions of the language
]
ignore = [
"E712", # comparison to bool: violated by SQLAlchemy filters
"PT004", # fixture does not return anything, add leading underscore: violated by clean_db
"PLR0911", # Too many return statements
"PLR0913", # Too many arguments to function call
"PLC1901", # simplify comparison to empty string: violated by SQLAlchemy filters
]
[tool.ruff.per-file-ignores]
"fpx/model.py" = [
"UP006", # allow Dict
]
"fpx/route/ticket.py" = [
"C901", # complex with-statement
]
"fpx/config.py" = [
"S104", # 0.0.0.0 binding
]
"fpx/tests/*" = [
"S", # security testing
"PLR2004" # magic value used in comparison
]
[tool.isort]
known_self = "fpx"
sections = "FUTURE,STDLIB,FIRSTPARTY,THIRDPARTY,SELF,LOCALFOLDER"
profile = "black"
[tool.pytest.ini_options]
testpaths = "fpx/tests"
asyncio_mode = "auto"
[tool.pyright]
pythonVersion = "3.9"
include = ["fpx"]
exclude = [
"**/tests",
"**/migrations",
]
strict = []
strictParameterNoneValue = true
# Check the meaning of rules here
# https://github.com/microsoft/pyright/blob/main/docs/configuration.md
reportFunctionMemberAccess = true # non-standard member accesses for functions
reportMissingImports = true
reportMissingModuleSource = true
reportMissingTypeStubs = false
reportImportCycles = true
reportUnusedImport = true
reportUnusedClass = true
reportUnusedFunction = true
reportUnusedVariable = true
reportDuplicateImport = true
reportOptionalSubscript = true
reportOptionalMemberAccess = true
reportOptionalCall = true
reportOptionalIterable = true
reportOptionalContextManager = true
reportOptionalOperand = true
reportTypedDictNotRequiredAccess = false # Context won't work with this rule
reportConstantRedefinition = true
reportIncompatibleMethodOverride = true
reportIncompatibleVariableOverride = true
reportOverlappingOverload = true
reportUntypedFunctionDecorator = false
reportUnknownParameterType = true
reportUnknownArgumentType = false
reportUnknownLambdaType = false
reportUnknownMemberType = false
reportMissingTypeArgument = true
reportInvalidTypeVarUse = true
reportCallInDefaultInitializer = true
reportUnknownVariableType = true
reportUntypedBaseClass = true
reportUnnecessaryIsInstance = true
reportUnnecessaryCast = true
reportUnnecessaryComparison = true
reportAssertAlwaysTrue = true
reportSelfClsParameterName = true
reportUnusedCallResult = false # allow function calls for side-effect only
useLibraryCodeForTypes = true
reportGeneralTypeIssues = true
reportPropertyTypeMismatch = true
reportWildcardImportFromLibrary = true
reportUntypedClassDecorator = false
reportUntypedNamedTuple = true
reportPrivateUsage = true
reportPrivateImportUsage = true
reportInconsistentConstructor = true
reportMissingSuperCall = false
reportUninitializedInstanceVariable = true
reportInvalidStringEscapeSequence = true
reportMissingParameterType = true
reportImplicitStringConcatenation = false
reportUndefinedVariable = true
reportUnboundVariable = true
reportInvalidStubStatement = true
reportIncompleteStub = true
reportUnsupportedDunderAll = true
reportUnusedCoroutine = true
reportUnnecessaryTypeIgnoreComment = true
reportMatchNotExhaustive = true