-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
77 lines (65 loc) · 1.8 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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
hooks:
- id: trailing-whitespace
- id: end-of-file-fixer
- id: pretty-format-json
- id: check-yaml
- id: check-toml
- id: check-docstring-first
- id: check-case-conflict
- id: check-added-large-files
args: [ '--maxkb=5120' ]
- repo: https://github.com/asottile/pyupgrade
rev: v3.3.1
hooks:
- id: pyupgrade
name: Upgrade code
args: [ --py38-plus ]
- repo: https://github.com/psf/black
rev: 23.1.0
hooks:
- id: black
- repo: https://github.com/pycqa/isort
rev: 5.12.0
hooks:
- id: isort
- repo: https://github.com/executablebooks/mdformat
rev: 0.7.16
hooks:
- id: mdformat
name: MD formatting
additional_dependencies:
- mdformat-gfm
- mdformat-black
- repo: local
hooks:
- id: update-requirements
name: Update requirements
entry: poetry export -f requirements.txt -o requirements.txt --with=dev --without-hashes
language: system
files: pyproject.toml|poetry.lock
pass_filenames: false
- id: flake8
name: wemake-python-styleguide
entry: flake8
language: system
types: [ python ]
- id: pytest
name: Tests
entry: pytest
language: system
types: [ python ]
pass_filenames: false
stages: [ push ]
ci:
autofix_commit_msg: |
[pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
autofix_prs: true
autoupdate_branch: ''
autoupdate_commit_msg: '[pre-commit.ci] pre-commit autoupdate'
autoupdate_schedule: weekly
skip: [ flake8, update-requirements, pytest ]
submodules: false