Skip to content

Commit

Permalink
H-4137: Apply TOML formatting to all *.toml files (#6578)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimDiekmann authored Mar 2, 2025
1 parent 5e4cd4e commit 6de9150
Show file tree
Hide file tree
Showing 13 changed files with 49 additions and 61 deletions.
4 changes: 2 additions & 2 deletions .cargo/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@
protocol = "sparse"

[unstable]
cargo-lints = true
codegen-backend = true
public-dependency = true
cargo-lints = true
codegen-backend = true
10 changes: 5 additions & 5 deletions .clippy.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
avoid-breaking-exported-api = false
allow-expect-in-tests = true
allow-print-in-tests = true
allow-expect-in-tests = true
allow-print-in-tests = true
allow-renamed-params-for = ["core::fmt::Debug", "core::fmt::Display", "core::fmt::LowerHex", "core::fmt::UpperHex", "futures_sink::Sink", "serde::de::Visitor", ".."]
avoid-breaking-exported-api = false
doc-valid-idents = ["SpiceDB", "OpenAPI", ".."]
suppress-restriction-lint-in-const = true
doc-valid-idents = ["SpiceDB", "OpenAPI", ".."]
allow-renamed-params-for = ["core::fmt::Debug", "core::fmt::Display", "core::fmt::LowerHex", "core::fmt::UpperHex", "futures_sink::Sink", "serde::de::Visitor", ".."]
6 changes: 3 additions & 3 deletions .config/nextest.toml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[profile.ci]
fail-fast = false
status-level = "skip"
fail-fast = false
failure-output = "final"
status-level = "skip"

[[profile.ci.overrides]]
filter = 'package(harpc-net) and test(session::test::echo_tcp_concurrent)'
filter = 'package(harpc-net) and test(session::test::echo_tcp_concurrent)'
retries = 1
26 changes: 13 additions & 13 deletions .rustfmt.toml
Original file line number Diff line number Diff line change
@@ -1,28 +1,28 @@
# General
edition = "2024" # Default: "2015"
style_edition = "2024" # Default: "2015"
unstable_features = true # Default: false
edition = "2024" # Default: "2015"
style_edition = "2024" # Default: "2015"
unstable_features = true # Default: false

# Settings
reorder_impl_items = true # Default: false
reorder_impl_items = true # Default: false
use_field_init_shorthand = true # Default: false
use_try_shorthand = true # Default: false
wrap_comments = true # Default: false
use_try_shorthand = true # Default: false
wrap_comments = true # Default: false

# Parameters
comment_width = 100 # Default: 80
comment_width = 100 # Default: 80
hex_literal_case = "Upper" # Default: "Preserve"

# Areas
format_code_in_doc_comments = true # Default: false
format_generated_files = true # Default: false
format_macro_matchers = true # Default: false
format_macro_bodies = true # Default: false
format_strings = true # Default: false
format_generated_files = true # Default: false
format_macro_bodies = true # Default: false
format_macro_matchers = true # Default: false
format_strings = true # Default: false

# Imports
imports_granularity = "Crate" # Default: "Preserve"
group_imports = "StdExternalCrate" # Default: "Preserve"
group_imports = "StdExternalCrate" # Default: "Preserve"
imports_granularity = "Crate" # Default: "Preserve"

# Diagnostics
error_on_unformatted = true # Default: false
19 changes: 10 additions & 9 deletions .taplo.toml
Original file line number Diff line number Diff line change
@@ -1,31 +1,32 @@
exclude = ["node_modules/**"]
include = ["**/Cargo.toml", ".taplo.toml"]

[formatting]
align_entries = true
array_auto_collapse = false
array_auto_expand = false
indent_string = " "
inline_table_expand = false
reorder_keys = true

[[rule]]
include = ["**/Cargo.toml", "**/pyproject.toml"]

[rule.formatting]
reorder_keys = false

[[rule]]
include = ["**/Cargo.toml"]
keys = ["dependencies", "dev-dependencies", "build-dependencies", "workspace.dependencies"]

[rule.formatting]
reorder_keys = true
align_entries = true
reorder_keys = true

[[rule]]
include = ["**/Cargo.toml"]
keys = ["workspace"]

[rule.formatting]
align_entries = true
reorder_arrays = true
reorder_keys = true

[[rule]]
include = [".taplo.toml"]

[rule.formatting]
align_entries = true
reorder_keys = true
22 changes: 11 additions & 11 deletions apps/lm-prompt-optimization/pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,24 +1,24 @@
[project]
name = "lm-prompt-optimization"
version = "0.0.0+private"
description = "Add your description here"
authors = [{ name = "HASH" }]
dependencies = ["dspy-ai>=2.4.9"]
readme = "README.md"
name = "lm-prompt-optimization"
version = "0.0.0+private"
description = "Add your description here"
authors = [{ name = "HASH" }]
dependencies = ["dspy-ai>=2.4.9"]
readme = "README.md"
requires-python = ">= 3.11"
license = { text = "AGPL-3.0" }
classifiers = ["Private :: Do Not Upload"]
license = { text = "AGPL-3.0" }
classifiers = ["Private :: Do Not Upload"]

[project.scripts]
"main" = "lm_prompt_optimization:main"
"main" = "lm_prompt_optimization:main"
"async-example" = "lm_prompt_optimization:async_example"

[build-system]
requires = ["pdm-backend"]
requires = ["pdm-backend"]
build-backend = "pdm.backend"

[tool.rye]
managed = true
managed = true
dev-dependencies = ["mypy>=1.10.0"]

[tool.rye.scripts]
Expand Down
2 changes: 1 addition & 1 deletion libs/@local/effect-dns/hickory/.cargo/config.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[target.aarch64-unknown-linux-musl]
linker = "aarch64-linux-musl-gcc"
linker = "aarch64-linux-musl-gcc"
rustflags = ["-C", "target-feature=-crt-static"]

[target.x86_64-pc-windows-msvc]
Expand Down
3 changes: 0 additions & 3 deletions libs/antsi/rust-toolchain.toml

This file was deleted.

3 changes: 0 additions & 3 deletions libs/deer/rust-toolchain.toml

This file was deleted.

4 changes: 0 additions & 4 deletions libs/error-stack/rust-toolchain.toml

This file was deleted.

3 changes: 0 additions & 3 deletions libs/sarif/rust-toolchain.toml

This file was deleted.

4 changes: 2 additions & 2 deletions pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[project]
name = "HASH"
name = "HASH"
version = "0.0.0+private"

[tool.rye]
Expand All @@ -12,7 +12,7 @@ virtual = true

[tool.ruff]
target-version = "py311"
fix = true # when linting always include safe fixes
fix = true # when linting always include safe fixes

[tool.ruff.lint]
preview = true
Expand Down
4 changes: 2 additions & 2 deletions rust-toolchain.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[toolchain]
channel = "nightly-2025-02-24"
components = ['rustfmt', 'clippy', 'llvm-tools-preview', 'miri', 'rust-analyzer', 'rustc-codegen-cranelift-preview']
channel = "nightly-2025-02-24"
components = ['rustfmt', 'clippy', 'llvm-tools-preview', 'miri', 'rust-src', 'rust-analyzer', 'rustc-codegen-cranelift-preview']

0 comments on commit 6de9150

Please sign in to comment.