Skip to content

Add autogenerated client into launch v1 #63

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 4 commits into from
Dec 1, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,15 +42,15 @@ jobs:
- run:
name: Flake8 Lint Check # Uses setup.cfg for configuration
command: |
poetry run flake8 launch --count --statistics --exclude launch/clientlib
poetry run flake8 launch --count --statistics --exclude launch/clientlib,launch/api_client
- run:
name: Pylint Lint Check # Uses .pylintrc for configuration
command: |
poetry run pylint launch --ignore=clientlib
poetry run pylint launch --ignore=clientlib,api_client
- run :
name: MyPy typing check
command: |
poetry run mypy --ignore-missing-imports launch --exclude launch/clientlib
poetry run mypy --ignore-missing-imports launch --exclude launch/clientlib --exclude launch/api_client
- run :
name: Isort Import Formatting Check # Only validation, without re-formatting
command: |
Expand Down
4 changes: 3 additions & 1 deletion .flake8
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,10 @@ max-line-length = 79
max-complexity = 18
select = B,C,E,F,W,T4,B9
exclude =
# api_client is autogenerated
launch/api_client,
# clientlib is documentation only, not runnable code
launch/clientlib
launch/clientlib,
# All of these excludes should mirror something in .gitignore
.git,
__pychache__,
Expand Down
29 changes: 29 additions & 0 deletions launch/api_client/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
# flake8: noqa

"""
launch

No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator) # noqa: E501

The version of the OpenAPI document: 0.1.0
Generated by: https://openapi-generator.tech
"""


__version__ = "1.0.0"

# import ApiClient
from launch.api_client.api_client import ApiClient

# import Configuration
from launch.api_client.configuration import Configuration

# import exceptions
from launch.api_client.exceptions import (
ApiAttributeError,
ApiException,
ApiKeyError,
ApiTypeError,
ApiValueError,
OpenApiException,
)
3 changes: 3 additions & 0 deletions launch/api_client/api/__init__.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
# do not import all apis into this module because that uses a lot of memory and stack frames
# if you need the ability to import all apis from one package, import them with
# from launch.api_client.apis import DefaultApi
Loading