nucypher/.pre-commit-config.yaml

49 lines
1.0 KiB
YAML
Raw Normal View History

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.5.0
hooks:
# Git
- id: no-commit-to-branch
args: ['--branch', 'master']
- id: forbid-new-submodules
# Files
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- id: check-added-large-files
- id: check-symlinks
# Syntax
- id: check-yaml
- id: check-toml
- id: check-ast
# Code
- id: check-merge-conflict
- id: debug-statements
- id: detect-private-key
# Docs
- id: check-docstring-first
- id: check-vcs-permalinks
- repo: https://github.com/PyCQA/bandit
rev: '1.6.2'
hooks:
# Vulnerabilities
- id: bandit
args: [--recursive, --ini, .bandit, aggregate, file]
files: .py$
- repo: local
hooks:
# Custom
- id: Validate CircleCI
name: Validate CircleCI Config
entry: ./scripts/hooks/validate_circleci_config.sh
language: script