From d6a299d0d55415def8f77d223f8c6a409e27d77c Mon Sep 17 00:00:00 2001 From: Steven Loria Date: Sun, 17 Oct 2021 14:32:49 -0400 Subject: [PATCH] pre-commit autoupdate and update black config (#1889) --- .pre-commit-config.yaml | 15 ++++++++------- pyproject.toml | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 8d8ce38c0..425de43d6 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,25 +1,26 @@ repos: - repo: https://github.com/asottile/pyupgrade - rev: v2.23.3 + rev: v2.29.0 hooks: - id: pyupgrade args: [--py36-plus] - repo: https://github.com/python/black - rev: 20.8b1 + rev: 21.9b0 hooks: - id: black language_version: python3 - repo: https://gitlab.com/pycqa/flake8 - rev: 3.9.0 + rev: 3.9.2 hooks: - id: flake8 - additional_dependencies: [flake8-bugbear==21.4.3] + additional_dependencies: [flake8-bugbear==21.9.2] - repo: https://github.com/pre-commit/mirrors-mypy - rev: v0.812 + rev: v0.910-1 hooks: - id: mypy + additional_dependencies: [types-simplejson, types-pytz] - repo: https://github.com/asottile/blacken-docs - rev: v1.10.0 + rev: v1.11.0 hooks: - id: blacken-docs - additional_dependencies: [black==20.8b1] + additional_dependencies: [black==21.9b0] diff --git a/pyproject.toml b/pyproject.toml index b49fdd0ec..bdd11526b 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -1,3 +1,3 @@ [tool.black] line-length = 88 -target-version = ['py36', 'py37', 'py38'] +target-version = ['py36', 'py37', 'py38', 'py39']