Skip to content

Commit ee1d3e0

Browse files
authored
Add tombi for toml linting and formatting (#23)
1 parent 8db8b3b commit ee1d3e0

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

{{cookiecutter.__package_slug}}/makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ dapperdata_fixes:
7878

7979
.PHONY: tomlsort_fixes
8080
tomlsort_fixes:
81-
$(PYTHON_ENV) toml-sort $$(find . -not -path "./.venv/*" -name "*.toml") -i
81+
$(PYTHON_ENV) tombi format $$(find . -not -path "./.venv/*" -name "*.toml")
8282

8383
#
8484
# Testing
@@ -118,7 +118,8 @@ dapperdata_check:
118118

119119
.PHONY: tomlsort_check
120120
tomlsort_check:
121-
$(PYTHON_ENV) toml-sort $$(find . -not -path "./.venv/*" -name "*.toml") --check
121+
$(PYTHON_ENV) tombi lint $$(find . -not -path "./.venv/*" -name "*.toml")
122+
$(PYTHON_ENV) tombi format $$(find . -not -path "./.venv/*" -name "*.toml") --check
122123

123124

124125

{{cookiecutter.__package_slug}}/pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ dev = [
8181
"pytest-pretty",
8282
"ruamel.yaml",
8383
"ruff",
84-
"toml-sort",
84+
"tombi",
8585
"uv"
8686
]
8787

0 commit comments

Comments
 (0)