forked from falconry/falcon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pyproject.toml
102 lines (90 loc) · 3.15 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
[build-system]
build-backend = "setuptools.build_meta"
requires = [
"setuptools>=47",
"wheel>=0.34",
"cython>=0.29.21; python_implementation == 'CPython'", # Skip cython when using pypy
]
[tool.mypy]
exclude = "falcon/bench/|falcon/cmd/"
[[tool.mypy.overrides]]
module = [
"cbor2",
"cython",
"daphne",
"gunicorn",
"hypercorn",
"meinheld",
"msgpack",
"mujson",
"pyximport",
"testtools",
"uvicorn"
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
# Pure Cython modules
module = [
"falcon.cyutil.misc",
"falcon.cyutil.reader",
"falcon.cyutil.uri"
]
ignore_missing_imports = true
[[tool.mypy.overrides]]
module = [
"falcon.stream",
"falcon.util.*"
]
disallow_untyped_defs = true
[tool.towncrier]
package = "falcon"
package_dir = ""
filename = "docs/changes/4.0.0.rst"
directory = "docs/_newsfragments"
issue_format = "`#{issue} <https://github.com/falconry/falcon/issues/{issue}>`__"
# TODO(vytas): title_format = false seems to have no effect in towncrier==21.3.0.
# For now, we just have to remember to check the rendered changelog, and,
# if needed, remove the unwanted auto-generated title.
# See also: https://github.com/twisted/towncrier/issues/345.
title_format = false
[[tool.towncrier.type]]
directory = "breakingchange"
name = "Breaking Changes"
showcontent = true
[[tool.towncrier.type]]
directory = "newandimproved"
name = "New & Improved"
showcontent = true
[[tool.towncrier.type]]
directory = "bugfix"
name = "Fixed"
showcontent = true
[[tool.towncrier.type]]
directory = "misc"
name = "Misc"
showcontent = true
[tool.black]
# this is kept to avoid reformatting all the code if one were to
# inadvertently run black on the project
target-version = ["py37"]
skip-string-normalization = true
line-length = 88
extend-exclude = "falcon/vendor"
[tool.blue]
target-version = ["py37"]
line-length = 88
extend-exclude = "falcon/vendor"
[tool.pytest.ini_options]
filterwarnings = [
"ignore:Unknown REQUEST_METHOD. '(CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PUT|TRACE|CHECKIN|CHECKOUT|COPY|LOCK|MKCOL|MOVE|PROPFIND|PROPPATCH|REPORT|UNCHECKIN|UNLOCK|UPDATE|VERSION-CONTROL)':wsgiref.validate.WSGIWarning",
"ignore:Unknown REQUEST_METHOD. '(FOO|BAR|BREW|SETECASTRONOMY)':wsgiref.validate.WSGIWarning",
"ignore:\"@coroutine\" decorator is deprecated:DeprecationWarning",
"ignore:Using or importing the ABCs:DeprecationWarning",
"ignore:cannot collect test class 'TestClient':pytest.PytestCollectionWarning",
"ignore:inspect.getargspec\\(\\) is deprecated:DeprecationWarning",
"ignore:.cgi. is deprecated and slated for removal:DeprecationWarning",
"ignore:path is deprecated\\. Use files\\(\\) instead:DeprecationWarning",
]
testpaths = [
"tests"
]