Skip to content
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
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,4 +71,4 @@ docs/_build/
# Pyenv
.python-version

*.pdf
*.pdf
55 changes: 55 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# run all hooks with:
# pre-commit run --hook-stage manual --all
ci:
skip:
# pre-commit.ci doesn't have Rust installed
- cargo-fmt

repos:
- repo: local
hooks:
- id: cargo-fmt # rustup component add rustfmt
name: cargo fmt
entry: cargo fmt --all --
language: system
types: [rust]
pass_filenames: false

- id: cargo-check
name: cargo check
entry: cargo check --all-features --all-targets --
language: system
pass_filenames: false
types: [rust]
stages: [manual] # because it's slow

- id: cargo-clippy # rustup component add clippy
name: cargo clippy
entry: cargo clippy --tests --all-features -- -D warnings
language: system
pass_filenames: false
types: [rust]
stages: [manual] # because it's slow
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v6.0.0
hooks:
- id: check-yaml
- id: check-toml
- id: end-of-file-fixer
exclude: |
(?x)(
(^sysconfig/)|
(.*\.stdout)
)
- id: trailing-whitespace
exclude: |
(?x)(
(^sysconfig/)|
(.*\.stdout)
)
- id: mixed-line-ending
- repo: https://github.com/astral-sh/ruff-pre-commit
rev: v0.14.8
hooks:
- id: ruff-format
- id: ruff
1 change: 0 additions & 1 deletion python/typst/py.typed
Original file line number Diff line number Diff line change
@@ -1 +0,0 @@

Loading
Loading