38 lines
1017 B
YAML
38 lines
1017 B
YAML
# SPDX-FileCopyrightText: 2022 James R. Barlow
|
|
# SPDX-License-Identifier: MPL-2.0
|
|
|
|
repos:
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.3.0
|
|
hooks:
|
|
- id: check-case-conflict
|
|
- id: check-merge-conflict
|
|
- id: check-toml
|
|
- id: check-yaml
|
|
- id: debug-statements
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.10.1
|
|
hooks:
|
|
- id: isort
|
|
args: ["--profile", "black", "-a", "from __future__ import annotations"]
|
|
- repo: https://github.com/charliermarsh/ruff-pre-commit
|
|
rev: "v0.0.261"
|
|
hooks:
|
|
- id: ruff
|
|
files: "src/.*\\.pyi?$"
|
|
args: [--fix, --exit-non-zero-on-fix]
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.6.0
|
|
hooks:
|
|
- id: black
|
|
language_version: python
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v0.971
|
|
hooks:
|
|
- id: mypy
|
|
additional_dependencies:
|
|
- types-toml
|
|
- types-setuptools
|
|
- types-requests
|
|
- types-Pillow
|