Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: pre-commit autoupdate #256

Merged
merged 7 commits into from
May 13, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -23,13 +23,13 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/python-jsonschema/check-jsonschema
rev: 0.28.2
rev: 0.28.3
hooks:
- id: check-dependabot
- id: check-github-workflows

- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.4.3
rev: v0.4.4
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
Expand All @@ -50,6 +50,6 @@ repos:
- darglint

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.8.0"
rev: "2.0.4"
hooks:
- id: pyproject-fmt
78 changes: 44 additions & 34 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
[build-system]
build-backend = "poetry_dynamic_versioning.backend"
requires = [
"poetry-core==1.8.1",
"poetry-dynamic-versioning==1.2",
]

[tool.poetry]
name = "meltano-map-transform"
version = "0.0.0"
Expand All @@ -18,11 +25,17 @@ documentation = "https://github.com/MeltanoLabs/meltano-map-transform#readme"

[tool.poetry.dependencies]
python = ">=3.8"
singer-sdk = {version = "~=0.37.0", extras = ["faker"]}
singer-sdk = { version = "~=0.37.0", extras = [
"faker",
] }

[tool.poetry.dev-dependencies]
pytest = ">=7.4.4"

[tool.poetry.scripts]
# CLI declaration
meltano-map-transform = "meltano_map_transform.mapper:StreamTransform.cli"

[tool.poetry-dynamic-versioning]
enable = true
format-jinja = """
Expand All @@ -38,47 +51,30 @@ metadata = true
style = "pep440"
vcs = "git"

[tool.pytest.ini_options]
addopts = "-vvv"

[tool.mypy]
python_version = "3.12"
warn_unused_configs = true

[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"backoff.*",
"singer.*", # https://github.com/transferwise/pipelinewise-singer-python/issues/25
]

[build-system]
build-backend = "poetry_dynamic_versioning.backend"
requires = [
"poetry-core==1.8.1",
"poetry-dynamic-versioning==1.2",
]

[tool.poetry.scripts]
# CLI declaration
meltano-map-transform = "meltano_map_transform.mapper:StreamTransform.cli"

[tool.ruff]
src = ["meltano_map_transform"]
src = [
"meltano_map_transform",
]
target-version = "py38"

[tool.ruff.lint]
ignore = [
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"DJ", # flake8-django
"PD", # pandas-vet
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"DJ", # flake8-django
"PD", # pandas-vet
]
select = [
"ALL",
]
select = ["ALL"]

[tool.ruff.lint.isort]
known-first-party = ["meltano_map_transform"]
required-imports = ["from __future__ import annotations"]
known-first-party = [
"meltano_map_transform",
]
required-imports = [
"from __future__ import annotations",
]

[tool.ruff.lint.per-file-ignores]
"tests/*" = [
Expand All @@ -88,3 +84,17 @@ required-imports = ["from __future__ import annotations"]

[tool.ruff.lint.pydocstyle]
convention = "google"

[tool.pytest.ini_options]
addopts = "-vvv"

[tool.mypy]
python_version = "3.12"
warn_unused_configs = true

[[tool.mypy.overrides]]
ignore_missing_imports = true
module = [
"backoff.*",
"singer.*", # https://github.com/transferwise/pipelinewise-singer-python/issues/25
]