Skip to content

Commit 5e941d1

Browse files
committed
port-feat: pre-commit config added from the v3 worksream
1 parent 59c22af commit 5e941d1

File tree

2 files changed

+35
-0
lines changed

2 files changed

+35
-0
lines changed

.pre-commit-config.yaml

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
repos:
2+
# Need to drop python 3.5 and 3.6 before we include python upgrade
3+
# - repo: https://github.com/asottile/pyupgrade
4+
# rev: v2.31.0
5+
# hooks:
6+
# - id: pyupgrade
7+
# args: ["--py37-plus"]
8+
9+
- repo: https://github.com/adamchainz/django-upgrade
10+
rev: '1.4.0'
11+
hooks:
12+
- id: django-upgrade
13+
args: [--target-version, "2.2"]
14+
15+
- repo: https://github.com/PyCQA/flake8
16+
rev: 4.0.1
17+
hooks:
18+
- id: flake8
19+
20+
- repo: https://github.com/asottile/yesqa
21+
rev: v1.3.0
22+
hooks:
23+
- id: yesqa
24+
25+
- repo: https://github.com/pre-commit/pre-commit-hooks
26+
rev: v4.1.0
27+
hooks:
28+
- id: check-merge-conflict
29+
- id: mixed-line-ending
30+
31+
- repo: https://github.com/pycqa/isort
32+
rev: 5.10.1
33+
hooks:
34+
- id: isort

CHANGELOG.rst

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ Changelog
44

55
Unreleased
66
==========
7+
* port-feat: pre-commit config added from the v3 worksream
78
* fix: Added test coverage to admin preview view
89

910
4.0.0.dev4 (2022-02-03)

0 commit comments

Comments
 (0)