Skip to content

Commit 05e13ee

Browse files
sdk
1 parent 4e3438d commit 05e13ee

File tree

178 files changed

+19993
-24
lines changed

Some content is hidden

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

178 files changed

+19993
-24
lines changed

.editorconfig-checker.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"AllowedContentTypes": [],
3+
"Debug": false,
4+
"Disable": {
5+
"EndOfLine": false,
6+
"IndentSize": false,
7+
"Indentation": false,
8+
"InsertFinalNewline": false,
9+
"MaxLineLength": false,
10+
"TrimTrailingWhitespace": false
11+
},
12+
"Exclude": [
13+
"sdk"
14+
],
15+
"IgnoreDefaults": false,
16+
"NoColor": false,
17+
"PassedFiles": [],
18+
"SpacesAfterTabs": false,
19+
"Verbose": false
20+
}

.markdownlintignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
**/sdk/*

scripts/config/markdownlint.yaml

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,4 @@
1-
# SEE: https://github.com/DavidAnson/markdownlint/blob/main/schema/.markdownlint.yaml
2-
3-
# https://github.com/DavidAnson/markdownlint/blob/main/doc/md013.md
41
MD013: false
5-
6-
# https://github.com/DavidAnson/markdownlint/blob/main/doc/md024.md
72
MD024:
83
siblings_only: true
9-
10-
# https://github.com/DavidAnson/markdownlint/blob/main/doc/md033.md
114
MD033: false
12-
13-
ignores:
14-
- "**/sdk/**/*"

scripts/config/pre-commit.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v4.6.0 # Use the ref you want to point at
3+
rev: v5.0.0 # Use the ref you want to point at
44
hooks:
55
- id: trailing-whitespace
66
- id: detect-aws-credentials
@@ -13,6 +13,12 @@ repos:
1313
- id: mixed-line-ending
1414
- id: pretty-format-json
1515
args: ['--autofix']
16+
exclude: |
17+
(?x)^(
18+
sdk/.* |
19+
someotherdir/.*
20+
)$
21+
1622
# - id: ...
1723
- repo: local
1824
hooks:

