2023-02-25 19:31:34 +03:00
|
|
|
repos:
|
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2024-10-06 06:56:49 +03:00
|
|
|
rev: v5.0.0
|
2023-02-25 19:31:34 +03:00
|
|
|
hooks:
|
|
|
|
|
- id: check-case-conflict
|
|
|
|
|
- id: check-executables-have-shebangs
|
2024-10-10 08:28:10 +03:00
|
|
|
- id: check-illegal-windows-names
|
2023-02-25 19:31:34 +03:00
|
|
|
- id: check-merge-conflict
|
|
|
|
|
- id: check-shebang-scripts-are-executable
|
|
|
|
|
- id: check-symlinks
|
|
|
|
|
- id: check-toml
|
|
|
|
|
- id: check-xml
|
|
|
|
|
- id: destroyed-symlinks
|
|
|
|
|
- id: end-of-file-fixer
|
2023-04-17 22:48:24 +03:00
|
|
|
- id: fix-byte-order-marker
|
2023-02-25 19:31:34 +03:00
|
|
|
- id: mixed-line-ending
|
2023-05-01 18:39:09 +03:00
|
|
|
args:
|
|
|
|
|
- --fix=lf
|
2023-02-25 19:31:34 +03:00
|
|
|
- id: trailing-whitespace
|
2024-10-22 21:19:21 +03:00
|
|
|
- repo: https://github.com/rbubley/mirrors-prettier
|
2024-12-04 09:18:47 +00:00
|
|
|
rev: v3.4.2
|
2023-02-25 19:31:34 +03:00
|
|
|
hooks:
|
|
|
|
|
- id: prettier
|
|
|
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
2024-12-19 15:25:43 +00:00
|
|
|
rev: v0.8.4
|
2023-02-25 19:31:34 +03:00
|
|
|
hooks:
|
|
|
|
|
- id: ruff
|
2023-05-01 18:39:09 +03:00
|
|
|
args:
|
|
|
|
|
- --fix
|
2023-10-25 09:42:02 +03:00
|
|
|
- id: ruff-format
|
2023-02-25 19:31:34 +03:00
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
2024-10-23 10:19:27 +00:00
|
|
|
rev: v1.13.0
|
2023-02-25 19:31:34 +03:00
|
|
|
hooks:
|
|
|
|
|
- id: mypy
|
2023-05-01 18:39:09 +03:00
|
|
|
args:
|
|
|
|
|
- --scripts-are-modules
|
2023-02-25 19:31:34 +03:00
|
|
|
additional_dependencies:
|
2024-10-23 09:40:07 +03:00
|
|
|
- orjson
|
2023-04-20 10:43:56 +03:00
|
|
|
- aiohttp<4
|
2024-01-21 17:45:01 +00:00
|
|
|
- attrs
|
|
|
|
|
- certifi
|
|
|
|
|
- charset-normalizer<4
|
|
|
|
|
- maxminddb<3
|
|
|
|
|
- platformdirs<5
|
2023-04-20 10:43:56 +03:00
|
|
|
- rich<14
|
2024-02-08 20:48:43 +03:00
|
|
|
- tomli<3
|
2024-01-21 17:45:01 +00:00
|
|
|
- types-aiofiles
|
2024-02-08 12:02:51 +03:00
|
|
|
- typing-extensions<5
|
2024-10-17 14:28:44 +03:00
|
|
|
- uvloop<0.22; implementation_name=='cpython' and (sys_platform=='darwin' or sys_platform=='linux')
|
2024-10-04 09:38:44 +03:00
|
|
|
- winloop<0.1.7; implementation_name=='cpython' and (sys_platform=='cygwin' or sys_platform=='win32')
|