Skip to content

Commit c41d6fa

Browse files
committed
feat: add yamlfix
1 parent 2790df9 commit c41d6fa

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

pyproject.toml

+7
Original file line numberDiff line numberDiff line change
@@ -153,18 +153,21 @@ dependencies = [
153153
"mypy-extensions==1.0.0",
154154
"ruff==0.4.8",
155155
"isort==5.13.2",
156+
"yamlfix==1.16.1",
156157
]
157158
[tool.hatch.envs.linting.scripts]
158159
typing = "mypy --config-file=pyproject.toml {args:} ./src/ ./tests/ ./examples/"
159160
style = [
160161
"ruff check {args:.} ./src/ ./tests/ ./examples/",
161162
"black --check --diff {args:} ./src/ ./tests/ ./examples/",
162163
"isort --check-only --profile black {args:} ./src/ ./tests/ ./examples/",
164+
"yamlfix --check .",
163165
]
164166
fmt = [
165167
"black {args:} ./src/ ./tests/ ./examples/",
166168
"ruff check --fix {args:.} ./src/ ./tests/ ./examples/",
167169
"isort --profile black {args:} ./src/ ./tests/ ./examples/",
170+
"yamlfix .",
168171
"style",
169172
]
170173
all = [
@@ -243,3 +246,7 @@ exclude_lines = [
243246
# Don't complain about ineffective code:
244247
"pass",
245248
]
249+
250+
[tool.yamlfix]
251+
sequence_style = "keep_style"
252+
preserve_quotes = true

0 commit comments

Comments
 (0)