-
Notifications
You must be signed in to change notification settings - Fork 8
/
pyproject.toml
137 lines (122 loc) · 3.11 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
[project]
name = "inngest"
version = "0.4.17"
authors = [{ name = "Inngest Inc.", email = "[email protected]" }]
description = "Python SDK for Inngest"
readme = "README.md"
classifiers = [
"Development Status :: 5 - Production/Stable",
"Framework :: Django",
"Framework :: FastAPI",
"Framework :: Flask",
"Intended Audience :: Developers",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: 3.10",
"Programming Language :: Python :: 3.11",
"Programming Language :: Python :: 3.12",
]
requires-python = ">=3.9"
dependencies = [
"httpx>=0.24.0",
"jcs>=0.2.1",
"pydantic>=2.1.1",
"typing-extensions>=4.8.0",
]
[project.optional-dependencies]
extra = [
"Django==4.2",
"Flask==2.3.0",
"boto3-stubs[s3]==1.35.46 ",
"boto3==1.35.47",
"build==1.0.3",
"cryptography==42.0.5",
"django-types==0.19.1",
"fastapi==0.100.0",
"moto[s3,server]==5.0.18",
"mypy==1.10.0",
"pynacl==1.5.0",
"pytest==7.4.2",
"pytest-django==4.7.0",
"pytest-xdist[psutil]==3.3.1",
"ruff==0.1.9",
"sentry-sdk==2.1.1",
"toml==0.10.2",
"tornado==6.3",
"types-toml==0.10.8.7",
"types-tornado==5.1.1",
"uvicorn==0.23.2",
# Werkzeug v3.1 deleted something that breaks our minimum Flask version
# (v2.3.0). So for now, only allow Werkzeug versions below v3.1. See this PR
# for the deleted thing: https://github.com/pallets/werkzeug/pull/2967
"werkzeug<3.1",
]
[project.urls]
"Homepage" = "https://github.com/inngest/inngest-py"
"Bug Tracker" = "https://github.com/inngest/inngest-py/issues"
[tool.mypy]
enable_error_code = ["possibly-undefined", "redundant-expr", "truthy-bool"]
incremental = false
strict = true
warn_unreachable = true
[tool.pylint.'MESSAGES CONTROL']
disable = [
'broad-exception-caught',
'broad-exception-raised',
'duplicate-code',
'fixme',
'invalid-envvar-value',
'line-too-long',
'missing-docstring',
'too-few-public-methods',
'too-many-arguments',
'too-many-instance-attributes',
'too-many-return-statements',
'unused-argument',
]
[tool.pytest.ini_options]
filterwarnings = ['ignore::pytest.PytestAssertRewriteWarning']
[tool.ruff]
exclude = [".venv"]
# https://docs.astral.sh/ruff/rules
extend-select = [
'ASYNC',
'C90',
'D',
'ERA',
'I',
'N',
'Q',
'RUF',
'S',
'T',
'UP',
]
extend-ignore = [
'D100',
'D200',
'D202',
'D203',
'D205',
'D212',
'D400',
'D401',
'D415',
'S112',
# Can't use the "|" operator for unions until we drop support for Python 3.9
'UP007',
]
line-length = 80
mccabe = { max-complexity = 21 }
[[tool.mypy.overrides]]
module = "jcs"
ignore_missing_imports = true
[tool.ruff.extend-per-file-ignores]
"examples/**/*.py" = ['D', 'T20']
"inngest/**/*_test.py" = ['C901', 'D', 'N', 'S', 'T20']
"tests/**/*.py" = ['C901', 'D', 'N', 'S', 'T20']
[tool.ruff.lint]
# Allow fix for all enabled rules (when `--fix`) is provided.
fixable = ["ALL"]
[tool.setuptools.package-data]
# Makes py.typed appear when users install the inngest package.
inngest = ["py.typed"]