Skip to content

Commit 5e437cd

Browse files
committed
Add autogenerated client into launch v1 (#63)
* add autogenerated client into launch v1 * flake8 conf * pylint and mypy too * isort
1 parent 7bdf37b commit 5e437cd

Some content is hidden

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

47 files changed

+17090
-4
lines changed

.circleci/config.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,15 +42,15 @@ jobs:
4242
- run:
4343
name: Flake8 Lint Check # Uses setup.cfg for configuration
4444
command: |
45-
poetry run flake8 launch --count --statistics --exclude launch/clientlib
45+
poetry run flake8 launch --count --statistics --exclude launch/clientlib,launch/api_client
4646
- run:
4747
name: Pylint Lint Check # Uses .pylintrc for configuration
4848
command: |
49-
poetry run pylint launch --ignore=clientlib
49+
poetry run pylint launch --ignore=clientlib,api_client
5050
- run :
5151
name: MyPy typing check
5252
command: |
53-
poetry run mypy --ignore-missing-imports launch --exclude launch/clientlib
53+
poetry run mypy --ignore-missing-imports launch --exclude launch/clientlib --exclude launch/api_client
5454
- run :
5555
name: Isort Import Formatting Check # Only validation, without re-formatting
5656
command: |

.flake8

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,10 @@ max-line-length = 79
44
max-complexity = 18
55
select = B,C,E,F,W,T4,B9
66
exclude =
7+
# api_client is autogenerated
8+
launch/api_client,
79
# clientlib is documentation only, not runnable code
8-
launch/clientlib
10+
launch/clientlib,
911
# All of these excludes should mirror something in .gitignore
1012
.git,
1113
__pychache__,

launch/api_client/__init__.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
# flake8: noqa
2+
3+
"""
4+
launch
5+
6+
No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501
7+
8+
The version of the OpenAPI document: 0.1.0
9+
Generated by: https://openapi-generator.tech
10+
"""
11+
12+
13+
__version__ = "1.0.0"
14+
15+
# import ApiClient
16+
from launch.api_client.api_client import ApiClient
17+
18+
# import Configuration
19+
from launch.api_client.configuration import Configuration
20+
21+
# import exceptions
22+
from launch.api_client.exceptions import (
23+
ApiAttributeError,
24+
ApiException,
25+
ApiKeyError,
26+
ApiTypeError,
27+
ApiValueError,
28+
OpenApiException,
29+
)

launch/api_client/api/__init__.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# do not import all apis into this module because that uses a lot of memory and stack frames
2+
# if you need the ability to import all apis from one package, import them with
3+
# from launch.api_client.apis import DefaultApi

0 commit comments

Comments
 (0)