repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v3.4.0 hooks: - id: trailing-whitespace - id: check-merge-conflict - repo: https://github.com/asottile/add-trailing-comma rev: v2.0.2 hooks: - id: add-trailing-comma - repo: https://github.com/PyCQA/flake8 rev: 3.8.4 hooks: - id: flake8 name: Check project styling args: - --max-line-length=160 - repo: https://github.com/PyCQA/isort rev: 5.7.0 hooks: - id: isort name: Sort python imports (shows diff) args: ["-c", "--diff"] - id: isort name: Sort python imports (fixes files) exclude: ^stix2/canonicalization/