-
Notifications
You must be signed in to change notification settings - Fork 10
/
.pre-commit-config.yaml
41 lines (41 loc) · 1.36 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
41
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: check-ast
description: Simply check whether files parse as valid python.
- id: trailing-whitespace
description: Trims trailing whitespace
- id: end-of-file-fixer
description: Makes sure files end in a newline and only a newline.
- id: check-added-large-files
description: Prevent giant files from being committed.
- id: check-case-conflict
description: Check for files with names that would conflict on case-insensitive filesystems like MacOS/Windows.
- id: no-commit-to-branch
description: Protect specific branches from direct checkins.
- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: 'v0.0.263'
hooks:
- id: ruff
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.950
hooks:
- id: mypy
- repo: https://github.com/ambv/black
rev: 22.6.0
hooks:
- id: black
args: [--preview]
- repo: local
hooks:
- id: unittest
name: unittest
entry: python -m unittest discover -s tests
language: system
types: [ python ]
pass_filenames: false
always_run: true
stages: [ commit ]