Skip to content

Commit

Permalink
merge dev
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Genin committed Nov 13, 2023
2 parents fca97a3 + 0ea738a commit 47ab9bf
Show file tree
Hide file tree
Showing 65 changed files with 1,176 additions and 1,169 deletions.
31 changes: 31 additions & 0 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
# An auto defined `clippy` feature was introduced,
# but it was found to clash with user defined features,
# so was renamed to `cargo-clippy`.
#
# If you want standard clippy run:
# RUSTFLAGS= cargo clippy
[target.'cfg(feature = "cargo-clippy")']
rustflags = [
"-Aclippy::all",
"-Dclippy::correctness",
"-Aclippy::if-same-then-else",
"-Aclippy::clone-double-ref",
"-Dclippy::complexity",
"-Aclippy::zero-prefixed-literal", # 00_1000_000
"-Aclippy::type_complexity", # raison d'etre
"-Aclippy::nonminimal-bool", # maybe
"-Aclippy::borrowed-box", # Reasonable to fix this one
"-Aclippy::too-many-arguments", # (Turning this on would lead to)
"-Aclippy::unnecessary_cast", # Types may change
"-Aclippy::identity-op", # One case where we do 0 +
"-Aclippy::useless_conversion", # Types may change
"-Aclippy::unit_arg", # styalistic.
"-Aclippy::option-map-unit-fn", # styalistic
"-Aclippy::bind_instead_of_map", # styalistic
"-Aclippy::erasing_op", # E.g. 0 * DOLLARS
"-Aclippy::eq_op", # In tests we test equality.
"-Aclippy::while_immutable_condition", # false positives
"-Aclippy::needless_option_as_deref", # false positives
"-Aclippy::derivable_impls", # false positives
"-Aclippy::stable_sort_primitive", # prefer stable sort
]
12 changes: 12 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
addReviewers: true
addAssignees: author
reviewers:
- rakanalh
- MRamanenkau
- Raid5594
- aie0
- yahortsaryk
- khssnv
skipKeywords:
- wip
numberOfReviewers: 2
7 changes: 7 additions & 0 deletions .github/workflows/check.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -28,13 +28,20 @@ jobs:
rustup update stable --no-self-update
rustup target add wasm32-unknown-unknown
- name: Check TOML
uses: dprint/[email protected]

- name: Check Format
run: |
cargo fmt -- --check
- name: Rust Cache
uses: Swatinem/rust-cache@v2

- name: Check with Clippy
run: |
cargo clippy --no-deps --all-targets --features runtime-benchmarks --workspace -- --deny warnings
- name: Check Build
run: |
SKIP_WASM_BUILD=1 cargo check --release
Expand Down
5 changes: 2 additions & 3 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,8 @@
.DS_Store

# The cache for docker container dependency
.cargo
.cargo/**
!/.cargo/config.toml

# The cache for chain data in container
.local
Expand All @@ -19,5 +20,3 @@

# ddc-metrics-offchain-worker mock files
pallets/ddc-metrics-offchain-worker/src/tests/test_data/ddc.contract
pallets/ddc-metrics-offchain-worker/src/tests/test_data/ddc.wasm
pallets/ddc-metrics-offchain-worker/src/tests/test_data/metadata.json
Loading

0 comments on commit 47ab9bf

Please sign in to comment.