-
Notifications
You must be signed in to change notification settings - Fork 0
/
.pre-commit-config.yaml
52 lines (52 loc) · 1.86 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
exclude: ^(parent_folder/raw_images/raw_images_clean)
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: requirements-txt-fixer # Sorts requirements
- id: end-of-file-fixer # Add empty string end of each file
- id: trailing-whitespace # Remove extra whitespaces
- id: check-added-large-files # Check we do not commit vast large files
args: ['--maxkb=1000']
- id: double-quote-string-fixer # Replace " by '
- id: check-merge-conflict # Check for unresolved merge conflicts
- id: check-case-conflict
- id: check-ast # Check .py files are valid
- id: check-yaml # YML files are properly structured
- id: check-toml
- id: check-json
- id: check-xml
# - repo: 'https://github.com/psf/black'
# rev: 22.3.0
# hooks:
# - id: black
# language_version: python3
- repo: https://github.com/pycqa/isort # Sort input alphabetically
rev: 5.8.0
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/pre-commit/mirrors-autopep8
rev: v1.4.4 # Use the sha / tag you want to point at
hooks:
- id: autopep8
- repo: https://github.com/PyCQA/flake8
rev: 6.0.0
hooks:
- id: flake8
additional_dependencies: [
'flake8-blind-except',
'flake8-docstrings',
'flake8-bugbear',
'flake8-comprehensions',
'flake8-docstrings',
'flake8-implicit-str-concat',
'pydocstyle>=5.0.0',
]
exclude: tests/, parent_folder, raw_images_clean,
- repo: https://github.com/PyCQA/bandit
rev: 1.7.4
hooks:
- id: bandit
args: ["-c", "pyproject.toml"]
additional_dependencies: [ "bandit[toml]" ]