-
Notifications
You must be signed in to change notification settings - Fork 19
/
.pre-commit-config.yaml
44 lines (39 loc) · 1.41 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
# See https://pre-commit.com for more information
# See https://pre-commit.com/hooks.html for more hooks
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: "v4.6.0"
hooks:
- id: trailing-whitespace # trims trailing whitespace
args: [--markdown-linebreak-ext=md]
- id: end-of-file-fixer # ensures that a file is either empty, or ends with one newline
- id: check-yaml # checks syntax of yaml files
- id: check-json # checks syntax of json files
- id: check-added-large-files # prevent giant files from being committed
- id: fix-encoding-pragma # removes "# -*- coding: utf-8 -*-" from python files (since we only support python 3)
args: [--remove]
- id: check-merge-conflict # check for files that contain merge conflict strings
- repo: https://github.com/adamchainz/django-upgrade
rev: "1.17.0"
hooks:
- id: django-upgrade
args: [--target-version, "4.2"]
- repo: https://github.com/asottile/pyupgrade
rev: "v3.15.2"
hooks:
- id: pyupgrade
args: [--py38-plus]
- repo: https://github.com/pycqa/isort
rev: "5.13.2"
hooks:
- id: isort
name: isort (python)
- repo: https://github.com/psf/black
rev: "24.4.2"
hooks:
- id: black
- repo: https://github.com/ikamensh/flynt
rev: "1.0.1"
hooks:
- id: flynt
args: [--aggressive, --line-length, "120"]