From 8e54cce58e8bb6ba5838cab211748128c6025b9b Mon Sep 17 00:00:00 2001 From: Alex Root Junior Date: Wed, 13 May 2020 22:58:58 +0300 Subject: [PATCH] Bump pre-commit config --- .isort.cfg | 2 -- .pre-commit-config.yaml | 9 ++++++--- pyproject.toml | 1 + 3 files changed, 7 insertions(+), 5 deletions(-) delete mode 100644 .isort.cfg diff --git a/.isort.cfg b/.isort.cfg deleted file mode 100644 index 6dbbdc21..00000000 --- a/.isort.cfg +++ /dev/null @@ -1,2 +0,0 @@ -[settings] -known_third_party = aiofiles,aiohttp,aiohttp_socks,aresponses,async_lru,pydantic,pytest,typing_extensions diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index 7cc2e700..ef75d0a4 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -3,14 +3,13 @@ repos: rev: stable hooks: - id: black - language_version: python3.7 - files: aiogram + files: ^(aiogram|tests) - repo: https://github.com/pre-commit/pre-commit-hooks rev: v2.3.0 hooks: - id: flake8 args: ['--config=.flake8'] - files: aiogram + files: ^(aiogram|tests) - id: end-of-file-fixer - id: trailing-whitespace - id: check-merge-conflict @@ -19,13 +18,17 @@ repos: rev: master hooks: - id: seed-isort-config + additional_dependencies: [toml] + files: aiogram - repo: https://github.com/pre-commit/mirrors-isort rev: master # pick the isort version you'd like to use from https://github.com/pre-commit/mirrors-isort/releases hooks: - id: isort + additional_dependencies: [toml] - repo: https://github.com/pre-commit/mirrors-mypy rev: 'v0.770' # pick sha/tag from https://github.com/pre-commit/mirrors-mypy hooks: - id: mypy + files: aiogram diff --git a/pyproject.toml b/pyproject.toml index 259c04cd..60a9c0e3 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -94,6 +94,7 @@ include_trailing_comma = true force_grid_wrap = 0 use_parentheses = true line_length = 99 +known_third_party = ["aiofiles", "aiohttp", "aiohttp_socks", "aresponses", "async_lru", "packaging", "pydantic", "pytest", "typing_extensions"] [build-system] requires = ["poetry>=0.12"]