File tree Expand file tree Collapse file tree 3 files changed +11
-4
lines changed
Expand file tree Collapse file tree 3 files changed +11
-4
lines changed Original file line number Diff line number Diff line change 1818 rev : ' 6.0.0'
1919 hooks :
2020 - id : flake8
21+
22+ - repo : https://github.com/psf/black
23+ rev : 22.12.0
24+ hooks :
25+ - id : black
26+ args : [--skip-string-normalization]
Original file line number Diff line number Diff line change 11[tool .black ]
22line-length = 119
3- target-version = [' py39 ' ]
3+ target-version = [' py38 ' ]
44include = ' \.pyi?$'
55extend-exclude = '''
66(
@@ -38,7 +38,6 @@ mock = "^5.0"
3838pytest = " ^7.2"
3939pytest-cov = " ^4.0"
4040pytest-django = " ^4.5"
41- black = " ^22.12.0"
4241pre-commit = " ^2.21.0"
4342
4443
Original file line number Diff line number Diff line change @@ -115,5 +115,7 @@ def test_schema_validation():
115115 field = obj ._meta .get_field ('invalid_json_schema_field' )
116116 errors = field .check ()
117117 assert len (errors ) == 1
118- assert errors [0 ].msg == "JSON schema is not valid: properties.test_field.type: 'incorrect' is not valid under " \
119- 'any of the given schemas'
118+ assert (
119+ errors [0 ].msg == "JSON schema is not valid: properties.test_field.type: 'incorrect' is not valid under "
120+ 'any of the given schemas'
121+ )
You can’t perform that action at this time.
0 commit comments