Skip to content

Commit

Permalink
chore: format toml files
Browse files Browse the repository at this point in the history
  • Loading branch information
drahnr committed Nov 23, 2022
1 parent 3ca1091 commit 8de6afc
Show file tree
Hide file tree
Showing 6 changed files with 36 additions and 30 deletions.
9 changes: 8 additions & 1 deletion .config/spellcheck.toml
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,14 @@ use_builtin = true
# transforms words that are provided by the tokenizer
# into word fragments based on the capture groups which are to be checked.
# If no capture groups are present, the matched word is whitelisted.
transform_regex = ["^'([^\\s])'$", "^[0-9]+x$", "^\\#[0-9]+$", "^[0-9]+$", "^.+\\+$", "\\+"]
transform_regex = [
"^'([^\\s])'$",
"^[0-9]+x$",
"^\\#[0-9]+$",
"^[0-9]+$",
"^.+\\+$",
"\\+",
]
# accepts `alphabeta` variants if the checker provides a replacement suggestion
# of `alpha-beta`.
allow_concatenation = true
Expand Down
24 changes: 12 additions & 12 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,23 +12,23 @@ description = "Checks all doc comments for spelling mistakes"
readme = "README.md"
build = "build.rs"
include = [
"nlprule-data/**/*.bin.xz",
"hunspell-data/*",
"src/**/*.rs",
"Cargo.toml",
"build.rs",
"/LICENSE-*",
"/README.md",
"tests/**/*.rs",
"CHANGELOG.md"
"nlprule-data/**/*.bin.xz",
"hunspell-data/*",
"src/**/*.rs",
"Cargo.toml",
"build.rs",
"/LICENSE-*",
"/README.md",
"tests/**/*.rs",
"CHANGELOG.md",
]

[workspace]
members = ["./doc-chunks"]


[build-dependencies]
nlprule-build = { version = "=0.6.4", optional = true }
nlprule-build = { version = "=0.6.4", optional = true }
# compress the nlprule artifacts to be under the 10 MB limit
# that cargo enforces
xz2 = "0.1"
Expand All @@ -51,7 +51,7 @@ clap-verbosity-flag = "2.0"
env_logger = "0.9"
fancy-regex = "0.10"
fs-err = "2"
indexmap = { version = "1", features=["rayon", "serde"] }
indexmap = { version = "1", features = ["rayon", "serde"] }
itertools = "0.10"
lazy_static = "1"
memchr = "2"
Expand Down Expand Up @@ -87,7 +87,7 @@ url = { version = "2", features = ["serde"] }
# dictionary lookup with affixes
hunspell-rs = { version = "0.4.0", optional = true }
fd-lock = { version = "3", optional = true }
encoding_rs = { version = "0.8.31", optional = true, features = []}
encoding_rs = { version = "0.8.31", optional = true, features = [] }

# full grammar check, but also tokenization and disambiguation
nlprule = { version = "=0.6.4", optional = true }
Expand Down
28 changes: 14 additions & 14 deletions cliff.toml
Original file line number Diff line number Diff line change
Expand Up @@ -35,20 +35,20 @@ conventional_commits = true
filter_unconventional = true
# regex for parsing and grouping commits
commit_parsers = [
{ message = "^feat", group = "Features"},
{ message = "^fix", group = "Bug Fixes"},
{ message = "^doc", group = "Documentation"},
{ message = "^perf", group = "Performance"},
{ message = "^refactor", group = "Refactor"},
{ message = "^style", group = "Styling"},
{ message = "^test", group = "Testing"},
{ message = "^chore\\(release\\): prepare for", skip = true},
{ message = "^(chore[/:]\\s*)?(cargo\\s+)?(fmt|fix|clippy|spellcheck)", skip = true},
{ message = "^[vV]?0\\.[0-9]\\.[0-9]+", skip = true},
{ message = "^\\(cargo-release\\)", skip = true},
{ message = "^(chore/)?rele?ase:", skip = true},
{ message = "^chore", group = "Miscellaneous Tasks"},
{ body = ".*security", group = "Security"},
{ message = "^feat", group = "Features" },
{ message = "^fix", group = "Bug Fixes" },
{ message = "^doc", group = "Documentation" },
{ message = "^perf", group = "Performance" },
{ message = "^refactor", group = "Refactor" },
{ message = "^style", group = "Styling" },
{ message = "^test", group = "Testing" },
{ message = "^chore\\(release\\): prepare for", skip = true },
{ message = "^(chore[/:]\\s*)?(cargo\\s+)?(fmt|fix|clippy|spellcheck)", skip = true },
{ message = "^[vV]?0\\.[0-9]\\.[0-9]+", skip = true },
{ message = "^\\(cargo-release\\)", skip = true },
{ message = "^(chore/)?rele?ase:", skip = true },
{ message = "^chore", group = "Miscellaneous Tasks" },
{ body = ".*security", group = "Security" },
]
# filter out the commits that are not matched by commit parsers
filter_commits = false
Expand Down
2 changes: 1 addition & 1 deletion demo/.config/spellcheck.toml
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ extra_dictionaries = ["topic.dic"]
[Hunspell.quirks]
transform_regex = ["^'([^\\s])'$", "^[0-9]+x$"]
allow_concatenation = true
allow_dashed = false
allow_dashed = false
1 change: 0 additions & 1 deletion demo/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ test = false
[dependencies]



[workspace]
members = ["member/*"]
2 changes: 1 addition & 1 deletion doc-chunks/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ readme = "README.md"
[dependencies]
console = "0.15"
fs-err = "2"
indexmap = { version = "1", features=["rayon", "serde"] }
indexmap = { version = "1", features = ["rayon", "serde"] }
itertools = "0.10"
lazy_static = "1"
memchr = "2"
Expand Down

0 comments on commit 8de6afc

Please sign in to comment.