36 lines
835 B
YAML
36 lines
835 B
YAML
ci:
|
|
autofix_prs: true
|
|
autoupdate_commit_msg: '[pre-commit.ci] pre-commit suggestions'
|
|
autoupdate_schedule: quarterly
|
|
# submodules: true
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v5.0.0
|
|
hooks:
|
|
- id: check-yaml
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- id: check-ast
|
|
- id: check-added-large-files
|
|
|
|
- repo: https://github.com/astral-sh/ruff-pre-commit
|
|
rev: v0.9.10
|
|
hooks:
|
|
- id: ruff
|
|
args: [ --fix ]
|
|
- id: ruff-format
|
|
|
|
- repo: https://github.com/PyCQA/isort
|
|
rev: 5.12.0
|
|
hooks:
|
|
- id: isort
|
|
name: "Sort Imports"
|
|
args: [ "--profile", "black" ]
|
|
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v1.9.0
|
|
hooks:
|
|
- id: mypy
|
|
additional_dependencies: [tokenize-rt==3.2.0]
|