comictagger/.pre-commit-config.yaml

47 lines
1.3 KiB
YAML
Raw Normal View History

2024-06-14 15:29:54 -07:00
exclude: ^(scripts|comictaggerlib/graphics/resources.py)
2022-06-02 18:32:16 -07:00
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2024-10-11 21:07:17 -07:00
rev: v5.0.0
2022-06-02 18:32:16 -07:00
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: debug-statements
- id: name-tests-test
- id: requirements-txt-fixer
- repo: https://github.com/asottile/setup-cfg-fmt
2024-10-11 21:07:17 -07:00
rev: v2.7.0
2022-06-02 18:32:16 -07:00
hooks:
- id: setup-cfg-fmt
- repo: https://github.com/asottile/pyupgrade
2024-10-11 21:07:17 -07:00
rev: v3.18.0
2022-06-02 18:32:16 -07:00
hooks:
- id: pyupgrade
args: [--py39-plus]
- repo: https://github.com/PyCQA/autoflake
rev: v2.3.1
hooks:
- id: autoflake
args: [-i, --remove-all-unused-imports, --ignore-init-module-imports]
2023-04-22 17:54:58 -07:00
- repo: https://github.com/PyCQA/isort
rev: 5.13.2
2023-04-22 17:54:58 -07:00
hooks:
- id: isort
args: [--af,--add-import, 'from __future__ import annotations']
2022-06-02 18:32:16 -07:00
- repo: https://github.com/psf/black
rev: 24.4.2
2022-06-02 18:32:16 -07:00
hooks:
- id: black
- repo: https://github.com/PyCQA/flake8
2024-10-11 21:07:17 -07:00
rev: 7.1.1
2022-06-02 18:32:16 -07:00
hooks:
- id: flake8
2024-04-28 13:57:53 -07:00
additional_dependencies: [flake8-encodings, flake8-builtins, flake8-print, flake8-no-nested-comprehensions]
2022-06-02 18:32:16 -07:00
- repo: https://github.com/pre-commit/mirrors-mypy
2024-10-11 21:07:17 -07:00
rev: v1.11.2
2022-06-02 18:32:16 -07:00
hooks:
- id: mypy
additional_dependencies: [types-setuptools, types-requests, settngs>=0.10.4]
2022-06-06 13:18:45 -07:00
ci:
skip: [mypy]