Skip to content

Commit 96f2bb5

Browse files
authored
Merge pull request #415 from insspb/extend-ci
Python 3.9 support
2 parents 93bd9b9 + dd207e9 commit 96f2bb5

File tree

7 files changed

+17
-12
lines changed

7 files changed

+17
-12
lines changed

.github/workflows/main.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
strategy:
1717
fail-fast: false
1818
matrix:
19-
mongodb-version: [3.6, 4.0, 4.2]
19+
mongodb-version: [3.6, 4.0, 4.2, 4.4]
2020
include:
2121
- name: "ubuntu-py36"
2222
python: "3.6"
@@ -27,6 +27,9 @@ jobs:
2727
- name: "ubuntu-py38"
2828
python: "3.8"
2929
tox_env: "py38"
30+
- name: "ubuntu-py39"
31+
python: "3.9"
32+
tox_env: "py39"
3033
- name: "ubuntu-pypy3"
3134
python: "pypy3"
3235
tox_env: "pypy3"

.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/

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
python: 3.8
2222
name: "Test on python 3.8"
2323
env: TOXENV=py38
24+
- language: python
25+
python: 3.9
26+
name: "Test on python 3.9"
27+
env: TOXENV=py39
2428
- language: python
2529
python: pypy3
2630
name: "Test on python pypy3"

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)