Skip to content

Commit

Permalink
cicd: update precommit
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson committed Aug 8, 2024
1 parent 6361106 commit 441185d
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 20 deletions.
43 changes: 24 additions & 19 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -1,20 +1,25 @@
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v1.4.0
hooks:
- id: check-added-large-files
- id: detect-private-key
- id: trailing-whitespace
- id: end-of-file-fixer
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.0
hooks:
- id: ruff-format
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
entry: bash -c 'cd rust && cargo fmt'
args: ['--verbose', '--']
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0 # pre-commit-hooks version
hooks:
- id: check-added-large-files
- id: detect-private-key
- id: trailing-whitespace
- id: end-of-file-fixer
- id: check-merge-conflict
- id: detect-aws-credentials
args: [ --allow-missing-credentials ]
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.2.0 # ruff version
hooks:
- id: ruff-format
- id: ruff
args: [ --fix, --exit-non-zero-on-fix ]
- repo: https://github.com/doublify/pre-commit-rust
rev: v1.0
hooks:
- id: fmt
entry: bash -c 'cd rust && cargo fmt'
args: ['--verbose', '--']

minimum_pre_commit_version: 3.7.1
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ tests = [
dev = [
"maturin",
"ruff==0.2.0",
"pre-commit",
"pre-commit>=3.7.1",
]

[project.urls]
Expand Down

0 comments on commit 441185d

Please sign in to comment.