1
+ #
2
+ # Tool: Black
3
+ #
4
+
1
5
[tool .black ]
2
6
# 'extend-exclude' excludes files or directories in addition to the defaults
3
7
extend-exclude = '''
@@ -9,6 +13,11 @@ extend-exclude = '''
9
13
)
10
14
'''
11
15
16
+
17
+ #
18
+ # Tool: Coverage
19
+ #
20
+
12
21
[tool .coverage .run ]
13
22
branch = true
14
23
omit = [
@@ -22,6 +31,10 @@ exclude_also = [
22
31
" if TYPE_CHECKING:" ,
23
32
]
24
33
34
+ #
35
+ # Tool: Pytest
36
+ #
37
+
25
38
[tool .pytest .ini_options ]
26
39
addopts = " -vvv -rfEs -s --durations=5 --cov=./sentry_sdk --cov-branch --cov-report= --tb=short --junitxml=.junitxml"
27
40
asyncio_mode = " strict"
@@ -34,6 +47,10 @@ markers = [
34
47
verbose = true
35
48
nobeep = true
36
49
50
+ #
51
+ # Tool: Mypy
52
+ #
53
+
37
54
[tool .mypy ]
38
55
allow_redefinition = true
39
56
check_untyped_defs = true
@@ -43,7 +60,7 @@ disallow_subclassing_any = true
43
60
disallow_untyped_decorators = true
44
61
disallow_untyped_defs = true
45
62
no_implicit_optional = true
46
- python_version = " 3.11"
63
+ python_version = " 3.11"
47
64
strict_equality = true
48
65
strict_optional = true
49
66
warn_redundant_casts = true
@@ -165,3 +182,31 @@ ignore_missing_imports = true
165
182
[[tool .mypy .overrides ]]
166
183
module = " grpc.*"
167
184
ignore_missing_imports = true
185
+
186
+ #
187
+ # Tool: Flake8
188
+ #
189
+
190
+ [tool .flake8 ]
191
+ extend-ignore = [
192
+ # Handled by black (Whitespace before ':' -- handled by black)
193
+ " E203" ,
194
+ # Handled by black (Line too long)
195
+ " E501" ,
196
+ # Sometimes not possible due to execution order (Module level import is not at top of file)
197
+ " E402" ,
198
+ # I don't care (Do not assign a lambda expression, use a def)
199
+ " E731" ,
200
+ # does not apply to Python 2 (redundant exception types by flake8-bugbear)
201
+ " B014" ,
202
+ # I don't care (Lowercase imported as non-lowercase by pep8-naming)
203
+ " N812" ,
204
+ # is a worse version of and conflicts with B902 (first argument of a classmethod should be named cls)
205
+ " N804" ,
206
+ ]
207
+ extend-exclude = [" checkouts" , " lol*" ]
208
+ exclude = [
209
+ # gRCP generated files
210
+ " grpc_test_service_pb2.py" ,
211
+ " grpc_test_service_pb2_grpc.py" ,
212
+ ]
0 commit comments