repos:

- repo: local
  hooks:
  - id: black
    name: black
    entry: black
    language: system
    types: [python]
    files: tests|dallinger|dallinger_scripts|demos

- repo: git://github.com/pre-commit/pre-commit-hooks
  rev: v2.1.0
  hooks:
  - id: flake8
    stages: [push]

repos:

- repo: local
  hooks:
  - id: black
    name: black
    entry: black
    language: system
    types: [python]
    files: ^(tests|dallinger|dallinger_scripts|demos)/

- repo: git://github.com/pre-commit/pre-commit-hooks
  rev: v2.1.0
  hooks:
  - id: flake8
    stages: [push]

Use more specific pre-commit files regex.
Use more specific pre-commit files regex.
