-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
39 lines (37 loc) · 1.01 KB
/
.pre-commit-config.yaml
File metadata and controls
39 lines (37 loc) · 1.01 KB
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
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: check-ast
- id: check-byte-order-marker
- id: trailing-whitespace
exclude: >
(?x)^(
.*\.patch
)$
- id: check-docstring-first
- id: check-executables-have-shebangs
- id: check-json
- id: check-merge-conflict
- id: check-symlinks
- id: check-xml
- id: check-yaml
- id: end-of-file-fixer
- id: mixed-line-ending
args: [--fix=lf]
- repo: local
hooks:
- id: black
name: Run black code formatter
description: This hook formats Python code.
entry: black -q
language: system
args: [-S]
types: [python]
# note: use env LC_ALL=C.UTF-8 on Linux
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v2.2.3
hooks:
- id: flake8
# note: ignores and excluded files in .flake8
# additional_dependencies: [pep8-naming]