* handwritten low code manifest example components * add MinMaxDatetime to jsonschema * add a basic gradle command to generate manifest components * Add auth components to handwritten component schema - ApiKeyAuthenticator - BasicHttpAuthenticator - BearerAuthenticator - DeclarativeOauth2Authenticator - NoAuth * Respect optional properties in DeclarativeOauth2Authenticator * Fix `Dict[str, Any]` mapping in auth components * add default error handler composite error handler and http response filter components * [low code component schema] adding backoff strategies to schema * [low code component schema] fix float types * [low code component schema] add RecordFilter * Remove `config` from auth components * [low code component schema] add Interpolation (with pending question on 'type' not being defined) * Add CartesianProductStreamSlicer & DatetimeStreamSlicer * Add ListStreamSlicer, and fix nesting of DatetimeStreamSlicer * [low code component schema] add InterpolatedRequestOptionsProvider * Add slicer components, and fix a couple of components after reviewing output * [low code component schema] adding transformations and adding type to interpolators * adding spec and a few small tweaks * Add DefaultSchemaLoader * [low code component schema] attempt on custom class * Add descriptions for auth components * add RequestOption * remove interpolated objects from the schema in favor of strings only * a few schema fixes and adding some custom pagination and stream slicer * [low code component schema] fix CustomBackoffStrategy * Add CustomRecordExtractor * add some description and add additional properties * insert a transformer to hydrate default manifest components and perform validation against the handwritten schema * [low code component schema] validating existing schemas * [low code component schema] clean validation script * add manifest transformer tests and a few tweaks to the schema * Revert "[low code component schema] clean validation script" This reverts commit2408f41cf6. * Revert "[low code component schema] validating existing schemas" This reverts commit9d39977815. * [low code component schema] integrate validation script to gradle * [low code component schema] updating validation script permissions * remove a few model gen spike files and clean up comments * default types should take parent type into account and a few schema changes * [ISSUE #20044] generate pydantic models from handwritten schema * [ISSUE #20044] code review * [ISSUE #20044] re-generating declarative component schema files Co-authored-by: brianjlai <brian.lai@airbyte.io> Co-authored-by: Catherine Noll <noll.catherine@gmail.com>
69 lines
1.8 KiB
YAML
69 lines
1.8 KiB
YAML
default_language_version:
|
|
python: python3
|
|
|
|
repos:
|
|
- repo: https://github.com/johann-petrak/licenseheaders.git
|
|
rev: v0.8.8
|
|
hooks:
|
|
- id: licenseheaders
|
|
args:
|
|
["--tmpl=LICENSE_SHORT", "--ext=py", "-x=**/models/__init__.py", "-f"]
|
|
- repo: https://github.com/psf/black
|
|
rev: 22.3.0
|
|
hooks:
|
|
- id: black
|
|
args: ["--config", "pyproject.toml"]
|
|
- repo: https://github.com/timothycrosley/isort
|
|
rev: 5.10.1
|
|
hooks:
|
|
- id: isort
|
|
args:
|
|
[
|
|
"--settings-file",
|
|
"pyproject.toml",
|
|
"--dont-follow-links",
|
|
"--jobs=-1",
|
|
]
|
|
additional_dependencies: ["colorama"]
|
|
- repo: https://github.com/pre-commit/mirrors-prettier
|
|
rev: v2.5.0
|
|
hooks:
|
|
- id: prettier
|
|
types_or: [yaml, json]
|
|
exclude: |
|
|
(?x)^.*(
|
|
.github/|
|
|
source_specs.yaml|
|
|
destination_specs.yaml|
|
|
.gitlab-ci.yml
|
|
).?$
|
|
|
|
- repo: https://github.com/csachs/pyproject-flake8
|
|
rev: v6.0.0
|
|
hooks:
|
|
- id: pyproject-flake8
|
|
args: ["--config", "pyproject.toml"]
|
|
additional_dependencies: ["mccabe"]
|
|
alias: flake8
|
|
- repo: https://github.com/pre-commit/mirrors-mypy
|
|
rev: v0.930
|
|
hooks:
|
|
- id: mypy
|
|
args: ["--config-file", "pyproject.toml"]
|
|
exclude: |
|
|
(?x)^.*(
|
|
octavia-cli/unit_tests/|
|
|
).?$
|
|
- repo: local
|
|
hooks:
|
|
- id: spec-linter
|
|
name: validate connectors spec files
|
|
language: system
|
|
entry: python tools/git_hooks/spec_linter.py
|
|
files: ^.*/spec.json$
|
|
exclude: |
|
|
(?x)^.*(
|
|
/connectors/destination-e2e-test|
|
|
/connectors/source-e2e-test
|
|
).*$
|