File tree Expand file tree Collapse file tree 4 files changed +9
-12
lines changed Expand file tree Collapse file tree 4 files changed +9
-12
lines changed Original file line number Diff line number Diff line change 1
1
default_language_version :
2
2
python : python3.10
3
+
3
4
repos :
4
5
- repo : https://github.com/PyCQA/flake8
5
6
rev : 5.0.4
6
7
hooks :
7
8
- id : flake8
8
9
additional_dependencies : [flake8-bugbear==22.7.1]
10
+
11
+ - repo : https://github.com/psf/black
12
+ rev : 22.6.0
13
+ hooks :
14
+ - id : black
Original file line number Diff line number Diff line change @@ -14,11 +14,7 @@ test: tests # Alias test -> tests
14
14
15
15
.PHONY : format
16
16
format :
17
- black --exclude " /migrations/" graphene_django examples setup.py
18
-
19
- .PHONY : lint
20
- lint :
21
- flake8 graphene_django examples
17
+ pre-commit run --all-files
22
18
23
19
.PHONY : docs # # Generate docs
24
20
docs : dev-setup
Original file line number Diff line number Diff line change 26
26
27
27
28
28
dev_requires = [
29
- "black==19.10b0 " ,
29
+ "black==22.6.0 " ,
30
30
"flake8>=5,<6" ,
31
31
"flake8-black==0.3.3" ,
32
32
"flake8-bugbear==22.7.1" ,
Original file line number Diff line number Diff line change @@ -39,14 +39,9 @@ deps =
39
39
djangomaster: https://github.com/django/django/archive/master.zip
40
40
commands = {posargs:py.test --cov =graphene_django graphene_django examples}
41
41
42
- [testenv:black]
43
- basepython = python3.10
44
- deps = -e.[dev]
45
- commands =
46
- black --exclude " /migrations/" graphene_django examples setup.py --check
47
-
48
42
[testenv:pre-commit]
49
43
basepython = python3.10
44
+ deps = -e.[dev]
50
45
skip_install = true
51
46
deps = pre-commit
52
47
commands =
You can’t perform that action at this time.
0 commit comments