-
Notifications
You must be signed in to change notification settings - Fork 70
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into 333-consider-making-logging-more-granular
- Loading branch information
Showing
67 changed files
with
1,619 additions
and
167 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
pip==23.2.1 | ||
poetry==1.5.1 | ||
poetry==1.6.1 | ||
pre-commit==3.3.3 | ||
nox==2023.4.22 | ||
nox-poetry==1.0.3 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,11 +16,11 @@ jobs: | |
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout the repository | ||
uses: actions/checkout@v3.5.3 | ||
uses: actions/checkout@v3.6.0 | ||
|
||
- name: GitHub dependency vulnerability check | ||
if: ${{ github.event_name == 'pull_request_target' }} | ||
uses: actions/[email protected].6 | ||
uses: actions/[email protected].8 | ||
with: | ||
fail-on-severity: high | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -16,7 +16,7 @@ jobs: | |
|
||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3.5.3 | ||
uses: actions/checkout@v3.6.0 | ||
|
||
- name: Set up Python | ||
uses: actions/[email protected] | ||
|
@@ -56,4 +56,4 @@ jobs: | |
file_glob: true | ||
|
||
- name: Publish | ||
uses: pypa/[email protected].8 | ||
uses: pypa/[email protected].10 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
# Singer Mapper Template | ||
|
||
To use this cookie cutter template: | ||
|
||
```bash | ||
pip3 install pipx | ||
pipx ensurepath | ||
# You may need to reopen your shell at this point | ||
pipx install cookiecutter | ||
``` | ||
|
||
Initialize Cookiecutter template directly from Git: | ||
|
||
```bash | ||
cookiecutter https://github.com/meltano/sdk --directory="cookiecutter/mapper-template" | ||
``` | ||
|
||
Or locally from an already-cloned `sdk` repo: | ||
|
||
```bash | ||
cookiecutter ./sdk/cookiecutter/mapper-template | ||
``` | ||
|
||
See the [dev guide](https://sdk.meltano.com/en/latest/dev_guide.html). |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
{ | ||
"name": "MyMapperName", | ||
"admin_name": "FirstName LastName", | ||
"admin_email": "[email protected]", | ||
"mapper_id": "mapper-{{ cookiecutter.name.lower() }}", | ||
"library_name": "{{ cookiecutter.mapper_id.replace('-', '_') }}", | ||
"variant": "None (Skip)", | ||
"include_ci_files": ["GitHub", "None (Skip)"], | ||
"license": ["Apache-2.0"], | ||
"__prompts__": { | ||
"name": "The name of the mapper, in CamelCase", | ||
"admin_name": "Provide your [bold yellow]full name[/]", | ||
"admin_email": "Provide your [bold yellow]email[/]", | ||
"mapper_id": "The ID of the tap, in kebab-case", | ||
"library_name": "The name of the library, in snake_case. This is how the library will be imported in Python.", | ||
"include_ci_files": "Whether to include CI files for a common CI services", | ||
"license": "The license for the project" | ||
} | ||
} |
30 changes: 30 additions & 0 deletions
30
...d}}/.github/workflows/{% if cookiecutter.include_ci_files == 'GitHub' %}test.yml{%endif%}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,30 @@ | ||
### A CI workflow template that runs linting and python testing | ||
### TODO: Modify as needed or as desired. | ||
|
||
name: Test {{cookiecutter.mapper_id}} | ||
|
||
on: [push] | ||
|
||
jobs: | ||
pytest: | ||
runs-on: ubuntu-latest | ||
env: | ||
GITHUB_TOKEN: {{ '${{secrets.GITHUB_TOKEN}}' }} | ||
strategy: | ||
matrix: | ||
python-version: ["3.7", "3.8", "3.9", "3.10", "3.11"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: Set up Python {{ '${{ matrix.python-version }}' }} | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: {{ '${{ matrix.python-version }}' }} | ||
- name: Install Poetry | ||
run: | | ||
pip install poetry | ||
- name: Install dependencies | ||
run: | | ||
poetry install | ||
- name: Test with pytest | ||
run: | | ||
poetry run pytest |
26 changes: 26 additions & 0 deletions
26
...er_id}}/.github/{% if cookiecutter.include_ci_files == 'GitHub' %}dependabot.yml{%endif%}
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
# To get started with Dependabot version updates, you'll need to specify which | ||
# package ecosystems to update and where the package manifests are located. | ||
# Please see the documentation for all configuration options: | ||
# https://help.github.com/github/administering-a-repository/configuration-options-for-dependency-updates | ||
|
||
version: 2 | ||
updates: | ||
- package-ecosystem: pip | ||
directory: "/" | ||
schedule: | ||
interval: "daily" | ||
commit-message: | ||
prefix: "chore(deps): " | ||
prefix-development: "chore(deps-dev): " | ||
- package-ecosystem: pip | ||
directory: "/.github/workflows" | ||
schedule: | ||
interval: daily | ||
commit-message: | ||
prefix: "ci: " | ||
- package-ecosystem: github-actions | ||
directory: "/" | ||
schedule: | ||
interval: "weekly" | ||
commit-message: | ||
prefix: "ci: " |
Oops, something went wrong.