-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
22 lines (22 loc) · 992 Bytes
/
.pre-commit-config.yaml
File metadata and controls
22 lines (22 loc) · 992 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
---
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.4.0
hooks:
- id: check-added-large-files # Prevent giant files from being committed
- id: check-case-conflict # Check for files that would conflict in case-insensitive filesystems
- id: check-executables-have-shebangs # Ensures that (non-binary) executables have a shebang.
- id: check-json # This hook checks json files for parseable syntax.
- id: check-yaml # This hook checks yaml files for parseable syntax.
- id: end-of-file-fixer # Ensures that a file is either empty, or ends with one newline.
- id: pretty-format-json # This hook sets a standard for formatting JSON files.
- id: trailing-whitespace # This hook trims trailing whitespace.
- repo: https://github.com/PyCQA/isort
rev: 5.8.0
hooks:
- id: isort
args: ["--profile", "black"]
- repo: https://github.com/psf/black
rev: 20.8b1
hooks:
- id: black