Skip to content

Commit

Permalink
fix: Invalid f-string syntax in Python 3.7 (#132)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Nov 21, 2023
1 parent b589260 commit 9e81dc4
Show file tree
Hide file tree
Showing 18 changed files with 336 additions and 237 deletions.
14 changes: 5 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-json
- id: check-toml
Expand All @@ -14,24 +14,20 @@ repos:
- id: trailing-whitespace

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

- repo: https://github.com/charliermarsh/ruff-pre-commit
rev: v0.0.269
rev: v0.1.6
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix]

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

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.3.0
rev: v1.7.0
hooks:
- id: mypy
additional_dependencies:
Expand Down
2 changes: 1 addition & 1 deletion output/.gitignore
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
*
!.gitignore
!.gitignore
21 changes: 16 additions & 5 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,21 +29,32 @@ singer-sdk = { version="0.30.0", extras = ["testing"] }
coverage = "^7.2.7"

[tool.ruff]
line-length = 120
src = ["target_snowflake"]
target-version = "py37"

[tool.ruff.lint]
ignore = [
"ANN101", # missing-type-self
"ANN102", # missing-type-cls
"ANN201",
"TD",
"D",
"FIX",
]
select = ["ALL"]
src = ["target_snowflake"]
target-version = "py37"

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

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

[tool.ruff.lint.per-file-ignores]
"tests/*" = ["S101", "S608", "PLR2004", "ANN"]

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

[build-system]
Expand Down
1 change: 1 addition & 0 deletions target_snowflake/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
"""Singer.io Target for the Snowflake data warehouse platform."""
from __future__ import annotations

__version__ = "0.0.0"
Loading

0 comments on commit 9e81dc4

Please sign in to comment.