-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.pre-commit-config.yaml
40 lines (34 loc) · 1.15 KB
/
.pre-commit-config.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
############################
# Pre-commit configuration #
############################
# Install via `pip install pre-commit`
# This is run as a precondition to commits, run manually via `pre-commit run`
# When adding new hooks, it may make sense to once run
# `pre-commit run --all-files` as by default only changed files are checked
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-yaml
description: Check yaml files for parseable syntax
- id: check-added-large-files
description: Prevent large files from being committed
- id: check-merge-conflict
description: Check for files that contain merge conflict strings
- id: detect-private-key
description: Detects the presence of private keys
- id: end-of-file-fixer
description: Fix empty lines at ends of files
- id: mixed-line-ending
description: Replace or check mixed line endings
- id: trailing-whitespace
description: Trim trailing whitespaces
- repo: local
hooks:
- id: style
name: Check style
description: Check style
pass_filenames: false
entry: tox -e flake8
language: system
types: [python]