Commit ba433542 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Allow some pre-commit hooks to run in manual stage

Some hooks which perform a cleanup action can now be called en masse
with the "--hook-stage=manual" argument passed to "run":

    pre-commit run --hook-stage=manual [...]
parent 6bb44a2f
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -52,18 +52,21 @@ repos:
  hooks:
  - id: unimport
    args: [--remove, --exclude=types.py|__init__.py]
    stages: [commit, manual]

- repo: https://github.com/timothycrosley/isort
  rev: 5.7.0
  hooks:
  - id: isort
    types: [python]
    stages: [commit, manual]

- repo: https://github.com/asottile/add-trailing-comma
  rev: v2.1.0
  hooks:
  - id: add-trailing-comma
    args: [--py36-plus]
    stages: [commit, manual]

- repo: https://gitlab.com/pycqa/flake8
  rev: 3.8.3