From 11163d3563a02eabbb50130b14d17610d3cd2522 Mon Sep 17 00:00:00 2001 From: Manabu Niseki Date: Tue, 7 Jul 2020 15:40:26 +0900 Subject: [PATCH] refactor: update pre-commit hooks --- .pre-commit-config.yaml | 8 ++++---- poetry.lock | 16 +++++++--------- pyproject.toml | 7 +++---- 3 files changed, 14 insertions(+), 17 deletions(-) diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 81fbeaf..7877c19 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -11,18 +11,18 @@ repos: ] - repo: https://github.com/asottile/pyupgrade - rev: v2.6.1 + rev: v2.6.2 hooks: - id: pyupgrade args: [--py37-plus] - repo: https://github.com/asottile/seed-isort-config - rev: v2.1.0 + rev: v2.2.0 hooks: - id: seed-isort-config - repo: https://github.com/timothycrosley/isort - rev: 4.3.21 + rev: 5.0.4 hooks: - id: isort additional_dependencies: [toml] @@ -34,7 +34,7 @@ repos: - id: black - repo: https://github.com/pre-commit/mirrors-eslint - rev: v7.1.0 + rev: v7.4.0 hooks: - id: eslint files: \.(ts|vue)$ diff --git a/poetry.lock b/poetry.lock index 23fb918..9a80abd 100644 --- a/poetry.lock +++ b/poetry.lock @@ -543,14 +543,12 @@ category = "dev" description = "A Python utility / library to sort Python imports." name = "isort" optional = false -python-versions = ">=2.7, !=3.0.*, !=3.1.*, !=3.2.*, !=3.3.*" -version = "4.3.21" +python-versions = ">=3.6,<4.0" +version = "5.0.4" [package.extras] -pipfile = ["pipreqs", "requirementslib"] -pyproject = ["toml"] -requirements = ["pipreqs", "pip-api"] -xdg_home = ["appdirs (>=1.4.0)"] +pipfile_deprecated_finder = ["pipreqs", "requirementslib", "tomlkit (>=0.5.3)"] +requirements_deprecated_finder = ["pipreqs", "pip-api"] [[package]] category = "main" @@ -1145,7 +1143,7 @@ version = "1.0.1" dev = ["pytest (>=4.6.2)", "black (>=19.3b0)"] [metadata] -content-hash = "a0462fefd5c0375ebc7a2449e84f336cd9165c58ef2620c4699817e327f6e153" +content-hash = "ea11f7cbc7c57cd12ab503de7337d4191c19c6ceaf4697e7a65651414c3930f8" python-versions = "^3.8" [metadata.files] @@ -1447,8 +1445,8 @@ ioc-finder = [ {file = "ioc_finder-3.1.0.tar.gz", hash = "sha256:330325271ce61c217aa259c9c5cb155eda62b6e15c576a0f0fb204086ce8e6d4"}, ] isort = [ - {file = "isort-4.3.21-py2.py3-none-any.whl", hash = "sha256:6e811fcb295968434526407adb8796944f1988c5b65e8139058f2014cbe100fd"}, - {file = "isort-4.3.21.tar.gz", hash = "sha256:54da7e92468955c4fceacd0c86bd0ec997b0e1ee80d97f67c35a78b719dccab1"}, + {file = "isort-5.0.4-py3-none-any.whl", hash = "sha256:78661ad751751cb3c181d37302e175a0c644b3714877c073df058c596281d7fd"}, + {file = "isort-5.0.4.tar.gz", hash = "sha256:6ae9cf5414e416954e3421f861cbbfc099b3ace63cb270cc76c6670efd960a0a"}, ] loguru = [ {file = "loguru-0.5.1-py3-none-any.whl", hash = "sha256:e5d362a43cd2fc2da63551d79a6830619c4d5b3a8b976515748026f92f351b61"}, diff --git a/pyproject.toml b/pyproject.toml index 332cbfb..a757b82 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -33,7 +33,7 @@ autopep8 = "^1.5.1" black = "^19.10b0" coveralls = "^2.0.0" flake8 = "^3.7.9" -isort = "^4.3.21" +isort = "^5.0.4" mypy = "^0.770" pre-commit = "^2.2.0" pytest = "^5.4.1" @@ -42,10 +42,9 @@ pytest-cov = "^2.8.1" pytest-mock = "^3.1.0" pytest-randomly = "^3.3.1" pytest-timeout = "^1.3.4" -pyupgrade = "^2.6.1" +pyupgrade = "^2.6.2" respx = "^0.11.1" -seed-isort-config = "^2.1.0" - +seed-isort-config = "^2.2.0" [tool.isort] force_grid_wrap = 0