Skip to content
This repository was archived by the owner on Oct 17, 2024. It is now read-only.
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,21 @@ repos:
- id: ruff-format
- id: ruff
args: [ "--fix", "--unsafe-fixes", "--exit-non-zero-on-fix" ]
- repo: local
hooks:
- id: rustfmt
name: rustfmt
entry: rustfmt
language: rust
language_version: "1.78"
types: [ rust ]
- id: clippy
name: clippy
entry: cargo clippy --all-targets --all-features --fix --allow-dirty --allow-staged --offline
language: rust
language_version: "1.78"
types: [ rust ]
pass_filenames: false
- repo: meta
hooks:
- id: check-hooks-apply
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

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

1 change: 1 addition & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
[package]
name = "pyproject-fmt-rust"
rust-version = "1.78.0"
version = "1.0.4"
description = "Format pyproject.toml files"
repository = "https://github.com/tox-dev/pyproject-fmt"
Expand Down
2 changes: 1 addition & 1 deletion rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
[toolchain]
channel = "1.77"
channel = "1.78"
2 changes: 1 addition & 1 deletion tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ allowlist_externals =
description = run static analysis and style check using flake8
skip_install = true
deps =
pre-commit>=3.7
pre-commit>=3.7.1
commands =
pre-commit run --all-files --show-diff-on-failure

Expand Down