mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-08 09:11:34 +00:00
Bump pre-commit config
This commit is contained in:
parent
72ad390864
commit
8e54cce58e
3 changed files with 7 additions and 5 deletions
|
|
@ -1,2 +0,0 @@
|
||||||
[settings]
|
|
||||||
known_third_party = aiofiles,aiohttp,aiohttp_socks,aresponses,async_lru,pydantic,pytest,typing_extensions
|
|
||||||
|
|
@ -3,14 +3,13 @@ repos:
|
||||||
rev: stable
|
rev: stable
|
||||||
hooks:
|
hooks:
|
||||||
- id: black
|
- id: black
|
||||||
language_version: python3.7
|
files: ^(aiogram|tests)
|
||||||
files: aiogram
|
|
||||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||||
rev: v2.3.0
|
rev: v2.3.0
|
||||||
hooks:
|
hooks:
|
||||||
- id: flake8
|
- id: flake8
|
||||||
args: ['--config=.flake8']
|
args: ['--config=.flake8']
|
||||||
files: aiogram
|
files: ^(aiogram|tests)
|
||||||
- id: end-of-file-fixer
|
- id: end-of-file-fixer
|
||||||
- id: trailing-whitespace
|
- id: trailing-whitespace
|
||||||
- id: check-merge-conflict
|
- id: check-merge-conflict
|
||||||
|
|
@ -19,13 +18,17 @@ repos:
|
||||||
rev: master
|
rev: master
|
||||||
hooks:
|
hooks:
|
||||||
- id: seed-isort-config
|
- id: seed-isort-config
|
||||||
|
additional_dependencies: [toml]
|
||||||
|
files: aiogram
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-isort
|
- 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
|
rev: master # pick the isort version you'd like to use from https://github.com/pre-commit/mirrors-isort/releases
|
||||||
hooks:
|
hooks:
|
||||||
- id: isort
|
- id: isort
|
||||||
|
additional_dependencies: [toml]
|
||||||
|
|
||||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||||
rev: 'v0.770' # pick sha/tag from https://github.com/pre-commit/mirrors-mypy
|
rev: 'v0.770' # pick sha/tag from https://github.com/pre-commit/mirrors-mypy
|
||||||
hooks:
|
hooks:
|
||||||
- id: mypy
|
- id: mypy
|
||||||
|
files: aiogram
|
||||||
|
|
|
||||||
|
|
@ -94,6 +94,7 @@ include_trailing_comma = true
|
||||||
force_grid_wrap = 0
|
force_grid_wrap = 0
|
||||||
use_parentheses = true
|
use_parentheses = true
|
||||||
line_length = 99
|
line_length = 99
|
||||||
|
known_third_party = ["aiofiles", "aiohttp", "aiohttp_socks", "aresponses", "async_lru", "packaging", "pydantic", "pytest", "typing_extensions"]
|
||||||
|
|
||||||
[build-system]
|
[build-system]
|
||||||
requires = ["poetry>=0.12"]
|
requires = ["poetry>=0.12"]
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue