
Since pre-commit 2.9.0 (2020-11-21), the types_or key can be used to match multiple disparate file types. For more upstream details, see: https://github.com/pre-commit/pre-commit/issues/607 Add the minimum_pre_commit_version to require pre-commit 2.9.0+. Fixes #402
10 lines
238 B
YAML
10 lines
238 B
YAML
- id: black
|
|
name: black
|
|
description: "Black: The uncompromising Python code formatter"
|
|
entry: black
|
|
language: python
|
|
language_version: python3
|
|
minimum_pre_commit_version: 2.9.0
|
|
require_serial: true
|
|
types_or: [python, pyi]
|