Skip to content

Commit

Permalink
chore: Update pre-commit hooks (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Oct 31, 2023
1 parent 2f6219c commit 6ab5919
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 9 deletions.
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ repos:
hooks:
- id: ruff
args: [--fix, --exit-non-zero-on-fix, --show-fixes]
- id: ruff-format

- repo: https://github.com/psf/black
rev: "23.10.1"
Expand Down
2 changes: 1 addition & 1 deletion poetry.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

20 changes: 12 additions & 8 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@ python = ">=3.8,<4,"
singer-sdk = "~=0.33.0"

[tool.poetry.group.dev.dependencies]
pytest = "^7.2.2"
singer-sdk = { version = ">=0.32,<0.34", extras = ["testing"] }
pytest = "~=7.4"
singer-sdk = { version = "~=0.33.0", extras = ["testing"] }

[tool.pytest.ini_options]
addopts = "-vvv"
Expand Down Expand Up @@ -61,29 +61,33 @@ style = "pep440"
vcs = "git"

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

[tool.ruff.lint]
ignore = [
"ANN101", # missing-type-self
"DJ", # flake8-django
"COM812", # missing-trailing-comma
"ISC001", # single-line-implicit-string-concatenation
]
line-length = 88
select = ["ALL"]
src = ["tap_checkly", "tests"]
target-version = "py38"
unfixable = [
"ERA001", # commented-out-code
]

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

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

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

0 comments on commit 6ab5919

Please sign in to comment.