Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 4 additions & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
strategy:
fail-fast: false
matrix:
mongodb-version: [3.6, 4.0, 4.2]
mongodb-version: [3.6, 4.0, 4.2, 4.4]
include:
- name: "ubuntu-py36"
python: "3.6"
Expand All @@ -27,6 +27,9 @@ jobs:
- name: "ubuntu-py38"
python: "3.8"
tox_env: "py38"
- name: "ubuntu-py39"
python: "3.9"
tox_env: "py39"
- name: "ubuntu-pypy3"
python: "pypy3"
tox_env: "pypy3"
Expand Down
10 changes: 3 additions & 7 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,19 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
rev: v3.3.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
- repo: https://github.com/jumanjihouse/pre-commit-hooks
rev: 1.11.2
hooks:
- id: markdownlint
- repo: https://github.com/psf/black
rev: stable
rev: 20.8b1
hooks:
- id: black
language_version: python3.6
exclude: ^docs/
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
rev: 3.8.4
hooks:
- id: flake8
exclude: ^docs/|^examples/
4 changes: 4 additions & 0 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ jobs:
python: 3.8
name: "Test on python 3.8"
env: TOXENV=py38
- language: python
python: 3.9
name: "Test on python 3.9"
env: TOXENV=py39
- language: python
python: pypy3
name: "Test on python pypy3"
Expand Down
3 changes: 1 addition & 2 deletions flask_mongoengine/operation_tracker.py
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,7 @@ def reset():


def _get_ordering(son):
"""Helper function to extract formatted ordering from dict.
"""
"""Helper function to extract formatted ordering from dict."""

def fmt(field, direction):
return "{0}{1}".format({-1: "-", 1: "+"}[direction], field)
Expand Down
1 change: 1 addition & 0 deletions setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ def get_version(version_tuple):
"Programming Language :: Python :: 3.6",
"Programming Language :: Python :: 3.7",
"Programming Language :: Python :: 3.8",
"Programming Language :: Python :: 3.9",
"Programming Language :: Python :: Implementation :: PyPy"
"Programming Language :: Python :: Implementation :: CPython",
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",
Expand Down
4 changes: 3 additions & 1 deletion tests/test_pagination.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ def test_list_field_pagination(app, todo):

comments = ["comment: %s" % i for i in range(42)]
todo = Todo(
title="todo has comments", comments=comments, comment_count=len(comments),
title="todo has comments",
comments=comments,
comment_count=len(comments),
).save()

# Check without providing a total
Expand Down
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[tox]
envlist = {py36,py37,py38,pypy3},lint
envlist = {py36,py37,py38,py39,pypy3},lint

[testenv]
commands =
Expand Down