forked from biocypher/biocypher
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
85 lines (85 loc) · 2.43 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
78
79
80
81
82
83
84
85
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
fail_fast: false
default_language_version:
python: python3
default_stages:
- commit
- push
minimum_pre_commit_version: 2.7.1
repos:
- repo: https://github.com/google/yapf
rev: v0.32.0
hooks:
- id: yapf
language: python
additional_dependencies: [toml]
# stages: [manual]
- repo: https://github.com/Instagram/Fixit
rev: 9d59f968e84bd2773f34b0069eeeaad3ce783254
hooks:
- id: fixit-run-rules
stages: [manual]
- repo: https://github.com/timothycrosley/isort
rev: 5.10.1
hooks:
- id: isort
additional_dependencies: [toml]
# - repo: https://github.com/hakancelikdev/pyall
# rev: 0.2.0
# hooks:
# - id: pyall
# args: [--refactor]
- repo: https://github.com/snok/pep585-upgrade
rev: v1.0.1
hooks:
- id: upgrade-type-hints
# - repo: https://github.com/asottile/add-trailing-comma
# rev: v2.2.3
# hooks:
# - id: add-trailing-comma
- repo: https://github.com/myint/unify
rev: v0.5
hooks:
- id: unify
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.2.0
hooks:
- id: check-docstring-first
- id: end-of-file-fixer
- id: check-added-large-files
- id: mixed-line-ending
- id: trailing-whitespace
exclude: ^.bumpversion.cfg$
- id: check-merge-conflict
- id: check-case-conflict
- id: check-symlinks
- id: check-yaml
args: [--unsafe]
- id: check-ast
- id: fix-encoding-pragma
args: [--remove] # for Python3 codebase, it's not necessary
- id: requirements-txt-fixer
# - repo: https://github.com/john-hen/Flake8-pyproject
# rev: 1.1.0
# hooks:
# - id: Flake8-pyproject
# additional_dependencies: [flake8-docstrings, flake8-comprehensions, flake8-bugbear]
# - repo: https://github.com/myint/rstcheck
# rev: v6.0.0rc3
# hooks:
# - id: rstcheck
# - repo: https://github.com/asottile/pyupgrade
# rev: v2.23.1
# hooks:
# - id: pyupgrade
# args: [--py3-plus, --py36-plus]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
- id: python-no-eval
- id: python-use-type-annotations
- id: python-check-blanket-noqa
- id: rst-backticks
- id: rst-directive-colons
- id: rst-inline-touching-normal