splunk-malware-filter/.pre-commit-config.yaml

33 lines
856 B
YAML
Raw Normal View History

2023-01-27 09:47:59 +00:00
default_install_hook_types: [pre-push]
repos:
- repo: local
hooks:
- id: standard-python-shebang
name: Standard python shebang
entry: sed
language: system
types: [python]
args: [
"-i", # modify in-place
"-E", # extended regex
"s|^#\\!.*|#\\!/usr/bin/env python|",
]
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.4.0"
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: https://github.com/charliermarsh/ruff-pre-commit
2023-10-01 10:10:49 +00:00
rev: "v0.0.291"
2023-01-27 09:47:59 +00:00
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]
2023-01-27 09:47:59 +00:00
- repo: https://github.com/psf/black
2023-10-01 10:10:49 +00:00
rev: 23.9.1
2023-01-27 09:47:59 +00:00
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
2023-10-01 10:10:49 +00:00
rev: "v3.0.3"
2023-01-27 09:47:59 +00:00
hooks:
- id: prettier