Skip to content

Commit

Permalink
Merge branch 'master' into ome_rust
Browse files Browse the repository at this point in the history
  • Loading branch information
felixhekhorn committed Aug 22, 2024
2 parents 7c1a1bd + 3bfc89d commit 2b623d8
Show file tree
Hide file tree
Showing 12 changed files with 1,215 additions and 4 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 2b623d8

Please sign in to comment.