Skip to content

Commit 9dd6eaa

Browse files
committed
docs(taplo): add toml formatter
1 parent 9420b44 commit 9dd6eaa

File tree

3 files changed

+11
-10
lines changed

3 files changed

+11
-10
lines changed

.taplo.toml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
include = ["pyproject.toml", ".taplo.toml"]
2+
3+
[formatting]
4+
indent_string = " "

docs/contributing.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -104,5 +104,10 @@ flowchart TD
104104
review
105105
```
106106

107+
## Install [taplo](https://taplo.tamasfe.dev/cli/installation/cargo.html) (toml formatter)
108+
109+
TODO: adjust this when the major documentation changes are merged
110+
111+
107112

108113
[conventional-commits]: https://www.conventionalcommits.org/

pyproject.toml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -250,12 +250,7 @@ cover.help = "Run the test suite with coverage"
250250
cover.ref = "test --cov-report term-missing --cov-report=xml:coverage.xml --cov=commitizen"
251251

252252
all.help = "Run all tasks"
253-
all.sequence = [
254-
"format",
255-
"lint",
256-
"cover",
257-
"check-commit",
258-
]
253+
all.sequence = ["format", "lint", "cover", "check-commit", "setup-pre-commit"]
259254

260255
"doc:screenshots".help = "Render documentation screeenshots"
261256
"doc:screenshots".script = "scripts.gen_cli_help_screenshots:gen_cli_help_screenshots"
@@ -267,10 +262,7 @@ doc.help = "Live documentation server"
267262
doc.cmd = "mkdocs serve"
268263

269264
ci.help = "Run all tasks in CI"
270-
ci.sequence = [
271-
{ cmd = "pre-commit run --all-files" },
272-
"cover",
273-
]
265+
ci.sequence = [{ cmd = "pre-commit run --all-files" }, "cover"]
274266
ci.env = { SKIP = "no-commit-to-branch" }
275267

276268
setup-pre-commit.help = "Install pre-commit hooks"

0 commit comments

Comments
 (0)