Skip to content

Commit

Permalink
extracted from simkube, updated to use jsonptr
Browse files Browse the repository at this point in the history
  • Loading branch information
drmorr0 committed Nov 8, 2024
0 parents commit 43cd68c
Show file tree
Hide file tree
Showing 7 changed files with 764 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
/target
22 changes: 22 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
repos:
- repo: "https://github.com/pre-commit/pre-commit-hooks"
rev: v4.4.0
hooks:
- id: end-of-file-fixer
- id: trailing-whitespace
- repo: "https://github.com/adrienverge/yamllint.git"
rev: v1.35.1
hooks:
- id: yamllint
args: ['--strict', '-d', '{extends: default, rules: {line-length: {max: 120}}}']
- repo: "https://github.com/doublify/pre-commit-rust"
rev: v1.0
hooks:
- id: cargo-check
- id: clippy
- repo: "https://github.com/futuretech6/pre-commit-rust-nightly"
rev: v1.1
hooks:
- id: fmt
args: ['--', '--unstable-features']
18 changes: 18 additions & 0 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
edition = "2021"
array_width = 100
blank_lines_upper_bound = 2
chain_width = 100
comment_width = 100
condense_wildcard_suffixes = true
fn_call_width = 100
group_imports = "StdExternalCrate"
imports_layout = "Vertical"
imports_granularity = "Module"
match_block_trailing_comma = true
max_width = 120
newline_style = "Unix"
reorder_impl_items = true
single_line_if_else_max_width = 100
struct_lit_width = 50
use_field_init_shorthand = true
wrap_comments = true
Loading

0 comments on commit 43cd68c

Please sign in to comment.