2020-05-06 13:00:06 +03:00
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2022-04-16 19:07:32 +03:00
|
|
|
rev: v4.2.0
|
2020-05-06 13:00:06 +03:00
|
|
|
hooks:
|
2022-08-14 16:32:29 +03:00
|
|
|
- id: "trailing-whitespace"
|
|
|
|
|
- id: "check-case-conflict"
|
|
|
|
|
- id: "check-merge-conflict"
|
|
|
|
|
- id: "debug-statements"
|
|
|
|
|
- id: "end-of-file-fixer"
|
|
|
|
|
- id: "mixed-line-ending"
|
|
|
|
|
- id: "detect-private-key"
|
2022-11-21 01:06:55 +02:00
|
|
|
- id: "check-yaml"
|
2022-08-14 16:32:29 +03:00
|
|
|
- id: "check-toml"
|
2022-11-21 01:06:55 +02:00
|
|
|
- id: "check-json"
|
2020-05-06 13:00:06 +03:00
|
|
|
|
2021-09-07 00:32:43 +03:00
|
|
|
- repo: https://github.com/psf/black
|
2022-10-10 13:30:06 +03:00
|
|
|
rev: 22.10.0
|
2020-05-06 13:00:06 +03:00
|
|
|
hooks:
|
2021-09-07 00:32:43 +03:00
|
|
|
- id: black
|
|
|
|
|
files: &files '^(aiogram|tests|examples)'
|
2020-05-06 13:00:06 +03:00
|
|
|
|
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-isort
|
2022-04-16 19:07:32 +03:00
|
|
|
rev: v5.10.1
|
2020-05-06 13:00:06 +03:00
|
|
|
hooks:
|
|
|
|
|
- id: isort
|
2021-09-07 00:32:43 +03:00
|
|
|
additional_dependencies: [ toml ]
|
|
|
|
|
files: *files
|
2022-08-14 16:32:29 +03:00
|
|
|
|
2021-09-07 00:32:43 +03:00
|
|
|
- repo: https://gitlab.com/pycqa/flake8
|
|
|
|
|
rev: 3.9.2
|
2020-05-06 13:04:40 +03:00
|
|
|
hooks:
|
2021-09-07 00:32:43 +03:00
|
|
|
- id: flake8
|
|
|
|
|
args: [ '--config=.flake8' ]
|
|
|
|
|
files: *files
|
2022-08-14 16:32:29 +03:00
|
|
|
|
|
|
|
|
- repo: https://github.com/floatingpurr/sync_with_poetry
|
|
|
|
|
rev: 0.2.0
|
|
|
|
|
hooks:
|
|
|
|
|
- id: sync_with_poetry
|
2022-10-02 00:04:31 +03:00
|
|
|
|
|
|
|
|
- repo: https://github.com/python-poetry/poetry
|
|
|
|
|
rev: '1.2.1'
|
|
|
|
|
hooks:
|
|
|
|
|
- id: poetry-check
|
|
|
|
|
- id: poetry-lock
|
2022-10-25 22:43:00 +03:00
|
|
|
args: [ "--no-update" ]
|
2022-10-02 00:04:31 +03:00
|
|
|
- id: poetry-export
|
|
|
|
|
args: [ "-f", "requirements.txt", "--without-hashes", "-o", "requirements/base.txt" ]
|
|
|
|
|
- id: poetry-export
|
|
|
|
|
args: [ "-f", "requirements.txt", "--without-hashes", "-o", "requirements/docs.txt",
|
|
|
|
|
"-E", "fast", "-E", "redis", "-E", "proxy", "-E", "i18n",
|
|
|
|
|
"--with", "docs" ]
|