scripts/githooks/check-file-format.sh

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ function run-editorconfig-natively() {
8989
# dry_run_opt=[dry run option]
9090
# filter=[git command to filter the files to check]
9191
function run-editorconfig-in-docker() {
92-
92+
echo "RUNNING EDITOR CHECK IN DOCKER"
9393
# shellcheck disable=SC1091
9494
source ./scripts/docker/docker.lib.sh
9595

@@ -98,10 +98,12 @@ function run-editorconfig-in-docker() {
9898
# We use /dev/null here as a backstop in case there are no files in the state
9999
# we choose. If the filter comes back empty, adding `/dev/null` onto it has
100100
# the effect of preventing `ec` from treating "no files" as "all the files".
101+
set -x
101102
docker run --rm --platform linux/amd64 \
102103
--volume "$PWD":/check \
103104
"$image" \
104-
sh -c "ec --exclude '.git/' $dry_run_opt \$($filter) /dev/null"
105+
sh -c "ec --exclude '.git/' --config .editorconfig-checker.json $dry_run_opt \$($filter) /dev/null"
106+
set +x
105107
}
106108

107109
# ==============================================================================

scripts/githooks/check-markdown-format.sh

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ set -euo pipefail
3232
# ==============================================================================
3333

3434
function main() {
35-
35+
echo "CHECKING MARKDOWN!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!"
3636
cd "$(git rev-parse --show-toplevel)"
3737

3838
check=${check:-working-tree-changes}
@@ -64,7 +64,7 @@ function main() {
6464
# Arguments (provided as environment variables):
6565
# files=[files to check]
6666
function run-markdownlint-natively() {
67-
67+
echo "RUNNING MARKDOWN LINT NATIVELY"
6868
# shellcheck disable=SC2086
6969
markdownlint \
7070
$files \
@@ -75,18 +75,25 @@ function run-markdownlint-natively() {
7575
# Arguments (provided as environment variables):
7676
# files=[files to check]
7777
function run-markdownlint-in-docker() {
78-
78+
echo "RUNNING MARKDOWN LINT IN DOCKER"
7979
# shellcheck disable=SC1091
8080
source ./scripts/docker/docker.lib.sh
8181

8282
# shellcheck disable=SC2155
8383
local image=$(name=ghcr.io/igorshubovych/markdownlint-cli docker-get-image-version-and-pull)
8484
# shellcheck disable=SC2086
85+
86+
echo "Config:"
87+
cat scripts/config/markdownlint.yaml
88+
89+
set -x
8590
docker run --rm --platform linux/amd64 \
8691
--volume "$PWD":/workdir \
8792
"$image" \
8893
$files \
8994
--config /workdir/scripts/config/markdownlint.yaml
95+
96+
set +x
9097
}
9198

9299
# ==============================================================================
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-python
5+
6+
name: openapi_client Python package
7+
8+
on: [push, pull_request]
9+
10+
permissions:
11+
contents: read
12+
13+
jobs:
14+
build:
15+
16+
runs-on: ubuntu-latest
17+
strategy:
18+
matrix:
19+
python-version: ["3.9", "3.10", "3.11", "3.12", "3.13"]
20+
21+
steps:
22+
- uses: actions/checkout@v4
23+
- name: Set up Python ${{ matrix.python-version }}
24+
uses: actions/setup-python@v4
25+
with:
26+
python-version: ${{ matrix.python-version }}
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install -r requirements.txt
31+
pip install -r test-requirements.txt
32+
- name: Test with pytest
33+
run: |
34+
pytest --cov=openapi_client

sdk/python/.gitignore

Lines changed: 66 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
# Byte-compiled / optimized / DLL files
2+
__pycache__/
3+
*.py[cod]
4+
*$py.class
5+
6+
# C extensions
7+
*.so
8+
9+
# Distribution / packaging
10+
.Python
11+
env/
12+
build/
13+
develop-eggs/
14+
dist/
15+
downloads/
16+
eggs/
17+
.eggs/
18+
lib/
19+
lib64/
20+
parts/
21+
sdist/
22+
var/
23+
*.egg-info/
24+
.installed.cfg
25+
*.egg
26+
27+
# PyInstaller
28+
# Usually these files are written by a python script from a template
29+
# before PyInstaller builds the exe, so as to inject date/other infos into it.
30+
*.manifest
31+
*.spec
32+
33+
# Installer logs
34+
pip-log.txt
35+
pip-delete-this-directory.txt
36+
37+
# Unit test / coverage reports
38+
htmlcov/
39+
.tox/
40+
.coverage
41+
.coverage.*
42+
.cache
43+
nosetests.xml
44+
coverage.xml
45+
*,cover
46+
.hypothesis/
47+
venv/
48+
.venv/
49+
.python-version
50+
.pytest_cache
51+
52+
# Translations
53+
*.mo
54+
*.pot
55+
56+
# Django stuff:
57+
*.log
58+
59+
# Sphinx documentation
60+
docs/_build/
61+
62+
# PyBuilder
63+
target/
64+
65+
#Ipython Notebook
66+
.ipynb_checkpoints

sdk/python/.gitlab-ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
# NOTE: This file is auto generated by OpenAPI Generator.
2+
# URL: https://openapi-generator.tech
3+
#
4+
# ref: https://docs.gitlab.com/ee/ci/README.html
5+
# ref: https://gitlab.com/gitlab-org/gitlab/-/blob/master/lib/gitlab/ci/templates/Python.gitlab-ci.yml
6+
7+
stages:
8+
- test
9+
10+
.pytest:
11+
stage: test
12+
script:
13+
- pip install -r requirements.txt
14+
- pip install -r test-requirements.txt
15+
- pytest --cov=openapi_client
16+
17+
pytest-3.9:
18+
extends: .pytest
19+
image: python:3.9-alpine
20+
pytest-3.10:
21+
extends: .pytest
22+
image: python:3.10-alpine
23+
pytest-3.11:
24+
extends: .pytest
25+
image: python:3.11-alpine
26+
pytest-3.12:
27+
extends: .pytest
28+
image: python:3.12-alpine
29+
pytest-3.13:
30+
extends: .pytest
31+
image: python:3.13-alpine
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# OpenAPI Generator Ignore
2+
# Generated by openapi-generator https://github.com/openapitools/openapi-generator
3+
4+
# Use this file to prevent files from being overwritten by the generator.
5+
# The patterns follow closely to .gitignore or .dockerignore.
6+
7+
# As an example, the C# client generator defines ApiClient.cs.
8+
# You can make changes and tell OpenAPI Generator to ignore just this file by uncommenting the following line:
9+
#ApiClient.cs
10+
11+
# You can match any string of characters against a directory, file or extension with a single asterisk (*):
12+
#foo/*/qux
13+
# The above matches foo/bar/qux and foo/baz/qux, but not foo/bar/baz/qux
14+
15+
# You can recursively match patterns against a directory, file or extension with a double asterisk (**):
16+
#foo/**/qux
17+
# This matches foo/bar/qux, foo/baz/qux, and foo/bar/baz/qux
18+
19+
# You can also negate patterns with an exclamation (!).
20+
# For example, you can ignore all files in a docs folder with the file extension .md:
21+
#docs/*.md
22+
# Then explicitly reverse the ignore rule for a single file:
23+
#!docs/README.md

0 commit comments

Comments
 (0)