booplaysgba/.pre-commit-config.yaml

48 lines
1 KiB
YAML
Raw Normal View History

2021-10-30 11:29:31 +00:00
repos:
# - repo: https://github.com/asottile/pyupgrade
# rev: v2.31.0
# hooks:
# - id: pyupgrade
2022-02-09 10:48:24 +00:00
- repo: https://github.com/pre-commit/pre-commit-hooks
2022-02-12 15:33:19 +00:00
rev: "v4.1.0"
2022-02-09 10:48:24 +00:00
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-yaml
- id: check-added-large-files
2021-10-30 11:29:31 +00:00
2022-02-09 10:48:24 +00:00
- repo: https://github.com/pre-commit/mirrors-mypy
2022-02-12 15:33:19 +00:00
rev: "v0.931"
2022-02-09 10:48:24 +00:00
hooks:
- id: mypy
additional_dependencies: [types-redis]
2021-10-30 11:29:31 +00:00
2022-02-09 10:48:24 +00:00
- repo: https://github.com/pycqa/isort
2022-02-12 15:33:19 +00:00
rev: "5.10.1"
2022-02-09 10:48:24 +00:00
hooks:
- id: isort
name: isort (python)
# - id: isort
# name: isort (cython)
# types: [cython]
# - id: isort
# name: isort (pyi)
# types: [pyi]
2021-10-30 12:22:13 +00:00
2022-02-09 10:48:24 +00:00
- repo: https://github.com/psf/black
rev: "22.1.0"
hooks:
- id: black
language_version: python
2021-10-30 11:29:31 +00:00
2022-02-09 10:48:24 +00:00
- repo: https://gitlab.com/pycqa/flake8
2022-02-12 15:33:19 +00:00
rev: "3.9.2"
2022-02-09 10:48:24 +00:00
hooks:
- id: flake8
2021-10-30 11:29:31 +00:00
2022-02-09 10:48:24 +00:00
- repo: https://github.com/PyCQA/bandit
2022-02-12 15:33:19 +00:00
rev: "1.7.2"
2022-02-09 10:48:24 +00:00
hooks:
- id: bandit