2020-04-15 19:45:32 +00:00
|
|
|
repos:
|
|
|
|
|
2020-04-16 18:16:06 +00:00
|
|
|
- repo: local
|
|
|
|
hooks:
|
|
|
|
|
|
|
|
# Custom
|
|
|
|
- id: Validate CircleCI
|
|
|
|
name: Validate CircleCI Config
|
|
|
|
entry: ./scripts/hooks/validate_circleci_config.sh
|
|
|
|
language: script
|
|
|
|
|
2020-04-15 19:45:32 +00:00
|
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
|
|
rev: v2.5.0
|
|
|
|
hooks:
|
|
|
|
|
|
|
|
# Git
|
|
|
|
- id: forbid-new-submodules
|
|
|
|
|
|
|
|
# Files
|
|
|
|
- id: check-byte-order-marker
|
|
|
|
- id: check-executables-have-shebangs
|
|
|
|
- id: check-added-large-files
|
|
|
|
- id: check-symlinks
|
2020-05-19 18:28:29 +00:00
|
|
|
- id: end-of-file-fixer
|
2020-04-15 19:45:32 +00:00
|
|
|
|
|
|
|
# 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-vcs-permalinks
|
|
|
|
|
2020-05-21 16:15:07 +00:00
|
|
|
- repo: https://github.com/Lucas-C/pre-commit-hooks
|
|
|
|
rev: v1.1.7
|
|
|
|
hooks:
|
|
|
|
# License
|
|
|
|
- id: insert-license
|
|
|
|
files: \.py$
|
|
|
|
args: [--license-filepath, '.nucypher-license', --detect-license-in-X-top-lines=16, --comment-style, '"""||"""']
|
|
|
|
|
|
|
|
|
2020-04-18 20:51:48 +00:00
|
|
|
# TODO: Will be incrementally introduced
|
|
|
|
# - repo: https://github.com/PyCQA/bandit
|
|
|
|
# rev: '1.6.2'
|
|
|
|
# hooks:
|
|
|
|
# - id: bandit
|
|
|
|
# args: [--recursive, --ini, .bandit, aggregate, file]
|
|
|
|
# files: .py$
|
|
|
|
#
|
|
|
|
# - repo: https://gitlab.com/pycqa/flake8
|
|
|
|
# rev: '3.7.9'
|
|
|
|
# hooks:
|
|
|
|
# - id: flake8
|
|
|
|
|
|
|
|
# - repo: https://github.com/psf/black
|
|
|
|
# rev: stable
|
|
|
|
# hooks:
|
|
|
|
# - id: black
|
2020-05-19 18:28:29 +00:00
|
|
|
# language_version: python3.6
|