Skip to content

Commit

Permalink
feat(pyproject): add yamlfix to autoformat and ensure yaml style
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker committed Aug 7, 2024
1 parent ebe2cfa commit 48db6aa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,7 @@ dependencies = [
"ruff==0.4.8",
"isort==5.13.2",
"sqlalchemy[mypy]==1.4.41",
"yamlfix==1.16.0",
"types-aiofiles",
"types-protobuf",
"types-pytz",
Expand All @@ -175,11 +176,13 @@ style = [
"ruff check {args:.}",
"black --check --diff {args:} ./src/ ./tests/",
"isort --check-only --profile black {args:} ./src/ ./tests/",
"yamlfix --check .",
]
fmt = [
"black {args:} ./src/ ./tests/",
"ruff check --fix {args:.} ./src/ ./tests/",
"isort --profile black {args:} ./src/ ./tests/",
"yamlfix .",
"style",
]
all = [
Expand Down Expand Up @@ -312,3 +315,6 @@ exclude_lines = [
# Don't complain about ineffective code:
"pass",
]

[tool.yamlfix]
sequence_style = "keep_style"

0 comments on commit 48db6aa

Please sign in to comment.