Skip to content

Commit

Permalink
chore: Update pre-commit hooks (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
edgarrmondragon authored Oct 31, 2023
1 parent d1579b2 commit 7f1ff0e
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 17 deletions.
16 changes: 6 additions & 10 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,30 +16,26 @@ 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
additional_dependencies:
- types-requests

- repo: https://github.com/pre-commit/pre-commit
rev: v3.4.0
rev: v3.5.0
hooks:
- id: validate_manifest
18 changes: 11 additions & 7 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -33,35 +33,39 @@ pytest = "~=7.4"
"tap-geekbot" = "tap_geekbot.tap:TapGeekbot.cli"

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

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

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

[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.isort]
[tool.ruff.lint.isort]
known-first-party = ["tap_geekbot"]
required-imports = ["from __future__ import annotations"]

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

[tool.pytest.ini_options]
Expand Down

0 comments on commit 7f1ff0e

Please sign in to comment.