Skip to content

Commit

Permalink
Merge branch 'ome_rust' into rust_sv
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Sep 10, 2024
2 parents 44afd2b + 8f09ea0 commit cc8dca7
Show file tree
Hide file tree
Showing 29 changed files with 1,757 additions and 173 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/unittests-rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,17 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Get test data
id: cache-test-data
uses: actions/cache@v4
with:
path: test-data
key: test-data-v1
- name: Download test data
if: steps.cache-test-data.outputs.cache-hit != 'true'
run: |
cd crates/dekoder/tests/data
./download.sh
- uses: actions/setup-python@v5
- name: Install task runner
run: pip install poethepoet
Expand Down
13 changes: 10 additions & 3 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# See https://pre-commit.com/hooks.html for more hooks
ci:
autofix_prs: false
skip: [fmt] # will be run by a separate CI
skip: [fmt, clippy] # will be run by a separate CI
repos:
- repo: https://github.com/pre-commit/pre-commit-hooks
rev: v4.6.0
Expand All @@ -19,7 +19,7 @@ repos:
- id: pycln
args: [--config=pyproject.toml]
- repo: https://github.com/psf/black-pre-commit-mirror
rev: 24.4.2
rev: 24.8.0
hooks:
- id: black
- repo: https://github.com/asottile/blacken-docs
Expand All @@ -44,7 +44,7 @@ repos:
additional_dependencies:
- toml
- repo: https://github.com/pre-commit/mirrors-mypy
rev: v1.4.1
rev: v1.11.1
hooks:
- id: mypy
additional_dependencies: [types-PyYAML]
Expand All @@ -59,6 +59,13 @@ repos:
language: system
files: ^crates/.*\.rs$
args: []
- id: clippy
name: clippy
description: Check Rust files with cargo clippy.
entry: cargo clippy --all-targets --all-features -- -Dclippy::all
pass_filenames: false
types: [file, rust]
language: system
- repo: https://github.com/pre-commit/pre-commit
rev: v3.8.0
hooks:
Expand Down
Loading

0 comments on commit cc8dca7

Please sign in to comment.