Skip to content

Commit

Permalink
feat: add pyproject-fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
Psycojoker committed Oct 4, 2024
1 parent 2790df9 commit 1f08567
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -153,18 +153,21 @@ dependencies = [
"mypy-extensions==1.0.0",
"ruff==0.4.8",
"isort==5.13.2",
"pyproject-fmt==2.2.1",
]
[tool.hatch.envs.linting.scripts]
typing = "mypy --config-file=pyproject.toml {args:} ./src/ ./tests/ ./examples/"
style = [
"ruff check {args:.} ./src/ ./tests/ ./examples/",
"black --check --diff {args:} ./src/ ./tests/ ./examples/",
"isort --check-only --profile black {args:} ./src/ ./tests/ ./examples/",
"pyproject-fmt --check pyproject.toml",
]
fmt = [
"black {args:} ./src/ ./tests/ ./examples/",
"ruff check --fix {args:.} ./src/ ./tests/ ./examples/",
"isort --profile black {args:} ./src/ ./tests/ ./examples/",
"pyproject-fmt pyproject.toml",
"style",
]
all = [
Expand Down

0 comments on commit 1f08567

Please sign in to comment.