forked from infobyte/faraday
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
56 lines (56 loc) · 1.61 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
default_stages: [commit]
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.1.0
hooks:
- id: trailing-whitespace
exclude: '^faraday/server/www/'
- id: end-of-file-fixer
exclude: '^faraday/server/www/'
- id: check-json
exclude: '^faraday/server/www/'
- id: check-yaml
exclude: '^faraday/server/www/'
args: [ --unsafe ]
- id: debug-statements
exclude: '^faraday/server/www/'
- repo: https://gitlab.com/pycqa/flake8
rev: 3.9.2
hooks:
- id: flake8
exclude: '^faraday/server/www/'
additional_dependencies: [flake8-typing-imports==1.9.0]
- repo: https://github.com/ikamensh/flynt/
rev: '0.76'
hooks:
- id: flynt
args: [ -df ]
- repo: local
hooks:
- id: sanity-check
name: Commit SanityCheck
entry: bash scripts/sanity_check_commit.sh
language: system
verbose: true
stages: [merge-commit, commit, push]
- id: sanity-check-file
name: File SanityCheck
entry: scripts/sanity_check_file.py
language: python
verbose: true
pass_filenames: false
args: [--mode=diff]
stages: [merge-commit, commit]
- id: sanity-check-file-push
name: File Push SanityCheck
entry: scripts/sanity_check_file.py
language: python
verbose: true
pass_filenames: false
args: [--mode=ls, --local]
stages: [push]
- repo: https://github.com/asottile/pyupgrade
rev: v2.31.0
hooks:
- id: pyupgrade
args: [ --py3-plus , --py36-plus]