forked from macaroni-os/kit-fixups
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
34 lines (34 loc) · 1.25 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
---
minimum_pre_commit_version: 1.15.2
exclude: ^(.*/files/.*)$
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-merge-conflict # Check for files that contain merge conflict strings.
language_version: python3
files: \.(yaml|ebuild|tmpl|py)$
types: [ python, text ]
- id: trailing-whitespace # Trims trailing whitespace.
args: [--markdown-linebreak-ext=md]
language_version: python3
files: \.(yaml|ebuild|tmpl|py)$
types: [ python, text ]
- id: mixed-line-ending # Replaces or checks mixed line ending.
args: [--fix=lf]
language_version: python3
files: \.(yaml|ebuild|tmpl|py)$
types: [ python, text ]
- id: end-of-file-fixer # Makes sure files end in a newline and only a newline.
language_version: python3
files: \.(yaml|ebuild|tmpl|py)$
types: [ python, text ]
- id: check-ast # Simply check whether files parse as valid python.
language_version: python3
- id: check-yaml
- repo: https://github.com/jleclanche/tan
rev: 20.0.2
hooks:
- id: black
language_version: python3
args: [--line-length=119, --use-tabs]