-
Notifications
You must be signed in to change notification settings - Fork 25
Expand file tree
/
Copy path.pre-commit-config.yaml
More file actions
43 lines (41 loc) · 1.19 KB
/
.pre-commit-config.yaml
File metadata and controls
43 lines (41 loc) · 1.19 KB
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
# To set up locally with a Python 3.9 compatible version:
# pip install pre-commit==4.3.0
# pre-commit install --install-hooks
# See https://pre-commit.com for more information
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0 # Python 3.9 compatible
hooks:
# Python related checks
- id: check-ast
- id: check-builtin-literals
- id: check-docstring-first
- id: name-tests-test
name: Check unit tests start with 'test_'
args: ['--django']
files: 'test/.*'
# Other checks
- id: check-added-large-files
- id: check-case-conflict
- id: check-merge-conflict
- id: check-yaml
- id: debug-statements
- id: detect-private-key
# This file has a test cert and key
exclude: 'test_ssm.py'
- id: end-of-file-fixer
- id: mixed-line-ending
name: Force line endings to LF
args: ['--fix=lf']
- id: trailing-whitespace
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.10.0 # Python 3.9 compatible
hooks:
- id: python-check-mock-methods
- id: python-no-eval
- id: python-no-log-warn
- id: python-use-type-annotations
# Pre-commit CI config, see https://pre-commit.ci/
ci:
autofix_prs: false
autoupdate_schedule: quarterly