Skip to content
This repository was archived by the owner on Oct 3, 2020. It is now read-only.

Commit 4fa6896

Browse files
authored
update dependencies (incl. pykube-ng) (#96)
1 parent ac13b12 commit 4fa6896

File tree

3 files changed

+56
-56
lines changed

3 files changed

+56
-56
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ repos:
1515

1616
# formatters
1717
- repo: https://github.com/asottile/reorder_python_imports
18-
rev: v1.9.0
18+
rev: v2.1.0
1919
hooks:
2020
- id: reorder-python-imports
2121

@@ -25,7 +25,7 @@ repos:
2525
- id: black
2626

2727
- repo: https://github.com/asottile/pyupgrade
28-
rev: v1.26.0
28+
rev: v2.1.0
2929
hooks:
3030
- id: pyupgrade
3131
stages: [push]
@@ -65,7 +65,7 @@ repos:
6565
stages: [push]
6666

6767
- repo: https://github.com/adrienverge/yamllint
68-
rev: v1.20.0
68+
rev: v1.21.0
6969
hooks:
7070
- id: yamllint
7171
args: ["--strict", "-d", "{rules: {line-length: {max: 180}}}"]
@@ -78,7 +78,7 @@ repos:
7878
#
7979

8080
- repo: https://github.com/pre-commit/mirrors-mypy
81-
rev: v0.761
81+
rev: v0.770
8282
hooks:
8383
- id: mypy
8484

@@ -91,7 +91,7 @@ repos:
9191
# miscellaneous
9292

9393
- repo: https://github.com/pre-commit/pre-commit-hooks
94-
rev: v2.4.0
94+
rev: v2.5.0
9595
hooks:
9696
- id: check-added-large-files
9797
- id: check-docstring-first
@@ -108,7 +108,7 @@ repos:
108108
args: ["--django"]
109109

110110
- repo: https://github.com/pre-commit/pygrep-hooks
111-
rev: v1.4.4
111+
rev: v1.5.1
112112
hooks:
113113
# - id: rst-backticks
114114
- id: python-use-type-annotations
@@ -121,6 +121,6 @@ repos:
121121
# http://jorisroovers.com/gitlint/#using-gitlint-through-pre-commit
122122

123123
- repo: https://github.com/jorisroovers/gitlint
124-
rev: v0.12.0
124+
rev: v0.13.1
125125
hooks:
126126
- id: gitlint

poetry.lock

Lines changed: 38 additions & 38 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

tests/test_scaler.py

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@ def get(url, version, **kwargs):
133133
},
134134
"spec": {"replicas": 0},
135135
}
136-
assert api.patch.call_args[1]["url"] == "deployments/deploy-2"
136+
assert api.patch.call_args[1]["url"] == "/deployments/deploy-2"
137137
assert json.loads(api.patch.call_args[1]["data"]) == patch_data
138138

139139

@@ -209,7 +209,7 @@ def get(url, version, **kwargs):
209209
},
210210
"spec": {"replicas": 0},
211211
}
212-
assert api.patch.call_args[1]["url"] == "deployments/deploy-2"
212+
assert api.patch.call_args[1]["url"] == "/deployments/deploy-2"
213213
assert json.loads(api.patch.call_args[1]["data"]) == patch_data
214214

215215

@@ -266,7 +266,7 @@ def get(url, version, **kwargs):
266266
)
267267

268268
assert api.patch.call_count == 1
269-
assert api.patch.call_args[1]["url"] == "deployments/deploy-1"
269+
assert api.patch.call_args[1]["url"] == "/deployments/deploy-1"
270270
assert json.loads(api.patch.call_args[1]["data"])["spec"]["replicas"] == SCALE_TO
271271

272272

@@ -327,7 +327,7 @@ def get(url, version, **kwargs):
327327
)
328328

329329
assert api.patch.call_count == 1
330-
assert api.patch.call_args[1]["url"] == "deployments/deploy-1"
330+
assert api.patch.call_args[1]["url"] == "/deployments/deploy-1"
331331
assert json.loads(api.patch.call_args[1]["data"])["spec"]["replicas"] == ORIGINAL
332332
assert not json.loads(api.patch.call_args[1]["data"])["metadata"]["annotations"][
333333
ORIGINAL_REPLICAS_ANNOTATION
@@ -389,7 +389,7 @@ def get(url, version, **kwargs):
389389
)
390390

391391
assert api.patch.call_count == 1
392-
assert api.patch.call_args[1]["url"] == "deployments/deploy-1"
392+
assert api.patch.call_args[1]["url"] == "/deployments/deploy-1"
393393
assert (
394394
json.loads(api.patch.call_args[1]["data"])["spec"]["replicas"]
395395
== ORIGINAL_REPLICAS
@@ -453,7 +453,7 @@ def get(url, version, **kwargs):
453453
)
454454

455455
assert api.patch.call_count == 1
456-
assert api.patch.call_args[1]["url"] == "deployments/deploy-1"
456+
assert api.patch.call_args[1]["url"] == "/deployments/deploy-1"
457457
assert (
458458
json.loads(api.patch.call_args[1]["data"])["spec"]["replicas"]
459459
== ORIGINAL_REPLICAS
@@ -571,7 +571,7 @@ def get(url, version, **kwargs):
571571
)
572572

573573
assert api.patch.call_count == 1
574-
assert api.patch.call_args[1]["url"] == "deployments/deploy-1"
574+
assert api.patch.call_args[1]["url"] == "/deployments/deploy-1"
575575
assert json.loads(api.patch.call_args[1]["data"])["spec"]["replicas"] == SCALE_TO
576576

577577

@@ -627,7 +627,7 @@ def get(url, version, **kwargs):
627627
)
628628

629629
assert api.patch.call_count == 1
630-
assert api.patch.call_args[1]["url"] == "cronjobs/cronjob-1"
630+
assert api.patch.call_args[1]["url"] == "/cronjobs/cronjob-1"
631631

632632
patch_data = {
633633
"metadata": {
@@ -701,7 +701,7 @@ def get(url, version, **kwargs):
701701
)
702702

703703
assert api.patch.call_count == 1
704-
assert api.patch.call_args[1]["url"] == "cronjobs/cronjob-1"
704+
assert api.patch.call_args[1]["url"] == "/cronjobs/cronjob-1"
705705

706706
patch_data = {
707707
"metadata": {
@@ -860,7 +860,7 @@ def get(url, version, **kwargs):
860860
},
861861
"spec": {"replicas": 0},
862862
}
863-
assert api.patch.call_args[1]["url"] == "deployments/deploy-2"
863+
assert api.patch.call_args[1]["url"] == "/deployments/deploy-2"
864864
assert json.loads(api.patch.call_args[1]["data"]) == patch_data
865865

866866

@@ -940,5 +940,5 @@ def get(url, version, **kwargs):
940940
},
941941
"spec": {"replicas": 0},
942942
}
943-
assert api.patch.call_args[1]["url"] == "deployments/deploy-2"
943+
assert api.patch.call_args[1]["url"] == "/deployments/deploy-2"
944944
assert json.loads(api.patch.call_args[1]["data"]) == patch_data

0 commit comments

Comments
 (0)