Skip to content

Commit

Permalink
⬆️🪝 update pre-commit hooks (#675)
Browse files Browse the repository at this point in the history
<!--pre-commit.ci start-->
updates:
- [github.com/sirosen/texthooks: 0.6.6 →
0.6.7](sirosen/texthooks@0.6.6...0.6.7)
- [github.com/astral-sh/ruff-pre-commit: v0.5.7 →
v0.6.1](astral-sh/ruff-pre-commit@v0.5.7...v0.6.1)
<!--pre-commit.ci end-->

---------

Signed-off-by: burgholzer <burgholzer@me.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Co-authored-by: burgholzer <burgholzer@me.com>
  • Loading branch information
pre-commit-ci[bot] and burgholzer authored Aug 19, 2024
1 parent 9be9167 commit 5be1c3e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
6 changes: 2 additions & 4 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ repos:

# Handling unwanted unicode characters
- repo: https://github.com/sirosen/texthooks
rev: 0.6.6
rev: 0.6.7
hooks:
- id: fix-ligatures
- id: fix-smartquotes
Expand All @@ -58,13 +58,11 @@ repos:

# Python linting using ruff
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.5.7
rev: v0.6.1
hooks:
- id: ruff
args: ["--fix", "--show-fixes"]
types_or: [python, pyi, jupyter]
- id: ruff-format
types_or: [python, pyi, jupyter]

# Static type checking using mypy
- repo: https://github.com/pre-commit/mirrors-mypy
Expand Down
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,6 @@ ignore_missing_imports = true

[tool.ruff]
line-length = 120
src = ["src"]
preview = true
unsafe-fixes = true

Expand Down Expand Up @@ -273,6 +272,7 @@ mch = "mch"
ignore = [
"PC160", # "Uses codespell" -> switched to https://github.com/crate-ci/typos
"PC180", # "Uses prettier" -> switched to different prettier-mirror that is not recognized by the check
"RF003", # "src directory specified if used" -> obsolete for new ruff versions
]


Expand Down

0 comments on commit 5be1c3e

Please sign in to comment.