Skip to content

Commit

Permalink
Merge pull request #2513 from bagerard/prepare_release
Browse files Browse the repository at this point in the history
Prepare release
  • Loading branch information
bagerard authored May 4, 2021
2 parents 232071f + d0a15a8 commit 04c26ac
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,15 @@ repos:
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/ambv/black
rev: 20.8b1
rev: 21.4b2
hooks:
- id: black
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.1
hooks:
- id: flake8
- repo: https://github.com/asottile/pyupgrade
rev: v2.13.0
rev: v2.14.0
hooks:
- id: pyupgrade
args: [--py36-plus]
Expand Down
3 changes: 3 additions & 0 deletions docs/changelog.rst
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ Changelog
Development
===========
- (Fill this out as you fix issues and develop your features).

Changes in 0.23.1
===========
- Bug fix: ignore LazyReferenceFields when clearing _changed_fields #2484
- Improve connection doc #2481

Expand Down
2 changes: 1 addition & 1 deletion mongoengine/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
)


VERSION = (0, 23, 0)
VERSION = (0, 23, 1)


def get_version():
Expand Down
2 changes: 1 addition & 1 deletion tests/document/test_class_methods.py
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,7 @@ class BlogPostWithCustomField(BlogPost):
assert BlogPostWithCustomField.compare_indexes() == {"missing": [], "extra": []}

def test_compare_indexes_for_text_indexes(self):
""" Ensure that compare_indexes behaves correctly for text indexes """
"""Ensure that compare_indexes behaves correctly for text indexes"""

class Doc(Document):
a = StringField()
Expand Down
2 changes: 1 addition & 1 deletion tests/fields/test_file_field.py
Original file line number Diff line number Diff line change
Expand Up @@ -308,7 +308,7 @@ class TestFile(Document):
assert test_file.the_file not in [{"test": 1}]

def test_file_disk_space(self):
""" Test disk space usage when we delete/replace a file """
"""Test disk space usage when we delete/replace a file"""

class TestFile(Document):
the_file = FileField()
Expand Down
8 changes: 4 additions & 4 deletions tests/test_signals.py
Original file line number Diff line number Diff line change
Expand Up @@ -249,7 +249,7 @@ def tearDown(self):
assert self.pre_signals == post_signals

def test_model_signals(self):
""" Model saves should throw some signals. """
"""Model saves should throw some signals."""

def create_author():
self.Author(name="Bill Shakespeare")
Expand Down Expand Up @@ -340,7 +340,7 @@ def load_existing_author():
]

def test_signal_kwargs(self):
""" Make sure signal_kwargs is passed to signals calls. """
"""Make sure signal_kwargs is passed to signals calls."""

def live_and_let_die():
a = self.Author(name="Bill Shakespeare")
Expand Down Expand Up @@ -385,7 +385,7 @@ def bulk_create_author():
]

def test_queryset_delete_signals(self):
""" Queryset delete should throw some signals. """
"""Queryset delete should throw some signals."""

self.Another(name="Bill Shakespeare").save()
assert self.get_signal_output(self.Another.objects.delete) == [
Expand All @@ -396,7 +396,7 @@ def test_queryset_delete_signals(self):
]

def test_signals_with_explicit_doc_ids(self):
""" Model saves must have a created flag the first time."""
"""Model saves must have a created flag the first time."""
ei = self.ExplicitId(id=123)
# post save must received the created flag, even if there's already
# an object id present
Expand Down

0 comments on commit 04c26ac

Please sign in to comment.