Skip to content
This repository was archived by the owner on Nov 19, 2023. It is now read-only.

Commit f3ea27f

Browse files
committed
Update pre-commit config
1 parent b2edb97 commit f3ea27f

File tree

3 files changed

+9
-13
lines changed

3 files changed

+9
-13
lines changed

.github/workflows/testing.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
restore-keys: |
2020
${{ runner.os }}-pip-
2121
${{ runner.os }}-
22-
- run: python -m pip install pre-commit pylint
22+
- run: python -m pip install pre-commit pylint tomli setuptools pip -U
2323
- run: pre-commit run --all-files
2424
test:
2525
# ---------------------------------------------------

.pre-commit-config.yaml

Lines changed: 7 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
repos:
2-
- repo: https://github.com/ambv/black
3-
rev: 21.5b1
2+
- repo: https://github.com/psf/black
3+
rev: 21.7b0
44
hooks:
55
- id: black
6-
args: ["--quiet"]
6+
args: ['--quiet']
77
- repo: https://github.com/pre-commit/pre-commit-hooks
88
rev: v4.0.1
99
hooks:
@@ -28,23 +28,19 @@ repos:
2828
'flake8-pytest-style',
2929
]
3030
- repo: https://github.com/asottile/pyupgrade
31-
rev: v2.17.0
31+
rev: v2.24.0
3232
hooks:
3333
- id: pyupgrade
3434
args: ["--py36-plus"]
35-
- repo: https://github.com/asottile/seed-isort-config
36-
rev: v2.2.0
37-
hooks:
38-
- id: seed-isort-config
3935
- repo: https://github.com/pycqa/isort
40-
rev: 5.8.0
36+
rev: 5.9.3
4137
hooks:
4238
- id: isort
4339
- repo: https://github.com/pre-commit/mirrors-mypy
44-
rev: 'v0.812'
40+
rev: 'v0.910'
4541
hooks:
4642
- id: mypy
47-
additional_dependencies: [django, djangorestframework, inflection, openapi-spec-validator, prance, pyYAML, django-stubs, djangorestframework-stubs, drf_yasg, drf-spectacular]
43+
additional_dependencies: [django, djangorestframework, inflection, openapi-spec-validator, prance, pyYAML, django-stubs, djangorestframework-stubs, drf_yasg, drf-spectacular, types-PyYAML]
4844
- repo: local
4945
hooks:
5046
- id: pylint

openapi_tester/loaders.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -231,6 +231,6 @@ def load_schema(self) -> dict:
231231
:return: Schema contents as a dict
232232
:raises: ImproperlyConfigured
233233
"""
234-
with open(self.path) as file:
234+
with open(self.path, encoding="utf-8") as file:
235235
content = file.read()
236236
return json.loads(content) if ".json" in self.path else yaml.load(content, Loader=yaml.FullLoader)

0 commit comments

Comments
 (0)