update dependencies
Bu işleme şunda yer alıyor:
ebeveyn
944edf6d9f
işleme
629dface9a
7 değiştirilmiş dosya ile 1159 ekleme ve 198 silme
|
|
@ -20,12 +20,12 @@ repos:
|
|||
- id: reorder-python-imports
|
||||
|
||||
- repo: https://github.com/ambv/black
|
||||
rev: 22.10.0
|
||||
rev: 23.1.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v3.2.3
|
||||
rev: v3.3.1
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
stages: [push]
|
||||
|
|
@ -40,7 +40,7 @@ repos:
|
|||
stages: [push]
|
||||
|
||||
- repo: https://github.com/PyCQA/pydocstyle
|
||||
rev: 6.1.1
|
||||
rev: 6.3.0
|
||||
hooks:
|
||||
- id: pydocstyle
|
||||
args: ["--ignore=D10,D21,D202,D401"]
|
||||
|
|
@ -66,13 +66,13 @@ repos:
|
|||
stages: [push]
|
||||
|
||||
- repo: https://github.com/adrienverge/yamllint
|
||||
rev: v1.28.0
|
||||
rev: v1.29.0
|
||||
hooks:
|
||||
- id: yamllint
|
||||
args: ["--strict", "-d", "{rules: {line-length: {max: 180}}}"]
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v0.991
|
||||
rev: v1.0.1
|
||||
hooks:
|
||||
- id: mypy
|
||||
exclude: "^examples/oauth2-log-jwt-sub/hooks.py|docs/conf.py|tests/e2e/$"
|
||||
|
|
@ -106,7 +106,7 @@ repos:
|
|||
exclude: "^tests/e2e/utils.py"
|
||||
|
||||
- repo: https://github.com/pre-commit/pygrep-hooks
|
||||
rev: v1.9.0
|
||||
rev: v1.10.0
|
||||
hooks:
|
||||
# - id: rst-backticks
|
||||
- id: python-use-type-annotations
|
||||
|
|
@ -119,6 +119,6 @@ repos:
|
|||
# http://jorisroovers.com/gitlint/#using-gitlint-through-pre-commit
|
||||
|
||||
- repo: https://github.com/jorisroovers/gitlint
|
||||
rev: v0.18.0
|
||||
rev: v0.19.0dev
|
||||
hooks:
|
||||
- id: gitlint
|
||||
|
|
|
|||
|
|
@ -11,7 +11,7 @@ COPY pyproject.toml /
|
|||
RUN mkdir /kube_web && touch /kube_web/__init__.py && touch /README.md
|
||||
|
||||
RUN poetry config virtualenvs.create false && \
|
||||
poetry install --no-interaction --no-dev --no-ansi
|
||||
poetry install --no-interaction --only main --no-ansi
|
||||
|
||||
FROM python:3.10-slim
|
||||
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ iso8601_re = re.compile(
|
|||
|
||||
|
||||
def highlight(value, config, cluster="", namespace="", resource=None, linenos=False):
|
||||
|
||||
if linenos:
|
||||
formatter = HtmlFormatter(
|
||||
lineanchors="line",
|
||||
|
|
|
|||
|
|
@ -35,7 +35,6 @@ thread_pool = concurrent.futures.ThreadPoolExecutor(thread_name_prefix="pykube")
|
|||
|
||||
# https://github.com/kubernetes/community/blob/master/contributors/design-proposals/instrumentation/resource-metrics-api.md
|
||||
class NodeMetrics(APIObject):
|
||||
|
||||
version = "metrics.k8s.io/v1beta1"
|
||||
endpoint = "nodes"
|
||||
kind = "NodeMetrics"
|
||||
|
|
@ -43,7 +42,6 @@ class NodeMetrics(APIObject):
|
|||
|
||||
# https://github.com/kubernetes/community/blob/master/contributors/design-proposals/instrumentation/resource-metrics-api.md
|
||||
class PodMetrics(NamespacedAPIObject):
|
||||
|
||||
version = "metrics.k8s.io/v1beta1"
|
||||
endpoint = "pods"
|
||||
kind = "PodMetrics"
|
||||
|
|
|
|||
|
|
@ -81,7 +81,6 @@ def links_dict(value):
|
|||
|
||||
|
||||
def parse_args(argv=None):
|
||||
|
||||
parser = argparse.ArgumentParser(description=f"Kubernetes Web View v{__version__}")
|
||||
parser.add_argument(
|
||||
"--port",
|
||||
|
|
|
|||
1336
poetry.lock
üretilen
1336
poetry.lock
üretilen
Dosya farkı çok büyük olduğundan ihmal edildi
Fark Yükle
|
|
@ -57,7 +57,6 @@ def populated_cluster(cluster):
|
|||
|
||||
@fixture(scope="session")
|
||||
def session(populated_cluster):
|
||||
|
||||
url = populated_cluster["url"].rstrip("/")
|
||||
|
||||
s = HTMLSession()
|
||||
|
|
|
|||
Yükleniyor…
Yeni konuda referans