Skip to content

Commit

Permalink
chore: Update pre-commit hooks (#204)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon committed Oct 30, 2023
1 parent 31e232b commit cd551a4
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 18 deletions.
14 changes: 5 additions & 9 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ ci:

repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.4.0
rev: v4.5.0
hooks:
- id: check-json
exclude: "\\.vscode/.*.json"
Expand All @@ -16,23 +16,19 @@ repos:
- id: trailing-whitespace

- repo: https://github.com/tox-dev/pyproject-fmt
rev: "1.2.0"
rev: "1.3.0"
hooks:
- id: pyproject-fmt

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

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

- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.5.1
rev: v1.6.1
hooks:
- id: mypy
pass_filenames: true
Expand Down
17 changes: 8 additions & 9 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,27 +34,26 @@ singer-sdk = { version = "==0.33.*", extras = ["testing"] }
# CLI declaration
tap-jotform = 'tap_jotform.tap:TapJotform.cli'

[tool.black]
line-length = 88

[tool.ruff]
ignore = ["ANN101", "DJ", "PD"]
line-length = 88
select = ["ALL"]
src = ["tap_jotform", "tests", "noxfile.py"]
target-version = "py38"

[tool.ruff.flake8-annotations]
[tool.ruff.lint]
ignore = ["ANN101", "DJ", "PD", "COM812", "ISC001"]
select = ["ALL"]

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

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

[tool.ruff.per-file-ignores]
[tool.ruff.lint.per-file-ignores]
"noxfile.py" = ["ANN"]
"tests/*" = ["ANN"]

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

[tool.pytest.ini_options]
Expand Down

0 comments on commit cd551a4

Please sign in to comment.