Skip to content

Commit

Permalink
chore: Remove stale refs (#11)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Feb 1, 2024
1 parent 19cade9 commit 65a4cd7
Show file tree
Hide file tree
Showing 8 changed files with 28 additions and 42 deletions.
4 changes: 0 additions & 4 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

name: Build and publish

on:
Expand All @@ -13,9 +12,6 @@ jobs:
with:
fetch-depth: 0
ref: ${{ github.ref }}
- uses: actions/setup-python@v5
with:
python-version: "3.11"
- uses: hynek/build-and-inspect-python-package@v2

publish:
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/constraints.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,2 @@
hatch==1.9.3
pip==23.3.2
nox==2023.4.22
17 changes: 7 additions & 10 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,30 +17,27 @@ on:
- pyproject.toml
- .github/workflows/test.yml
- .github/workflows/constraints.txt
workflow_dispatch:

jobs:
test:
runs-on: ubuntu-latest
env:
FORCE_COLOR: "1"
NOXPYTHON: ${{ matrix.python-version }}
NOXSESSION: tests
PIP_CONSTRAINT: .github/workflows/constraints.txt
strategy:
fail-fast: false
matrix:
script: ["test:integration"]
python-version: ["3.8", "3.9", "3.10", "3.11", "3.12"]
include:
- { script: "test:dependencies", python-version: "3.11" }
- { script: "typing:check", python-version: "3.11" }
- { script: "test:dependencies", python-version: "3.12" }
- { script: "typing:check", python-version: "3.12" }

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Python ${{ matrix.python-version }}
uses: actions/setup-python@v5
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
id: setup-python
with:
python-version: ${{ matrix.python-version }}
cache: pip
Expand All @@ -52,7 +49,7 @@ jobs:
- name: Install Hatch
run: |
pipx install hatch --python "python${{ matrix.python-version }}"
pipx install --python '${{ steps.setup-python.outputs.python-path }}' hatch
hatch --version
- name: Run
Expand Down
14 changes: 3 additions & 11 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -16,34 +16,26 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.5.3"
rev: "1.7.0"
hooks:
- id: pyproject-fmt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: "v0.1.8"
rev: "v0.1.15"
hooks:
- id: ruff
name: Ruff lint
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff-format
name: Ruff format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.1
hooks:
- id: mypy
pass_filenames: true
additional_dependencies:
- types-requests

- repo: https://github.com/pre-commit/pre-commit
rev: v3.6.0
hooks:
- id: validate_manifest

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.27.3
rev: 0.27.4
hooks:
- id: check-dependabot
- id: check-github-workflows
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
"hookdeck",
"opsgenie"
]
}
}
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ Run integration tests:
hatch run tests:integration
```

You can also test the `tap-neon` CLI interface directly:
You can also test the `tap-hookdeck` CLI interface directly:

```bash
hatch run sync:console -- --about --format=json
Expand All @@ -90,13 +90,13 @@ Your project comes with a custom `meltano.yml` project file already created. Go
2. Check that the extractor is working properly

```bash
meltano invoke tap-neon --version
meltano invoke tap-hookdeck --version
```

3. Execute an ELT pipeline

```bash
meltano run tap-neon target-jsonl
meltano run tap-hookdeck target-jsonl
```

### SDK Dev Guide
Expand Down
2 changes: 1 addition & 1 deletion plugins/loaders/target-jsonl--andyh1203.lock
Original file line number Diff line number Diff line change
Expand Up @@ -31,4 +31,4 @@
"description": "Specifies a custom name for the filename, instead of the stream name.\n\nThe file name will be `{custom_name}-{timestamp}.jsonl`, if `do_timestamp_file` is `true`.\nOtherwise the file name will be `{custom_name}.jsonl`.\n\nIf custom name is not provided, the stream name will be used.\n"
}
]
}
}
24 changes: 13 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ keywords = [
"Hookdeck",
"singer.io",
]
license = "Apache-2.0"
license.file = "LICENSE"
maintainers = [{ name = "Edgar Ramírez-Mondragón", email = "[email protected]" }]
authors = [{ name = "Edgar Ramírez-Mondragón", email = "[email protected]" }]
requires-python = ">=3.8"
Expand All @@ -32,24 +32,21 @@ dynamic = [
dependencies = [
"singer-sdk~=0.34.0",
]
[project.optional-dependencies]
dev = [
optional-dependencies.dev = [
"tap-hookdeck[testing,typing]",
]
testing = [
optional-dependencies.testing = [
"deptry>=0.12",
"pytest>=7.4",
"singer-sdk[testing]~=0.34.0",
]
typing = [
optional-dependencies.typing = [
"mypy",
]
[project.urls]
Documentation = "https://github.com/edgarrmondragon/tap-hookdeck#readme"
Homepage = "https://github.com/edgarrmondragon/tap-hookdeck"
Repository = "https://github.com/edgarrmondragon/tap-hookdeck"
[project.scripts]
"tap-hookdeck" = "tap_hookdeck.tap:TapHookdeck.cli"
urls.Documentation = "https://github.com/edgarrmondragon/tap-hookdeck#readme"
urls.Homepage = "https://github.com/edgarrmondragon/tap-hookdeck"
urls.Repository = "https://github.com/edgarrmondragon/tap-hookdeck"
scripts."tap-hookdeck" = "tap_hookdeck.tap:TapHookdeck.cli"

[tool.hatch.version]
source = "vcs"
Expand All @@ -64,6 +61,11 @@ features = ["testing"]
integration = "pytest {args:tests}"
dependencies = "deptry ."

[tool.hatch.envs.all]
template = "test"
[[tool.hatch.envs.all.matrix]]
python = ["3.8", "3.9", "3.10", "3.11", "3.12"]

[tool.hatch.envs.typing]
features = ["testing", "typing"]
[tool.hatch.envs.typing.scripts]
Expand Down

0 comments on commit 65a4cd7

Please sign in to comment.