Skip to content

Commit

Permalink
type checking, ruff, pre-commit passing
Browse files Browse the repository at this point in the history
  • Loading branch information
cjohnhanson committed Oct 23, 2024
1 parent 43db081 commit e0730b5
Show file tree
Hide file tree
Showing 31 changed files with 3,391 additions and 3,050 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -294,3 +294,4 @@ dmypy.json

# Pyre type checker
.pyre/
.aider*
4 changes: 4 additions & 0 deletions meltano.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,10 @@ plugins:
config:
api_url: https://api-integration.servicetitan.io
auth_url: https://auth-integration.servicetitan.io/connect/token
select:
- '*.*'
- '!job_history.*'
- '!capacities.*'
loaders:
- name: target-jsonl
variant: andyh1203
Expand Down
Empty file removed output/.gitignore
Empty file.
2,264 changes: 1,217 additions & 1,047 deletions poetry.lock

Large diffs are not rendered by default.

9 changes: 3 additions & 6 deletions tap_service_titan/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@

import requests
from singer_sdk.helpers.jsonpath import extract_jsonpath
from singer_sdk.pagination import ( # noqa: TCH002
from singer_sdk.pagination import (
BaseAPIPaginator,
BasePageNumberPaginator,
)
Expand All @@ -18,15 +18,12 @@
from tap_service_titan.auth import ServiceTitanAuthenticator

if sys.version_info >= (3, 9):
import importlib.resources as importlib_resources
pass
else:
import importlib_resources
pass

_Auth = Callable[[requests.PreparedRequest], requests.PreparedRequest]

# TODO: Delete this is if not using json files for schema definition
SCHEMAS_DIR = importlib_resources.files(__package__) / "schemas"


class ServiceTitanBaseStream(RESTStream):
"""ServiceTitan base stream class."""
Expand Down
1 change: 0 additions & 1 deletion tap_service_titan/schemas/__init__.py

This file was deleted.

Loading

0 comments on commit e0730b5

Please sign in to comment.