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

Commit 72d7899

Browse files
authored
Merge pull request #232 from snok/dependency-update
updated deps and pre-commit
2 parents 3804e55 + 445c8ca commit 72d7899

9 files changed

+277
-277
lines changed

.pre-commit-config.yaml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
repos:
22
- repo: https://github.com/ambv/black
3-
rev: 20.8b1
3+
rev: 21.5b1
44
hooks:
55
- id: black
66
args: ["--quiet"]
77
- repo: https://github.com/pre-commit/pre-commit-hooks
8-
rev: v3.4.0
8+
rev: v4.0.1
99
hooks:
1010
- id: check-case-conflict
1111
- id: end-of-file-fixer
@@ -15,7 +15,7 @@ repos:
1515
- id: check-yaml
1616
- id: check-merge-conflict
1717
- repo: https://gitlab.com/pycqa/flake8
18-
rev: 3.8.4
18+
rev: 3.9.2
1919
hooks:
2020
- id: flake8
2121
additional_dependencies: [
@@ -28,7 +28,7 @@ repos:
2828
'flake8-pytest-style',
2929
]
3030
- repo: https://github.com/asottile/pyupgrade
31-
rev: v2.10.0
31+
rev: v2.17.0
3232
hooks:
3333
- id: pyupgrade
3434
args: ["--py36-plus"]
@@ -37,7 +37,7 @@ repos:
3737
hooks:
3838
- id: seed-isort-config
3939
- repo: https://github.com/pycqa/isort
40-
rev: 5.7.0
40+
rev: 5.8.0
4141
hooks:
4242
- id: isort
4343
- repo: https://github.com/pre-commit/mirrors-mypy

CHANGELOG.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
# Changelog
22

3+
## v1.3.6 2021-05-20
4+
5+
* Update dependencies
6+
37
## v1.3.5 2020-02-28
48

59
* Rework schema reference logic, to improve handling of nested structures.

openapi_tester/case_testers.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88

99
def _create_tester(casing: str, handler: Callable[[Any], str]) -> Callable[[str], None]:
10-
""" factory function for creating testers """
10+
"""factory function for creating testers"""
1111

1212
def tester(key: str) -> None:
1313
stripped = key.strip()

openapi_tester/schema_tester.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939

4040

4141
class SchemaTester:
42-
""" Schema Tester: this is the base class of the library. """
42+
"""Schema Tester: this is the base class of the library."""
4343

4444
loader: Union[StaticSchemaLoader, DrfSpectacularSchemaLoader, DrfYasgSchemaLoader]
4545
validators: List[Callable[[dict, Any], Optional[str]]]

openapi_tester/utils.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66

77
def merge_objects(dictionaries: Sequence[Dict[str, Any]]) -> Dict[str, Any]:
8-
""" helper function to deep merge objects """
8+
"""helper function to deep merge objects"""
99
output: Dict[str, Any] = {}
1010
for dictionary in dictionaries:
1111
for key, value in dictionary.items():
@@ -23,7 +23,7 @@ def merge_objects(dictionaries: Sequence[Dict[str, Any]]) -> Dict[str, Any]:
2323

2424

2525
def normalize_schema_section(schema_section: dict) -> dict:
26-
""" helper method to remove allOf and handle edge uses of oneOf"""
26+
"""helper method to remove allOf and handle edge uses of oneOf"""
2727
output: Dict[str, Any] = deepcopy(schema_section)
2828
if output.get("allOf"):
2929
all_of = output.pop("allOf")
@@ -41,7 +41,7 @@ def normalize_schema_section(schema_section: dict) -> dict:
4141

4242

4343
def lazy_combinations(options_list: Sequence[Dict[str, Any]]) -> Iterator[dict]:
44-
""" helper to lazy evaluate possible permutations of possible combinations """
44+
"""helper to lazy evaluate possible permutations of possible combinations"""
4545
for i in range(2, len(options_list) + 1):
4646
for combination in combinations(options_list, i):
4747
yield merge_objects(combination)

0 commit comments

Comments
 (0)