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

33 lines
857 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
rev: "v0.0.254"
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
rev: 22.12.0
hooks:
- id: black
- repo: https://github.com/pre-commit/mirrors-prettier
rev: "v2.7.1"
hooks:
- id: prettier