update dependencies
Bu işleme şunda yer alıyor:
ebeveyn
cdfde3431a
işleme
ad5fccfa63
6 değiştirilmiş dosya ile 126 ekleme ve 577 silme
|
|
@ -15,17 +15,17 @@ repos:
|
|||
|
||||
# formatters
|
||||
- repo: https://github.com/asottile/reorder_python_imports
|
||||
rev: v3.8.1
|
||||
rev: v3.9.0
|
||||
hooks:
|
||||
- id: reorder-python-imports
|
||||
|
||||
- repo: https://github.com/ambv/black
|
||||
rev: 22.6.0
|
||||
rev: 22.10.0
|
||||
hooks:
|
||||
- id: black
|
||||
|
||||
- repo: https://github.com/asottile/pyupgrade
|
||||
rev: v2.37.1
|
||||
rev: v3.2.3
|
||||
hooks:
|
||||
- id: pyupgrade
|
||||
stages: [push]
|
||||
|
|
@ -66,13 +66,13 @@ repos:
|
|||
stages: [push]
|
||||
|
||||
- repo: https://github.com/adrienverge/yamllint
|
||||
rev: v1.27.1
|
||||
rev: v1.28.0
|
||||
hooks:
|
||||
- id: yamllint
|
||||
args: ["--strict", "-d", "{rules: {line-length: {max: 180}}}"]
|
||||
|
||||
- repo: https://github.com/pre-commit/mirrors-mypy
|
||||
rev: v0.961
|
||||
rev: v0.991
|
||||
hooks:
|
||||
- id: mypy
|
||||
exclude: "^examples/oauth2-log-jwt-sub/hooks.py|docs/conf.py|tests/e2e/$"
|
||||
|
|
@ -84,13 +84,13 @@ repos:
|
|||
- id: dockerfilelint
|
||||
stages: [commit] # required
|
||||
|
||||
- repo: https://gitlab.com/pycqa/flake8
|
||||
rev: 3.9.2
|
||||
- repo: https://github.com/pycqa/flake8
|
||||
rev: 6.0.0
|
||||
hooks:
|
||||
- id: flake8
|
||||
|
||||
- repo: https://github.com/pre-commit/pre-commit-hooks
|
||||
rev: v4.3.0
|
||||
rev: v4.4.0
|
||||
hooks:
|
||||
- id: check-added-large-files
|
||||
- id: check-docstring-first
|
||||
|
|
@ -119,6 +119,6 @@ repos:
|
|||
# http://jorisroovers.com/gitlint/#using-gitlint-through-pre-commit
|
||||
|
||||
- repo: https://github.com/jorisroovers/gitlint
|
||||
rev: v0.17.0
|
||||
rev: v0.18.0
|
||||
hooks:
|
||||
- id: gitlint
|
||||
|
|
|
|||
2
Makefile
2
Makefile
|
|
@ -23,7 +23,7 @@ lint:
|
|||
|
||||
.PHONY: test.unit
|
||||
test.unit:
|
||||
poetry run coverage run --source=kube_web -m py.test tests/unit
|
||||
poetry run coverage run --source=kube_web -m pytest tests/unit
|
||||
poetry run coverage report
|
||||
|
||||
.PHONY: test.e2e
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ import logging
|
|||
import time
|
||||
from pathlib import Path
|
||||
from typing import List
|
||||
from typing import Optional
|
||||
from urllib.parse import urljoin
|
||||
|
||||
import requests
|
||||
|
|
@ -32,7 +33,11 @@ class OAuth2BearerTokenAuth(AuthBase):
|
|||
|
||||
class Cluster:
|
||||
def __init__(
|
||||
self, name: str, api: HTTPClient, labels: dict = None, spec: dict = None
|
||||
self,
|
||||
name: str,
|
||||
api: HTTPClient,
|
||||
labels: Optional[dict] = None,
|
||||
spec: Optional[dict] = None,
|
||||
):
|
||||
self.name = name
|
||||
self.api = api
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
import asyncio
|
||||
import logging
|
||||
from typing import List
|
||||
from typing import Optional
|
||||
from typing import Type
|
||||
|
||||
from pykube.objects import APIObject
|
||||
|
|
@ -166,7 +167,7 @@ class ResourceRegistry:
|
|||
plural: str,
|
||||
namespaced: bool,
|
||||
default=throw_exception,
|
||||
api_version: str = None,
|
||||
api_version: Optional[str] = None,
|
||||
):
|
||||
_types = (
|
||||
self.namespaced_resource_types
|
||||
|
|
|
|||
671
poetry.lock
üretilen
671
poetry.lock
üretilen
Dosya farkı çok büyük olduğundan ihmal edildi
Fark Yükle
|
|
@ -31,7 +31,7 @@ pytest-cov = "^3.0"
|
|||
Sphinx = "^2.1"
|
||||
sphinx-rtd-theme = "^0.4.3"
|
||||
requests-html = "^0.10.0"
|
||||
pytest-kind = ">=21.1.1"
|
||||
pytest-kind = ">=22.11.1"
|
||||
pre-commit = "^2.20"
|
||||
[build-system]
|
||||
requires = ["poetry>=0.12"]
|
||||
|
|
|
|||
Yükleniyor…
Yeni konuda referans