加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
.pre-commit-config.yaml 1.11 KB
一键复制 编辑 原始数据 按行查看 历史
Simone Basso 提交于 2021-05-20 22:30 . pre-commit: add bandit hook
---
repos:
- repo: https://github.com/PyCQA/doc8
rev: 0.8.1
hooks:
- id: doc8
name: doc8
description: This hook runs doc8 for linting docs
entry: python -m doc8
language: python
files: \.rst$
require_serial: true
- repo: https://github.com/python/black.git
rev: 19.10b0
hooks:
- id: black
language_version: python3
exclude: ^(tests\/hooks-abort-render\/hooks|docs\/HelloCookieCutter1)
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.4.0
hooks:
- id: trailing-whitespace
args: [--markdown-linebreak-ext=md]
- id: mixed-line-ending
- id: check-byte-order-marker
- id: check-executables-have-shebangs
- id: check-merge-conflict
- id: check-symlinks
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8
additional_dependencies:
- flake8-absolute-import
- flake8-black
- flake8-docstrings
- repo: https://github.com/PyCQA/bandit
rev: 1.6.0
hooks:
- id: bandit
args: [--ini, .bandit]
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化