Skip to content

Commit

Permalink
fix bugs with mapper cookiecutter
Browse files Browse the repository at this point in the history
  • Loading branch information
pnadolny13 committed Aug 2, 2023
1 parent a2c119d commit 9f7c1fd
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 16 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
### A CI workflow template that runs linting and python testing
### TODO: Modify as needed or as desired.

name: Test {{cookiecutter.tap_id}}
name: Test {{cookiecutter.mapper_id}}

on: [push]

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,3 @@ repos:
rev: v1.4.1
hooks:
- id: mypy
additional_dependencies:
{%- if cookiecutter.stream_type == "SQL" %}
- sqlalchemy-stubs
{%- else %}
- types-requests
{%- endif %}
Original file line number Diff line number Diff line change
Expand Up @@ -24,12 +24,6 @@ packages = [
python = "<3.12,>=3.7.1"
singer-sdk = { version="^0.30.0" }
fs-s3fs = { version = "^1.1.1", optional = true }
{%- if cookiecutter.stream_type in ["REST", "GraphQL"] %}
requests = "^2.31.0"
{%- endif %}
{%- if cookiecutter.auth_method in ("OAuth2", "JWT") %}
cached-property = "^1" # Remove after Python 3.7 support is dropped
{%- endif %}

[tool.poetry.group.dev.dependencies]
pytest = "^7.2.1"
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
"""Test suite for {{ cookiecutter.tap_id }}."""
"""Test suite for {{ cookiecutter.mapper_id }}."""
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
"""{{ cookiecutter.destination_name }} target class."""
"""{{ cookiecutter.name }} mapper class."""

from __future__ import annotations

Expand All @@ -17,7 +17,7 @@
class {{ cookiecutter.name }}Mapper(InlineMapper):
"""Sample mapper for {{ cookiecutter.name }}."""

name = "{{ cookiecutter.ammper_id }}"
name = "{{ cookiecutter.mapper_id }}"

config_jsonschema = th.PropertiesList(
# TODO: Replace or remove this example config based on your needs
Expand Down

0 comments on commit 9f7c1fd

Please sign in to comment.