srne-mqtt/.pre-commit-config.yaml

57 lines
1.4 KiB
YAML
Raw Normal View History

2021-10-31 16:03:18 +00:00
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
2023-04-07 22:22:14 +00:00
rev: v4.4.0
2021-10-31 16:03:18 +00:00
hooks:
- id: trailing-whitespace
2023-12-09 15:35:45 +00:00
#- id: end-of-file-fixer
2021-10-31 16:03:18 +00:00
- id: fix-byte-order-marker
- id: fix-encoding-pragma
- id: check-executables-have-shebangs
- id: check-shebang-scripts-are-executable
- id: mixed-line-ending
args:
- "--fix=lf"
- id: check-yaml
- id: check-json
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-symlinks
- id: destroyed-symlinks
- id: detect-private-key
- repo: https://github.com/editorconfig-checker/editorconfig-checker.python
2023-04-07 22:22:14 +00:00
rev: 2.7.1
2021-10-31 16:03:18 +00:00
hooks:
- id: editorconfig-checker
args:
- "--exclude=Protocol.md"
2021-10-31 16:03:18 +00:00
- repo: https://github.com/PyCQA/flake8
rev: 4.0.1
hooks:
- id: flake8
- repo: https://github.com/pre-commit/mirrors-mypy
2023-04-07 22:22:14 +00:00
rev: v1.2.0
2021-10-31 16:03:18 +00:00
hooks:
- id: mypy
2023-04-07 22:22:14 +00:00
args:
- "--install-types"
- "--non-interactive"
2023-12-09 15:35:45 +00:00
- "--check-untyped-defs"
additional_dependencies:
- typing_extensions==4.8.0
2021-10-31 16:03:18 +00:00
- repo: https://github.com/psf/black
2023-04-07 22:22:14 +00:00
rev: 23.3.0
2021-10-31 16:03:18 +00:00
hooks:
- id: black
- repo: https://github.com/PyCQA/isort
2023-04-07 22:22:14 +00:00
rev: 5.12.0
2021-10-31 16:03:18 +00:00
hooks:
- id: isort