[build-system] requires = ["hatchling>1.24","hatch-requirements-txt>=0.4.1"] build-backend = "hatchling.build" [project] name = "motor" dynamic = ["version", "dependencies", "optional-dependencies"] description = "Non-blocking MongoDB driver for Tornado or asyncio" readme = "README.md" license = { file = "LICENSE" } requires-python = ">=3.10" authors = [ { name = "A. Jesse Jiryu Davis", email = "jesse@mongodb.com" }, ] keywords = [ "asyncio", "bson", "gridfs", "mongo", "mongodb", "motor", "pymongo", "tornado", ] classifiers = [ "Development Status :: 5 - Production/Stable", "Intended Audience :: Developers", "License :: OSI Approved :: Apache Software License", "Natural Language :: English", "Operating System :: MacOS :: MacOS X", "Operating System :: Microsoft :: Windows", "Operating System :: Unix", "Typing :: Typed", "Programming Language :: Python", "Programming Language :: Python :: 3", "Programming Language :: Python :: Implementation :: CPython", "Programming Language :: Python :: Implementation :: PyPy", "Programming Language :: Python :: 3.10", "Programming Language :: Python :: 3.11", "Programming Language :: Python :: 3.12", "Programming Language :: Python :: 3.13", "Programming Language :: Python :: 3.14", ] [project.urls] Homepage = "https://www.mongodb.org" Documentation = "https://motor.readthedocs.io" Source = "https://github.com/mongodb/motor" Tracker = "https://jira.mongodb.org/projects/MOTOR/issues" [tool.hatch.version] path = "motor/_version.py" validate-bump = false [tool.hatch.metadata.hooks.requirements_txt] files = ["requirements.txt"] [tool.hatch.metadata.hooks.requirements_txt.optional-dependencies] aws = ["requirements/aws.txt"] docs = ["requirements/docs.txt"] encryption = ["requirements/encryption.txt"] gssapi = ["requirements/gssapi.txt"] ocsp = ["requirements/ocsp.txt"] snappy = ["requirements/snappy.txt"] test = ["requirements/test.txt"] zstd = ["requirements/zstd.txt"] [tool.mypy] python_version = "3.10" strict = true pretty = true show_error_context = true show_error_codes = true warn_redundant_casts = true warn_unreachable = true disable_error_code = ["type-arg"] enable_error_code = ["ignore-without-code", "redundant-expr", "truthy-bool"] [tool.pytest.ini_options] minversion = "7" testpaths = ["test"] xfail_strict = true log_cli_level = "INFO" addopts = ["-ra", "--strict-config", "--strict-markers", "--maxfail=10", "--durations=5", "--junitxml=xunit-results/TEST-results.xml"] faulthandler_timeout = 1500 filterwarnings = [ "error", "ignore:Bare functions are deprecated, use async ones:DeprecationWarning", "ignore:Application.make_handler:DeprecationWarning", "ignore:unclosed