-
Notifications
You must be signed in to change notification settings - Fork 140
/
pyproject.toml
91 lines (82 loc) · 2.06 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
[build-system]
requires = [
"setuptools >= 35.0.2",
"wheel >= 0.29.0",
"incremental >= 21.3.0",
]
build-backend = "setuptools.build_meta"
[tool.towncrier]
package = "treq"
package_dir = "src"
filename = "CHANGELOG.rst"
directory = "changelog.d"
title_format = "{version} ({project_date})"
issue_format = "`#{issue} <https://github.com/twisted/treq/issues/{issue}>`__"
[tool.ruff]
line-length = 88
[tool.mypy]
namespace_packages = true
plugins = "mypy_zope:plugin"
check_untyped_defs = true
disallow_incomplete_defs = true
disallow_untyped_defs = true
no_implicit_optional = true
show_column_numbers = true
show_error_codes = true
strict_optional = true
warn_no_return = true
warn_redundant_casts = true
warn_return_any = true
warn_unreachable = true
warn_unused_ignores = true
disallow_any_decorated = false
disallow_any_explicit = false
disallow_any_expr = false
disallow_any_generics = false
disallow_any_unimported = false
disallow_subclassing_any = false
disallow_untyped_calls = false
disallow_untyped_decorators = false
strict_equality = false
[[tool.mypy.overrides]]
module = [
"treq.content",
]
disallow_untyped_defs = true
[[tool.mypy.overrides]]
module = [
"treq.api",
"treq.auth",
"treq.client",
"treq.multipart",
"treq.response",
"treq.testing",
"treq.test.test_api",
"treq.test.test_auth",
"treq.test.test_client",
"treq.test.test_content",
"treq.test.test_multipart",
"treq.test.test_response",
"treq.test.test_testing",
"treq.test.test_treq_integration",
"treq.test.util",
]
disallow_untyped_defs = false
check_untyped_defs = false
[[tool.mypy.overrides]]
module = [
"treq.test.local_httpbin.child",
"treq.test.local_httpbin.parent",
"treq.test.local_httpbin.shared",
"treq.test.local_httpbin.test.test_child",
"treq.test.local_httpbin.test.test_parent",
"treq.test.local_httpbin.test.test_shared",
]
disallow_untyped_defs = false
check_untyped_defs = false
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"treq._multipart",
]
disallow_untyped_defs = false