Skip to content

Commit 3bfc89d

Browse files
authored
Merge pull request #400 from NNPDF/rust-reader-v2
EKO Rust reader v2
2 parents 97a96f6 + bf132ea commit 3bfc89d

File tree

16 files changed

+1265
-5
lines changed

16 files changed

+1265
-5
lines changed

.github/workflows/unittests-rust.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,17 @@ jobs:
77
runs-on: ubuntu-latest
88
steps:
99
- uses: actions/checkout@v4
10+
- name: Get test data
11+
id: cache-test-data
12+
uses: actions/cache@v4
13+
with:
14+
path: test-data
15+
key: test-data-v1
16+
- name: Download test data
17+
if: steps.cache-test-data.outputs.cache-hit != 'true'
18+
run: |
19+
cd crates/dekoder/tests/data
20+
./download.sh
1021
- uses: actions/setup-python@v5
1122
- name: Install task runner
1223
run: pip install poethepoet

.pre-commit-config.yaml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# See https://pre-commit.com/hooks.html for more hooks
33
ci:
44
autofix_prs: false
5-
skip: [fmt] # will be run by a separate CI
5+
skip: [fmt, clippy] # will be run by a separate CI
66
repos:
77
- repo: https://github.com/pre-commit/pre-commit-hooks
88
rev: v4.6.0
@@ -59,6 +59,13 @@ repos:
5959
language: system
6060
files: ^crates/.*\.rs$
6161
args: []
62+
- id: clippy
63+
name: clippy
64+
description: Check Rust files with cargo clippy.
65+
entry: cargo clippy --all-targets --all-features -- -Dclippy::all
66+
pass_filenames: false
67+
types: [file, rust]
68+
language: system
6269
- repo: https://github.com/pre-commit/pre-commit
6370
rev: v3.8.0
6471
hooks:

0 commit comments

Comments
 (0)