Skip to content

Commit 95e82de

Browse files
committed
Python 3.9 support added
1 parent 93bd9b9 commit 95e82de

File tree

5 files changed

+9
-11
lines changed

5 files changed

+9
-11
lines changed

.pre-commit-config.yaml

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v2.4.0
3+
rev: v3.3.0
44
hooks:
55
- id: trailing-whitespace
66
- id: end-of-file-fixer
77
- id: check-yaml
88
- id: check-added-large-files
9-
- repo: https://github.com/jumanjihouse/pre-commit-hooks
10-
rev: 1.11.2
11-
hooks:
12-
- id: markdownlint
139
- repo: https://github.com/psf/black
14-
rev: stable
10+
rev: 20.8b1
1511
hooks:
1612
- id: black
1713
language_version: python3.6
1814
exclude: ^docs/
1915
- repo: https://gitlab.com/pycqa/flake8
20-
rev: 3.7.9
16+
rev: 3.8.4
2117
hooks:
2218
- id: flake8
2319
exclude: ^docs/|^examples/

flask_mongoengine/operation_tracker.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -250,8 +250,7 @@ def reset():
250250

251251

252252
def _get_ordering(son):
253-
"""Helper function to extract formatted ordering from dict.
254-
"""
253+
"""Helper function to extract formatted ordering from dict."""
255254

256255
def fmt(field, direction):
257256
return "{0}{1}".format({-1: "-", 1: "+"}[direction], field)

setup.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ def get_version(version_tuple):
6666
"Programming Language :: Python :: 3.6",
6767
"Programming Language :: Python :: 3.7",
6868
"Programming Language :: Python :: 3.8",
69+
"Programming Language :: Python :: 3.9",
6970
"Programming Language :: Python :: Implementation :: PyPy"
7071
"Programming Language :: Python :: Implementation :: CPython",
7172
"Topic :: Internet :: WWW/HTTP :: Dynamic Content",

tests/test_pagination.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,9 @@ def test_list_field_pagination(app, todo):
3535

3636
comments = ["comment: %s" % i for i in range(42)]
3737
todo = Todo(
38-
title="todo has comments", comments=comments, comment_count=len(comments),
38+
title="todo has comments",
39+
comments=comments,
40+
comment_count=len(comments),
3941
).save()
4042

4143
# Check without providing a total

tox.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
[tox]
2-
envlist = {py36,py37,py38,pypy3},lint
2+
envlist = {py36,py37,py38,py39,pypy3},lint
33

44
[testenv]
55
commands =

0 commit comments

Comments
 (0)