Commit Graph

410 Commits

Author SHA1 Message Date
Shane Harvey
0092b0af79
PYTHON-2504 Run pyupgrade 3.4.0 and ruff 0.0.265 (#1196)
pyupgrade --py37-plus bson/*.py pymongo/*.py gridfs/*.py test/*.py tools/*.py test/*/*.py
ruff --fix-only --select ALL --fixable ALL --target-version py37 --line-length=100 --unfixable COM812,D400,D415,ERA001,RUF100,SIM108,D211,D212,SIM105,SIM,PT,ANN204,EM bson/*.py pymongo/*.py gridfs/*.py test/*.py test/*/*.py
2023-05-11 15:27:17 -07:00
Jean-Christophe Fillion-Robin
d340710e3d
PYTHON-3703 Fix typos and add codespell pre-commit hook (#1203)
Update pre-commit config adding "codespell" hook
2023-05-03 14:47:24 -07:00
Shane Harvey
bc9029a228
PYTHON-3679 Support mypy 1.2 (#1194) 2023-04-28 14:27:06 -07:00
Steven Silvester
e75cfec34f
PYTHON-3686 Consolidate CodecOptions Typings (#1199) 2023-04-28 16:11:27 -05:00
Steven Silvester
e9a6482c4d
PYTHON-3610 Add blacken-docs to pre-commit hook (#1170) 2023-03-14 15:37:45 -05:00
Julius Park
05845b8038
PYTHON-3562 Type annotation of bson.json_utils.loads is incorrect (only accepts str) (#1152) 2023-02-10 15:28:04 -08:00
Julius Park
b3099c62de
PYTHON-3558 Missing docs for JSONOptions (#1143) 2023-01-30 12:13:30 -08:00
Steven Silvester
a3720d9cea
PYTHON-3568 Intellisense highlights multiple PyMongo methods because of CodecOptions (#1139) 2023-01-25 09:41:23 -06:00
Steven Silvester
7299dff84d
PYTHON-3546 bson.CodecOptions docs missing unicode_decode_error_handler=ignore option in newer documentation (#1131) 2023-01-05 13:55:47 -06:00
Steven Silvester
df77653ccc
PYTHON-3347 Test against Python 3.11 prerelease (#1069) 2022-10-13 06:09:23 -05:00
Steven Silvester
449cb8fb0f
PYTHON-2722 Improve performance of find/aggregate_raw_batches (#1047) 2022-09-22 15:14:40 -05:00
Ben Warner
3204290e93
PYTHON-2484 Added lock sanitization for MongoClient and ObjectId (#985) 2022-08-04 16:58:56 -07:00
Ben Warner
46673c3705
PYTHON-3379 Refactored DatetimeConversionOpts to DatetimeConversion (#1031) 2022-08-04 12:53:57 -07:00
Ben Warner
fbb8dde826
PYTHON-3375 Added docstrings to DatetimeConversionOpts (#1024)
* Added docstrings

* Fixed detail

* Fixed punctuation and links

Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-29 15:53:38 -07:00
Ben Warner
3c18c20795
PYTHON-3377 datetime_ms documentation page is empty (#1026)
Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-29 12:07:04 -07:00
Ben Warner
0c56d56658
PYTHON-3371 Remove DatetimeConversionOpts.__repr__ (#1023)
* Removed __repr__ and adjusted repr string

* Changed to %s

Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-28 15:55:34 -07:00
Ben Warner
14002a5a0d
PYTHON-1824 Allow encoding/decoding out-of-range datetimes via DatetimeMS and datetime_conversion (#981)
https://jira.mongodb.org/browse/PYTHON-1824

Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-07-27 16:53:52 -07:00
Shane Harvey
864812d400
PYTHON-3366 Support mypy 0.971 and test with latest version (#1021)
PYTHON-3369 Use https://www.gevent.org
2022-07-25 15:25:41 -07:00
Steven Silvester
b40f13bf7d
PYTHON-3311 Module "pymongo" does not explicitly export attribute "MongoClient"; implicit reexport disabled (#994) 2022-07-06 18:30:00 -05:00
Ben Warner
3f7231a1a2
PYTHON-3048 Fixed bug with incorrect validation of UTF-8 regex patterns (#970) 2022-06-13 16:04:30 -07:00
Ben Warner
be3008aa11
PYTHON-2110 Refactored some C to avoid symbol conflicts (#968)
* Refactored to avoid symbol conflicts

* Forgot a replacement

* Found a symbol

* Undid symbol replacement for PyInit__cmessage

* Changed cbson too

Co-authored-by: Ben Warner <ben.warner@mongodb.com>
2022-06-13 11:42:41 -07:00
Shane Harvey
a7579b02d2
PYTHON-3259 Improve migration guide for loads/JSONOptions/tz_aware (#946) 2022-05-10 11:05:59 -07:00
Shane Harvey
dca72b7884
PYTHON-3222 Fix memory leak in cbson decode_all (#927)
Add decode_all keyword arg for codec_options.
Make decode_all show up in docs.
2022-04-12 17:18:23 -07:00
Steven Silvester
b3604a81d3
PYTHON-3171 Add usage of NoReturn annotation (#901) 2022-03-16 15:26:10 -05:00
Steven Silvester
474420b2e5
PYTHON-3085 Audit consistent and correct types for _DocumentOut (#893) 2022-03-16 05:56:07 -05:00
Steven Silvester
087950d869
PYTHON-3164 Outdated link from PyMongo docs to community forum (#895) 2022-03-15 15:49:11 -05:00
Steven Silvester
a61ea0660a
PYTHON-3090 Clean up Database Command Typing (#879) 2022-03-02 13:10:15 -06:00
Steven Silvester
a0fe7c03af
PYTHON-3120 Set up flake8 linting (#868) 2022-02-17 06:44:08 -06:00
Steven Silvester
2db512f5d5
PYTHON-3078 Remove Use of Unsupported NoReturn Type Class (#864) 2022-02-14 16:14:36 -06:00
Steven Silvester
80314255d7
PYTHON-3092 Add Type Discovery Files (#863) 2022-02-11 12:41:29 -06:00
Steven Silvester
c47557bc63
PYTHON-3062 Make Regex generic (#860) 2022-02-10 18:59:26 -06:00
Steven Silvester
5578999a90
PYTHON-1834 Use a code formatter (#852) 2022-02-09 06:44:28 -06:00
Steven Silvester
f4cef37328
PYTHON-3064 Add typings to test package (#844) 2022-02-07 19:33:41 -06:00
Steven Silvester
dd6c140d43
PYTHON-3060 Add typings to pymongo package (#831) 2022-02-02 21:12:36 -06:00
Shane Harvey
b7c33debbf
PYTHON-3046 Document support for backslashreplace and surrogateescape (#836) 2022-01-21 10:08:48 -08:00
Steven Silvester
52ed5a4135
PYTHON-3052 Add Typings to PyMongo Itself (#829) 2022-01-13 16:09:48 -06:00
Shane Harvey
e154642968
Removed references to outdated server versions (#812) 2021-12-07 15:47:28 -08:00
Julius Park
70f7fe7542
PYTHON-3028 $regex as a field name does not allow for non-string values (#807) 2021-12-06 13:13:15 -08:00
Shane Harvey
24cc4c42bf
PYTHON-3019 Fix doc test failures (#794)
Remove pymongo 2 to 3 migration guide.
Make raw_bson doc tests less flakey.
2021-11-16 17:14:33 -08:00
Julius Park
eabd2235ba
PYTHON-2859 Add BSON Binary subtype 7 (#763) 2021-10-26 14:24:27 -07:00
Julius Park
c38085269b
PYTHON-1337 Add __slots__ to commonly used bson classes (#739) 2021-09-24 13:54:40 -07:00
Julius Park
fcedc510e1
PYTHON-2501 Remove iteritems from son.SON (#731) 2021-09-22 12:18:19 -07:00
Julius Park
fbd5599deb
PYTHON-2518 SON class should be compatible with Python 3's OrderedDict API (#730) 2021-09-16 15:21:40 -07:00
Julius Park
23fe13fcba
PYTHON-1965 The bson package should not depend on the pymongo package (#725) 2021-09-15 12:56:18 -07:00
Julius Park
e3771587c3
PYTHON-1949 CodecOptions and JSONOptions should have the same default value for tz_aware (#720) 2021-09-14 16:54:11 -07:00
Shane Harvey
fb20975a1f
PYTHON-2245 Change default uuidRepresentation to UNSPECIFIED (ie disable UUID encoding by default) (#724)
This change also stops decoding both 3 and 4 subtypes as UUIDs.
With standard, only subtype 4 is decoded to UUID and subtype 3 is decoded to Binary.
With legacy representations, only subtype 3 is decoded to UUID and subtype 4 is decoded to Binary.
2021-09-14 16:48:52 -07:00
Shane Harvey
afa3997bb2
PYTHON-2680 Breaking changes to DBRef BSON+JSON decoding (#722)
Implement DBRef spec version 1.0 tests.
2021-09-10 11:03:25 -07:00
Julius Park
7a4b617b5d
PYTHON-2883 Regex decoding error tests in top.json have unexpected, invalid syntax (#721) 2021-09-09 18:32:53 -07:00
Shane Harvey
fb38fbe35e
PYTHON-2046 Change default JSONMode and dumps output from LEGACY to RELAXED (#711) 2021-09-08 11:33:41 -07:00
Shane Harvey
f9bfd11290
PYTHON-2870 Add support for man/text/latex/etc.. docs output (#708)
Regenerate sphinx makefile with sphinx-quickstart 3.5.4.
Remove problematic mongodoc sphinx extension.
2021-08-19 13:31:46 -07:00