Skip to content

Commit 761afa2

Browse files
committed
[ADD] toml sort to precommits
1 parent bb8172b commit 761afa2

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.pre-commit-config.yaml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,10 @@ repos:
88
- id: black
99
language_version: python3.10 # Matches the minimum Python version specified
1010
args: ["--line-length", "88"] # Customize if necessary for project standards
11+
12+
# Sorting and formatting for TOML files
13+
- repo: https://github.com/pappasam/toml-sort
14+
rev: v0.23.1 # Version of toml-sort to use
15+
hooks:
16+
- id: toml-sort-fix
17+
files: pyproject.toml # Only apply to pyproject.toml file

0 commit comments

Comments
 (0)