forked from p34709852/monkey
56 lines
1.4 KiB
YAML
56 lines
1.4 KiB
YAML
default_stages: [commit]
|
|
repos:
|
|
- repo: https://github.com/pycqa/isort
|
|
rev: 5.10.1
|
|
hooks:
|
|
- id: isort
|
|
name: isort (python)
|
|
- id: isort
|
|
name: isort (cython)
|
|
types: [cython]
|
|
- id: isort
|
|
name: isort (pyi)
|
|
types: [pyi]
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.3.0
|
|
hooks:
|
|
- id: black
|
|
- repo: https://gitlab.com/pycqa/flake8
|
|
rev: 4.0.1
|
|
hooks:
|
|
- id: flake8
|
|
additional_dependencies: [dlint]
|
|
- repo: https://github.com/pre-commit/pre-commit-hooks
|
|
rev: v4.1.0
|
|
hooks:
|
|
- id: check-added-large-files
|
|
- id: check-case-conflict
|
|
- id: check-json
|
|
- id: check-merge-conflict
|
|
- id: detect-private-key
|
|
- id: end-of-file-fixer
|
|
- id: trailing-whitespace
|
|
- repo: https://github.com/eslint/eslint
|
|
rev: v8.12.0
|
|
hooks:
|
|
- id: eslint
|
|
args: ["monkey/monkey_island/cc/ui/src/", "--fix", "--max-warnings=0"]
|
|
- repo: local
|
|
hooks:
|
|
- id: pytest
|
|
name: pytest
|
|
entry: bash -c "cd monkey && pytest"
|
|
language: system
|
|
files: "monkey/"
|
|
exclude: "monkey/monkey_island/cc/ui"
|
|
stages: [push]
|
|
- repo: https://github.com/swimmio/pre-commit
|
|
rev: v0.7
|
|
hooks:
|
|
- id: swimm-verify
|
|
- repo: https://github.com/jendrikseipp/vulture
|
|
rev: v2.3
|
|
hooks:
|
|
- id: vulture
|
|
exclude: "monkey/monkey_island/docs/source/conf.py"
|