generated from MVilstrup/python_package_template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.pre-commit-config.yaml
49 lines (48 loc) · 1.73 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
# Setup Standard
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v3.2.0
hooks:
- id: check-yaml # Check all yaml is correctly formatted
- id: check-json # Check all json is correctly formatted
- id: check-xml # Check all xml is correctly formatted
- id: check-toml # Check all toml is correctly formatted
- id: double-quote-string-fixer # Replaces all double-quote strings with single ones.
- id: check-merge-conflict # Makes sure that you do not try to merge any unresolved conflicts.
- id: end-of-file-fixer # The hook adds an empty string at the end of each file
- id: check-ast # checks that your .py files are valid Python files.
- id: trailing-whitespace # The hook removes extra whitespaces in your code
- id: check-added-large-files # The hook checks that you don’t commit any vast files
- repo: local
hooks:
- id: dodgy
name: dodgy
description: 'Dodgy is a tool that looks for passwords and other misshaps in the code'
entry: dodgy
language: python
types: [python]
- id: bandit
name: bandit
description: 'Bandit looks for common security problems in python code'
entry: bandit
language: python
types: [ python ]
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v0.790
hooks:
- id: mypy
exclude: ^(tests/|docs/|scripts/)
- repo: https://github.com/pycqa/isort
rev: 5.10.1
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/psf/black
rev: stable
hooks:
- id: black
language_version: python3.9
- repo: https://gitlab.com/pycqa/flake8
rev: 3.7.9
hooks:
- id: flake8