forked from stripe/stripe-python
-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
50 lines (48 loc) · 1007 Bytes
/
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
[tool.black]
line-length = 79
target-version = [
"py35",
"py36",
"py37",
"py38",
"py39",
"py310",
# "py311", # black 21.12b0 doesn't
# "py312", # support these targets
]
exclude = '''
/(
\.eggs/
| \.git/
| \.tox/
| \.venv/
| _build/
| build/
| dist/
| venv/
)
'''
[tool.pyright]
include = [
"stripe",
"tests/test_generated_examples.py",
"tests/test_exports.py",
]
exclude = ["build", "**/__pycache__"]
reportMissingTypeArgument = true
reportUnnecessaryCast = true
reportUnnecessaryComparison = true
reportUnnecessaryContains = true
reportUnnecessaryIsInstance = true
reportPrivateImportUsage = true
reportUnnecessaryTypeIgnoreComment = true
[tool.mypy]
follow_imports = "silent"
python_version = "3.10"
files = ["tests/test_generated_examples.py", "tests/test_exports.py"]
disallow_untyped_calls = true
disallow_untyped_defs = true
warn_unused_ignores = true
no_implicit_reexport = true
[tool.pytest.ini_options]
filterwarnings = "ignore::DeprecationWarning"