Skip to content

Commit 4908fbe

Browse files
PsycojokerAntonyjin
authored andcommitted
feat: add pyproject-fmt
1 parent 660762f commit 4908fbe

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

pyproject.toml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,18 +154,21 @@ dependencies = [
154154
"mypy-extensions==1.0.0",
155155
"ruff==0.4.8",
156156
"isort==5.13.2",
157+
"pyproject-fmt==2.2.1",
157158
]
158159
[tool.hatch.envs.linting.scripts]
159160
typing = "mypy --config-file=pyproject.toml {args:} ./src/ ./tests/ ./examples/"
160161
style = [
161162
"ruff check {args:.} ./src/ ./tests/ ./examples/",
162163
"black --check --diff {args:} ./src/ ./tests/ ./examples/",
163164
"isort --check-only --profile black {args:} ./src/ ./tests/ ./examples/",
165+
"pyproject-fmt --check pyproject.toml",
164166
]
165167
fmt = [
166168
"black {args:} ./src/ ./tests/ ./examples/",
167169
"ruff check --fix {args:.} ./src/ ./tests/ ./examples/",
168170
"isort --profile black {args:} ./src/ ./tests/ ./examples/",
171+
"pyproject-fmt pyproject.toml",
169172
"style",
170173
]
171174
all = [

0 commit comments

Comments
 (0)