Files
pyShelf/.pre-commit-config.yaml
Jon Banafato e5a634d805 Add black to pre-commit configuration
[black] is a code formatter for Python that ships with sensible defaults
and requires no configuration.

[black]: https://black.readthedocs.io/en/stable/
2019-11-17 16:58:56 -05:00

32 lines
748 B
YAML
Executable File

repos:
# Meta housekeeping to keep pre-commit operating correctly
- repo: meta
hooks:
- id: check-hooks-apply
- id: check-useless-excludes
# General housekeeping and auto-fixers
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.3.0
hooks:
- id: trailing-whitespace
# Python import formatting
- repo: https://github.com/asottile/seed-isort-config
rev: v1.9.3
hooks:
- id: seed-isort-config
- repo: https://github.com/timothycrosley/isort
rev: 4.3.21-2
hooks:
- id: isort
additional_dependencies: ["toml"]
# Python code formatting
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
language_version: python3.7