@@ -81,6 +81,37 @@ version = {attr = "motor._version.version"}
81
81
[tool .setuptools .packages .find ]
82
82
include = [" motor" ]
83
83
84
+ [tool .mypy ]
85
+ python_version = " 3.7"
86
+ strict = true
87
+ pretty = true
88
+ show_error_context = true
89
+ show_error_codes = true
90
+ warn_redundant_casts = true
91
+ warn_unreachable = true
92
+ disable_error_code = [" type-arg" ]
93
+ enable_error_code = [" ignore-without-code" , " redundant-expr" , " truthy-bool" ]
94
+
95
+ [tool .pytest .ini_options ]
96
+ minversion = " 7"
97
+ testpaths = [" test" ]
98
+ xfail_strict = true
99
+ log_cli_level = " INFO"
100
+ addopts = [" -ra" , " --strict-config" , " --strict-markers" ,
101
+ " --maxfail=10" , " --durations=5" , " --junitxml=xunit-results/TEST-results.xml" ]
102
+ faulthandler_timeout = 1500
103
+ filterwarnings = [
104
+ " error" ,
105
+ " ignore:Bare functions are deprecated, use async ones:DeprecationWarning" ,
106
+ " ignore:Application.make_handler:DeprecationWarning" ,
107
+ " ignore:unclosed <socket.socket:ResourceWarning" ,
108
+ " ignore:unclosed event loop:ResourceWarning" ,
109
+ " ignore: The fetch_next property is deprecated:DeprecationWarning" ,
110
+ " ignore:The next_object method is deprecated:DeprecationWarning" ,
111
+ " ignore:unclosed <ssl.SSLSocket:ResourceWarning" ,
112
+ " ignore:datetime.datetime.utcfromtimestamp:DeprecationWarning" ,
113
+ " ignore:datetime.datetime.utcnow:DeprecationWarning" ,
114
+ ]
84
115
85
116
[tool .ruff ]
86
117
target-version = " py37"
0 commit comments