2023-02-22 03:49:38 +03:00
|
|
|
default_language_version:
|
|
|
|
python: python3
|
|
|
|
|
|
|
|
ci:
|
|
|
|
autofix_prs: true
|
|
|
|
autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions'
|
|
|
|
autoupdate_schedule: 'quarterly'
|
2021-09-11 02:39:16 +03:00
|
|
|
|
|
|
|
repos:
|
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
2023-02-22 03:49:38 +03:00
|
|
|
rev: v4.4.0
|
2021-09-11 02:39:16 +03:00
|
|
|
hooks:
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-ast
|
2023-02-22 03:49:38 +03:00
|
|
|
- id: check-yaml
|
|
|
|
- id: check-toml
|
|
|
|
- id: check-json
|
2021-09-11 02:39:16 +03:00
|
|
|
- id: check-byte-order-marker
|
2023-02-28 19:27:14 +03:00
|
|
|
exclude: .gitignore
|
2021-09-11 02:39:16 +03:00
|
|
|
- id: check-merge-conflict
|
|
|
|
- id: detect-private-key
|
|
|
|
- id: trailing-whitespace
|
2023-02-28 19:27:14 +03:00
|
|
|
- id: end-of-file-fixer
|
|
|
|
- id: no-commit-to-branch
|
2024-03-20 01:46:56 +03:00
|
|
|
|
2024-08-12 05:54:18 +03:00
|
|
|
- repo: https://github.com/asottile/pyupgrade
|
|
|
|
rev: v2.31.1
|
|
|
|
hooks:
|
|
|
|
- id: pyupgrade
|
|
|
|
args: [--py38-plus]
|
|
|
|
name: Upgrade code
|
|
|
|
|
2023-04-28 04:54:55 +03:00
|
|
|
- repo: https://github.com/psf/black
|
|
|
|
rev: 23.3.0
|
|
|
|
hooks:
|
|
|
|
- id: black
|
2024-03-20 01:46:56 +03:00
|
|
|
|
|
|
|
- repo: https://github.com/executablebooks/mdformat
|
|
|
|
rev: 0.7.17
|
|
|
|
hooks:
|
|
|
|
- id: mdformat
|
|
|
|
additional_dependencies:
|
|
|
|
- mdformat-gfm
|
|
|
|
- mdformat-black
|
|
|
|
- mdformat_frontmatter
|
|
|
|
|
2023-04-28 04:54:55 +03:00
|
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
|
|
rev: v0.0.261
|
|
|
|
hooks:
|
|
|
|
- id: ruff
|
|
|
|
args: ["--fix"]
|