Skip to content

Commit 5d35e0f

Browse files
authored
Bump mypy and more python versions (#24)
* Bump mypy and more python versions * Regenerate stubs
1 parent 82995b0 commit 5d35e0f

File tree

728 files changed

+4849
-4012
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

728 files changed

+4849
-4012
lines changed

.github/workflows/pull_request.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,20 +12,20 @@ jobs:
1212
name: Test
1313
runs-on: ubuntu-latest
1414
strategy:
15-
max-parallel: 4
15+
max-parallel: 6
1616
fail-fast: false
1717
matrix:
18-
python-version: ["3.8", "3.9", "3.10.0-rc.1"]
18+
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12", "3.13.0-rc.1"] # check supported versions at https://devguide.python.org/versions/
1919

2020
steps:
21-
- uses: actions/checkout@v1
21+
- uses: actions/checkout@v4
2222
- name: Set up Python ${{ matrix.python-version }}
23-
uses: actions/setup-python@v2
23+
uses: actions/setup-python@v5
2424
with:
2525
python-version: ${{ matrix.python-version }}
2626

2727
- name: Cache pip
28-
uses: actions/cache@v2
28+
uses: actions/cache@v4
2929
with:
3030
path: ~/.cache/pip
3131
key: ${{ runner.os }}-pip-${{ hashFiles('requirements-test.txt') }}-${{ hashFiles('setup.py') }}
@@ -37,7 +37,7 @@ jobs:
3737
pip install --upgrade --upgrade-strategy eager tox tox-gh-actions
3838
3939
- name: Cache tox
40-
uses: actions/cache@v2
40+
uses: actions/cache@v4
4141
with:
4242
path: |
4343
.tox

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ pip install -r ./requirements-dev.txt
1717

1818
Run tests with `tox`:
1919
```
20-
tox -epy38
20+
tox -epy312
2121
```
2222

2323
## Updating kubernetes-client version

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ mypy plugin to dynamically define types for Kubernetes objects.
1010
## Features
1111

1212
* [Type checking for Custom Resources](#Custom-Resource-Definitions)
13-
* [Type checking forkubernetes-client](#Kubernetes-Python-Client-types)
13+
* [Type checking for kubernetes-client](#Kubernetes-Python-Client-types)
1414

1515
## Installation
1616

crd_typed/__init__.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""crd_typed provides mypy plugin and default class for Kubernetes CRD yaml files."""
2+
23
from typing import Any, Dict
34

45

crd_typed/plugin.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
"""plugin implements mypy plugin."""
2+
23
from typing import Any, Callable, Dict, List, Optional, Tuple, cast
34

45
import yaml

kubernetes-stubs/__init__.pyi

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

kubernetes-stubs/base/config/__init__.pyi

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

kubernetes-stubs/base/config/config_exception.pyi

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

kubernetes-stubs/base/config/dateutil.pyi

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

kubernetes-stubs/base/config/dateutil_test.pyi

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

0 commit comments

Comments
 (0)