Skip to content

Commit

Permalink
chore(deps): pre-commit autoupdate (#67)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/astral-sh/ruff-pre-commit: v0.1.5 →
v0.1.6](astral-sh/ruff-pre-commit@v0.1.5...v0.1.6)
<!--pre-commit.ci end-->

---------

Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: Edgar Ramírez Mondragón <[email protected]>
  • Loading branch information
pre-commit-ci[bot] and edgarrmondragon authored Nov 21, 2023
1 parent 0ca38f1 commit 0878df1
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 25 deletions.
8 changes: 2 additions & 6 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -21,15 +21,11 @@ repos:
- id: pyproject-fmt

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: 'v0.1.5'
rev: 'v0.1.6'
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]

- repo: https://github.com/psf/black
rev: "23.11.0"
hooks:
- id: black
- id: ruff-format

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.7.0
Expand Down
26 changes: 15 additions & 11 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -36,38 +36,42 @@ types-requests = "^2.31.0.6"
tap-circle-ci = 'tap_circle_ci.tap:TapCircleCI.cli'

[tool.ruff]
line-length = 88
src = ["tap_pulumi_cloud", "tests"]
target-version = "py38"

[tool.ruff.format]
# Enable preview style formatting.
preview = true

[tool.ruff.lint]
explicit-preview-rules = false
ignore = [
"ANN101", # missing-type-self
"DJ", # flake8-django
"CPY", # missing-copyright-notice
"COM812", # missing-trailing-comma
"ISC001", # single-line-implicit-string-concatenatio
]
line-length = 88
preview = true
select = ["ALL"]
src = ["tap_pulumi_cloud", "tests"]
target-version = "py38"
unfixable = [
"ERA001", # commented-out-code
]

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"noxfile.py" = ["ANN"]
"tests/*" = [
"ANN201", # missing-return-type-public-function
"S101", # assert
"SLF001", # private-member-access
]

[tool.ruff.flake8-annotations]
[tool.ruff.lint.flake8-annotations]
allow-star-arg-any = true

[tool.ruff.format]
# Enable preview style formatting.
preview = true

[tool.ruff.isort]
[tool.ruff.lint.isort]
known-first-party = ["tap_circle_ci"]

[tool.ruff.pydocstyle]
[tool.ruff.lint.pydocstyle]
convention = "google"
4 changes: 2 additions & 2 deletions tap_circle_ci/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ def http_headers(self) -> dict:
headers["User-Agent"] = self.config["user_agent"]
return headers

def get_url_params(
self, # noqa: PLR6301
def get_url_params( # noqa: PLR6301
self,
context: dict | None, # noqa: ARG002
next_page_token: str | None,
) -> dict[str, Any]:
Expand Down
12 changes: 6 additions & 6 deletions tap_circle_ci/streams.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ class PipelinesStream(CircleCIStream):
replication_method = "INCREMENTAL"
schema_filepath = SCHEMAS_DIR / "pipelines.json"

def get_child_context(
self, # noqa: PLR6301
def get_child_context( # noqa: PLR6301
self,
record: dict,
context: dict | None, # noqa: ARG002
) -> dict:
Expand All @@ -48,8 +48,8 @@ class WorkflowsStream(CircleCIStream):
primary_keys: t.ClassVar[list[str]] = ["id"]
schema_filepath = SCHEMAS_DIR / "workflows.json"

def get_child_context(
self, # noqa: PLR6301
def get_child_context( # noqa: PLR6301
self,
record: dict,
context: dict | None, # noqa: ARG002
) -> dict:
Expand All @@ -66,8 +66,8 @@ class JobsStream(CircleCIStream):
primary_keys: t.ClassVar[list[str]] = ["id"]
schema_filepath = SCHEMAS_DIR / "jobs.json"

def post_process(
self, # noqa: PLR6301
def post_process( # noqa: PLR6301
self,
row: dict,
context: dict | None = None,
) -> dict | None:
Expand Down

0 comments on commit 0878df1

Please sign in to comment.