mirror of
https://github.com/ratatui-org/ratatui
synced 2024-11-27 15:11:18 +00:00
style(config): apply formatting to config files (#238)
This commit is contained in:
parent
4cc7380a88
commit
231aae2920
7 changed files with 74 additions and 67 deletions
6
.cz.toml
6
.cz.toml
|
@ -1,3 +1,5 @@
|
||||||
|
# configuration for https://github.com/commitizen/cz-cli
|
||||||
|
|
||||||
[tool.commitizen]
|
[tool.commitizen]
|
||||||
name = "cz_customize"
|
name = "cz_customize"
|
||||||
tag_format = "$version"
|
tag_format = "$version"
|
||||||
|
@ -7,7 +9,6 @@ update_changelog_on_bump = true
|
||||||
major_version_zero = true
|
major_version_zero = true
|
||||||
use_shortcuts = true
|
use_shortcuts = true
|
||||||
|
|
||||||
|
|
||||||
[tool.commitizen.customize]
|
[tool.commitizen.customize]
|
||||||
message_template = """{{change_type}}({{scope}}): {{subject}}
|
message_template = """{{change_type}}({{scope}}): {{subject}}
|
||||||
|
|
||||||
|
@ -41,7 +42,7 @@ choices = [
|
||||||
{ value = "refactor", name = "refactor: A code change that neither fixes a bug nor adds a feature", key = "r" },
|
{ value = "refactor", name = "refactor: A code change that neither fixes a bug nor adds a feature", key = "r" },
|
||||||
{ value = "revert", name = "revert: Revert previous commits", key = "v" },
|
{ value = "revert", name = "revert: Revert previous commits", key = "v" },
|
||||||
{ value = "style", name = "style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)", key = "s" },
|
{ value = "style", name = "style: Changes that do not affect the meaning of the code (white-space, formatting, missing semi-colons, etc)", key = "s" },
|
||||||
{ value = "test", name = "test: Adding missing or correcting existing tests", key = "t" }
|
{ value = "test", name = "test: Adding missing or correcting existing tests", key = "t" },
|
||||||
]
|
]
|
||||||
message = "Select the type of change you are committing"
|
message = "Select the type of change you are committing"
|
||||||
|
|
||||||
|
@ -75,4 +76,3 @@ default = false
|
||||||
type = "input"
|
type = "input"
|
||||||
name = "footer"
|
name = "footer"
|
||||||
message = "Footer. Information about Breaking Changes and reference issues that this commit closes: (press [enter] to skip)"
|
message = "Footer. Information about Breaking Changes and reference issues that this commit closes: (press [enter] to skip)"
|
||||||
|
|
||||||
|
|
|
@ -1,3 +1,5 @@
|
||||||
|
# configuration for https://github.com/DavidAnson/markdownlint
|
||||||
|
|
||||||
no-inline-html:
|
no-inline-html:
|
||||||
allowed_elements:
|
allowed_elements:
|
||||||
- img
|
- img
|
||||||
|
|
|
@ -1,10 +1,17 @@
|
||||||
|
# configuration for https://github.com/sagiegurari/cargo-make
|
||||||
|
|
||||||
[config]
|
[config]
|
||||||
skip_core_tasks = true
|
skip_core_tasks = true
|
||||||
|
|
||||||
[tasks.ci]
|
[tasks.ci]
|
||||||
run_task = [
|
run_task = [
|
||||||
{ name = "ci-unix", condition = { platforms = ["linux", "mac"] } },
|
{ name = "ci-unix", condition = { platforms = [
|
||||||
{ name = "ci-windows", condition = { platforms = ["windows"] } },
|
"linux",
|
||||||
|
"mac",
|
||||||
|
] } },
|
||||||
|
{ name = "ci-windows", condition = { platforms = [
|
||||||
|
"windows",
|
||||||
|
] } },
|
||||||
]
|
]
|
||||||
|
|
||||||
[tasks.ci-unix]
|
[tasks.ci-unix]
|
||||||
|
@ -38,12 +45,7 @@ dependencies = [
|
||||||
|
|
||||||
[tasks.fmt]
|
[tasks.fmt]
|
||||||
command = "cargo"
|
command = "cargo"
|
||||||
args = [
|
args = ["fmt", "--all", "--", "--check"]
|
||||||
"fmt",
|
|
||||||
"--all",
|
|
||||||
"--",
|
|
||||||
"--check",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tasks.check-crossterm]
|
[tasks.check-crossterm]
|
||||||
env = { TUI_FEATURES = "serde,crossterm" }
|
env = { TUI_FEATURES = "serde,crossterm" }
|
||||||
|
@ -144,29 +146,17 @@ args = [
|
||||||
|
|
||||||
[tasks.test-doc]
|
[tasks.test-doc]
|
||||||
command = "cargo"
|
command = "cargo"
|
||||||
args = [
|
args = ["test", "--doc"]
|
||||||
"test",
|
|
||||||
"--doc",
|
|
||||||
]
|
|
||||||
|
|
||||||
[tasks.run-example]
|
[tasks.run-example]
|
||||||
private = true
|
private = true
|
||||||
condition = { env_set = ["TUI_EXAMPLE_NAME"] }
|
condition = { env_set = ["TUI_EXAMPLE_NAME"] }
|
||||||
command = "cargo"
|
command = "cargo"
|
||||||
args = [
|
args = ["run", "--release", "--example", "${TUI_EXAMPLE_NAME}"]
|
||||||
"run",
|
|
||||||
"--release",
|
|
||||||
"--example",
|
|
||||||
"${TUI_EXAMPLE_NAME}"
|
|
||||||
]
|
|
||||||
|
|
||||||
[tasks.build-examples]
|
[tasks.build-examples]
|
||||||
command = "cargo"
|
command = "cargo"
|
||||||
args = [
|
args = ["build", "--examples", "--release"]
|
||||||
"build",
|
|
||||||
"--examples",
|
|
||||||
"--release"
|
|
||||||
]
|
|
||||||
|
|
||||||
[tasks.run-examples]
|
[tasks.run-examples]
|
||||||
dependencies = ["build-examples"]
|
dependencies = ["build-examples"]
|
||||||
|
|
|
@ -1,5 +1,4 @@
|
||||||
# configuration file for git-cliff
|
# configuration for https://github.com/orhun/git-cliff
|
||||||
# see https://github.com/orhun/git-cliff#configuration-file
|
|
||||||
|
|
||||||
[changelog]
|
[changelog]
|
||||||
# changelog header
|
# changelog header
|
||||||
|
@ -51,7 +50,7 @@ commit_preprocessors = [
|
||||||
{ pattern = '(better safe shared layout cache)', replace = "perf(layout): ${1}" },
|
{ pattern = '(better safe shared layout cache)', replace = "perf(layout): ${1}" },
|
||||||
{ pattern = '(Clarify README.md)', replace = "docs(readme): ${1}" },
|
{ pattern = '(Clarify README.md)', replace = "docs(readme): ${1}" },
|
||||||
{ pattern = '(Update README.md)', replace = "docs(readme): ${1}" },
|
{ pattern = '(Update README.md)', replace = "docs(readme): ${1}" },
|
||||||
{ pattern = '(fix typos|Fix typos)', replace = "fix: ${1}" }
|
{ pattern = '(fix typos|Fix typos)', replace = "fix: ${1}" },
|
||||||
]
|
]
|
||||||
# regex for parsing and grouping commits
|
# regex for parsing and grouping commits
|
||||||
commit_parsers = [
|
commit_parsers = [
|
||||||
|
|
|
@ -15,4 +15,16 @@ line_length = 0
|
||||||
# disable subject length
|
# disable subject length
|
||||||
subject_length = 0
|
subject_length = 0
|
||||||
# default allowed_types [ "chore", "docs", "feat", "fix", "perf", "refactor", "style", "test" ]
|
# default allowed_types [ "chore", "docs", "feat", "fix", "perf", "refactor", "style", "test" ]
|
||||||
allowed_types = ["build", "chore", "ci", "docs", "feat", "fix", "perf", "refactor", "revert", "style", "test" ]
|
allowed_types = [
|
||||||
|
"build",
|
||||||
|
"chore",
|
||||||
|
"ci",
|
||||||
|
"docs",
|
||||||
|
"feat",
|
||||||
|
"fix",
|
||||||
|
"perf",
|
||||||
|
"refactor",
|
||||||
|
"revert",
|
||||||
|
"style",
|
||||||
|
"test",
|
||||||
|
]
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
# configuration for https://rust-lang.github.io/rustfmt/
|
||||||
|
|
||||||
wrap_comments = true
|
wrap_comments = true
|
||||||
comment_width = 100
|
comment_width = 100
|
||||||
|
|
|
@ -1,2 +1,4 @@
|
||||||
|
# configuration for https://github.com/crate-ci/typos
|
||||||
|
|
||||||
[default.extend-words]
|
[default.extend-words]
|
||||||
ratatui = "ratatui"
|
ratatui = "ratatui"
|
||||||
|
|
Loading…
Reference in a new issue