Skip to content

Commit ca4512c

Browse files
Bump mypy from 0.780 to 0.781 and pre-commit autoupdate (#1618)
* Bump mypy from 0.780 to 0.781 Bumps [mypy](https://github.com/python/mypy) from 0.780 to 0.781. - [Release notes](https://github.com/python/mypy/releases) - [Commits](python/mypy@v0.780...v0.781) Signed-off-by: dependabot-preview[bot] <support@dependabot.com> * pre-commit autoupdate * Run tox -e lint * Fix flake error * precommit autoupdate Co-authored-by: dependabot-preview[bot] <27856297+dependabot-preview[bot]@users.noreply.github.com> Co-authored-by: Steven Loria <sloria1@gmail.com>
1 parent 08c4d36 commit ca4512c

3 files changed

Lines changed: 8 additions & 7 deletions

File tree

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/asottile/pyupgrade
3-
rev: v1.26.0
3+
rev: v2.6.2
44
hooks:
55
- id: pyupgrade
66
args: ["--py3-plus"]
@@ -10,16 +10,16 @@ repos:
1010
- id: black
1111
language_version: python3
1212
- repo: https://gitlab.com/pycqa/flake8
13-
rev: 3.7.9
13+
rev: 3.8.3
1414
hooks:
1515
- id: flake8
16-
additional_dependencies: ['flake8-bugbear==20.1.0']
16+
additional_dependencies: ['flake8-bugbear==20.1.4']
1717
- repo: https://github.com/pre-commit/mirrors-mypy
18-
rev: v0.780
18+
rev: v0.782
1919
hooks:
2020
- id: mypy
2121
- repo: https://github.com/asottile/blacken-docs
22-
rev: v1.5.0-1
22+
rev: v1.7.0
2323
hooks:
2424
- id: blacken-docs
2525
additional_dependencies: [black==19.10b0]

setup.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
EXTRAS_REQUIRE = {
55
"tests": ["pytest", "pytz", "simplejson"],
66
"lint": [
7-
"mypy==0.780",
7+
"mypy==0.782",
88
"flake8==3.8.3",
99
"flake8-bugbear==20.1.4",
1010
"pre-commit~=2.4",
@@ -25,7 +25,7 @@ def find_version(fname):
2525
Raises RuntimeError if not found.
2626
"""
2727
version = ""
28-
with open(fname, "r") as fp:
28+
with open(fname) as fp:
2929
reg = re.compile(r'__version__ = [\'"]([^\'"]*)[\'"]')
3030
for line in fp:
3131
m = reg.match(line)

tests/test_schema.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@
4747

4848
random.seed(1)
4949

50+
5051
# Run tests with both verbose serializer and 'meta' option serializer
5152
@pytest.mark.parametrize("SchemaClass", [UserSchema, UserMetaSchema])
5253
def test_serializing_basic_object(SchemaClass, user):

0 commit comments

Comments
 (0)