Skip to content

Commit 87eab64

Browse files
Updated files with 'repo_helper'.
1 parent 5ac923e commit 87eab64

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.pre-commit-config.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,8 @@ repos:
8484
hooks:
8585
- id: formate
8686
exclude: ^(doc-source/conf|__pkginfo__|setup)\.(_)?py$
87+
additional_dependencies:
88+
- formate-trailing-commas>=0.1.0
8789

8890
- repo: https://github.com/python-coincidence/dep_checker
8991
rev: v0.9.0

formate.toml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,12 @@ priority = 30
1212
[hooks.yapf.kwargs]
1313
yapf_style = ".style.yapf"
1414

15+
[hooks.trailing_commas]
16+
priority = 21
17+
18+
[hooks.trailing_commas.kwargs]
19+
format_ImportFrom = false
20+
1521
[hooks.isort]
1622
priority = 50
1723

0 commit comments

Comments
 (0)